-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the SureMoonNet wiki!
You can go to HomeCN to view the Chinese translation, but if you don't understand this, you can't understand the code because it is generated by Google Translate, but the comments in the code are not.
Precautions: 1.Don't import non-English characters anywhere in the code, because my centos command line only sees English characters.
Project Description: This project contains a lot of functions, which can be used in all places in com.suremoon.net/basis, executable exe in com.suremoon.net/main, limited functionality in com.suremoon Inside .net/smn. Pay special attention to the unit test code in com.suremoon.net/test, which is only used to temporarily test the grammar and function availability, because the project will not continue, and there is no plan to add unit test. The main function is cross-language RPC calls, which generate code for each language by declaring an interface and using automatic code generation (currently only the go language version).
Get started: Execute make test Check the contents of the test inside the makefile. The RPC automatic code generation related code in go language is in com.suremoon.net/main/proto_tool/proto_lang/go. Please also put the other language adaptations in com.suremoon.net/main/proto_tool /proto_lang The folder corresponding to the language name below.
The principle of RPC related code Look at the code yourself, too lazy to talk. Although there are many places in the code that can be optimized, most of them should be left with no problem.