Documentation ¶
Index ¶
- func Init(name string, s rpctypes.RPCServer)
- type Grpc
- func (c Grpc) Black(ctx context.Context, v *chattypes.UpdateBlackList) (*types.UnsignTx, error)
- func (c Grpc) GetBlackList(ctx context.Context, in *chattypes.ReqGetBlackList) (*chattypes.ReplyGetBlackList, error)
- func (c Grpc) GetFriends(ctx context.Context, in *chattypes.ReqGetFriends) (*chattypes.ReplyGetFriends, error)
- func (c Grpc) GetServerGroup(ctx context.Context, in *chattypes.ReqGetServerGroup) (*chattypes.ReplyGetServerGroups, error)
- func (c Grpc) GetUser(ctx context.Context, in *chattypes.ReqGetUser) (*chattypes.ReplyGetUser, error)
- func (c Grpc) Update(ctx context.Context, v *chattypes.UpdateFriends) (*types.UnsignTx, error)
- func (c Grpc) UpdateServerGroup(ctx context.Context, v *chattypes.UpdateServerGroups) (*types.UnsignTx, error)
- func (c Grpc) UpdateUser(ctx context.Context, v *chattypes.UpdateFields) (*types.UnsignTx, error)
- type Jrpc
- func (j *Jrpc) CreateRawUpdateBlackTx(in json.RawMessage, result *interface{}) error
- func (j *Jrpc) CreateRawUpdateFriendTx(in json.RawMessage, result *interface{}) error
- func (j *Jrpc) CreateRawUpdateServerGroupTx(in json.RawMessage, result *interface{}) error
- func (j *Jrpc) CreateRawUpdateUserTx(in json.RawMessage, result *interface{}) error
- func (j *Jrpc) GetBlackList(in *chattypes.ReqGetBlackList, result *interface{}) error
- func (j *Jrpc) GetFriends(in *chattypes.ReqGetFriends, result *interface{}) error
- func (j *Jrpc) GetServerGroup(in *chattypes.ReqGetServerGroup, result *interface{}) error
- func (j *Jrpc) GetUser(in *chattypes.ReqGetUser, result *interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Grpc ¶
type Grpc struct {
// contains filtered or unexported fields
}
Grpc grpc
func (Grpc) GetBlackList ¶
func (c Grpc) GetBlackList(ctx context.Context, in *chattypes.ReqGetBlackList) (*chattypes.ReplyGetBlackList, error)
GetFriends 获得好友记录
func (Grpc) GetFriends ¶
func (c Grpc) GetFriends(ctx context.Context, in *chattypes.ReqGetFriends) (*chattypes.ReplyGetFriends, error)
GetFriends 获得好友记录
func (Grpc) GetServerGroup ¶
func (c Grpc) GetServerGroup(ctx context.Context, in *chattypes.ReqGetServerGroup) (*chattypes.ReplyGetServerGroups, error)
GetFriends 获得好友记录
func (Grpc) GetUser ¶
func (c Grpc) GetUser(ctx context.Context, in *chattypes.ReqGetUser) (*chattypes.ReplyGetUser, error)
GetFriends 获得好友记录
func (Grpc) UpdateServerGroup ¶
func (Grpc) UpdateUser ¶
type Jrpc ¶
type Jrpc struct {
// contains filtered or unexported fields
}
Jrpc 实现json rpc调用实例
func (*Jrpc) CreateRawUpdateBlackTx ¶
func (j *Jrpc) CreateRawUpdateBlackTx(in json.RawMessage, result *interface{}) error
func (*Jrpc) CreateRawUpdateFriendTx ¶
func (j *Jrpc) CreateRawUpdateFriendTx(in json.RawMessage, result *interface{}) error
func (*Jrpc) CreateRawUpdateServerGroupTx ¶
func (j *Jrpc) CreateRawUpdateServerGroupTx(in json.RawMessage, result *interface{}) error
func (*Jrpc) CreateRawUpdateUserTx ¶
func (j *Jrpc) CreateRawUpdateUserTx(in json.RawMessage, result *interface{}) error
func (*Jrpc) GetBlackList ¶
func (j *Jrpc) GetBlackList(in *chattypes.ReqGetBlackList, result *interface{}) error
func (*Jrpc) GetFriends ¶
func (j *Jrpc) GetFriends(in *chattypes.ReqGetFriends, result *interface{}) error
func (*Jrpc) GetServerGroup ¶
func (j *Jrpc) GetServerGroup(in *chattypes.ReqGetServerGroup, result *interface{}) error
Click to show internal directories.
Click to hide internal directories.