Documentation ¶
Index ¶
- Variables
- func NewServer(opts ...*options.ServerOptions) *server
- type Call
- type Client
- func (this *Client) Call(server string, moduleFunc string, req, ret any) error
- func (this *Client) Go(server string, moduleFunc string, req, ret any, done chan *Call) *Call
- func (this *Client) PrintCall()
- func (this *Client) Register(rcvr any) error
- func (this *Client) RegisterName(name string, rcvr any) error
- func (this *Client) Send(server, module, method string, v any) error
- func (this *Client) SendFile(server string, moduleFunc string, filename string, reader io.Reader) error
- func (this *Client) StopHeart()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VerifyError = errors.New("Client VerifyError") ReadError = errors.New("Client ReadError") WriteError = errors.New("Client WriteError") ModuleFuncError = errors.New("Client ModuleFunc must like rpc.func") ServerError = errors.New("ServerError") FuncError = errors.New("FuncError") ReqTimeOutError = errors.New("ReqTimeoutError") )
Functions ¶
func NewServer ¶
func NewServer(opts ...*options.ServerOptions) *server
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.