rpc

package
v0.0.0-...-c242be3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RPCServerInit

func RPCServerInit(rpcClient *RPCClient)

Types

type RPCClient

type RPCClient struct {
	Idgen *client.IdgenRPCCli
}

func NewRPCClient

func NewRPCClient() (c *RPCClient, err error)

type RPCServer

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

func (*RPCServer) Auth

func (s *RPCServer) Auth(ctx context.Context, in *rpc.RGAuthReq) (res *rpc.RGAuthRes, err error)

func (*RPCServer) CreateGroup

func (s *RPCServer) CreateGroup(ctx context.Context, in *rpc.RGCreateGroupReq) (res *rpc.RGCreateGroupRes, err error)

func (*RPCServer) GetUsersByGroupID

func (s *RPCServer) GetUsersByGroupID(ctx context.Context, in *rpc.RGGetUsersByGroupIDReq) (res *rpc.RGGetUsersByGroupIDRes, err error)

func (*RPCServer) JoinGroup

func (s *RPCServer) JoinGroup(ctx context.Context, in *rpc.RGJoinGroupReq) (res *rpc.RGJoinGroupRes, err error)

func (*RPCServer) Login

func (s *RPCServer) Login(ctx context.Context, in *rpc.RGLoginReq) (res *rpc.RGLoginRes, err error)

func (*RPCServer) Online

func (s *RPCServer) Online(ctx context.Context, in *rpc.RGOnlineReq) (res *rpc.RGOnlineRes, err error)

func (*RPCServer) Ping

func (s *RPCServer) Ping(ctx context.Context, in *rpc.RGPingReq) (res *rpc.RGPingRes, err error)

func (*RPCServer) QuitGroup

func (s *RPCServer) QuitGroup(ctx context.Context, in *rpc.RGQuitGroupReq) (res *rpc.RGQuitGroupRes, err error)

func (*RPCServer) Register

func (s *RPCServer) Register(ctx context.Context, in *rpc.RGRegisterReq) (res *rpc.RGRegisterRes, err error)

func (*RPCServer) RouterAccess

func (s *RPCServer) RouterAccess(ctx context.Context, in *rpc.RGAccessReq) (res *rpc.RGAccessRes, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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