rpc

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Call

func (this *Client) Call(v []interface{}) []interface{}

func (*Client) Close added in v0.0.2

func (this *Client) Close(uint16)

func (*Client) Connect added in v0.0.2

func (this *Client) Connect(fd uint16, s *network.Session)

func (*Client) Dial

func (this *Client) Dial(addr string)

func (*Client) Heartbeat added in v0.0.2

func (this *Client) Heartbeat(uint16, uint16)

func (*Client) Message added in v0.0.2

func (this *Client) Message(fd uint16, sessionID uint16, body []byte)

func (*Client) Send

func (this *Client) Send(v []interface{})

func (*Client) SendCallBack added in v0.0.2

func (this *Client) SendCallBack(v []interface{}, callBack func(callRet interface{}))

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr string) *Server

func (*Server) Close added in v0.0.2

func (this *Server) Close(fd uint16)

func (*Server) Connect added in v0.0.2

func (this *Server) Connect(fd uint16, session *network.Session)

func (*Server) Heartbeat added in v0.0.2

func (this *Server) Heartbeat(fd uint16, sessionID uint16)

func (*Server) Message added in v0.0.2

func (this *Server) Message(fd uint16, sessionID uint16, body []byte)

func (*Server) Register

func (this *Server) Register(rcvr interface{})

func (*Server) RunFunc

func (this *Server) RunFunc(m *methodType, args []reflect.Value) []interface{}

func (*Server) Start added in v0.0.2

func (this *Server) Start()

type Service

type Service struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL