Documentation ¶
Index ¶
- func New(c *conf.Config, s *service.Service) (svr *rpc.Server)
- type RPC
- func (r *RPC) AddExp3(c context.Context, a *model.ArgExp, res *struct{}) (err error)
- func (r *RPC) AddMoral3(c context.Context, a *model.ArgMoral, res *struct{}) (err error)
- func (r *RPC) Attentions3(c context.Context, a *model.ArgMid, res *[]int64) (err error)
- func (r *RPC) Blacks3(c context.Context, a *model.ArgMid, res *map[int64]struct{}) (err error)
- func (r *RPC) Card3(c context.Context, arg *model.ArgMid, res *v1.Card) (err error)
- func (r *RPC) Cards3(c context.Context, a *model.ArgMids, res *map[int64]*v1.Card) (err error)
- func (r *RPC) Info3(c context.Context, arg *model.ArgMid, res *v1.Info) (err error)
- func (r *RPC) Infos3(c context.Context, a *model.ArgMids, res *map[int64]*v1.Info) (err error)
- func (r *RPC) InfosByName3(c context.Context, a *model.ArgNames, res *map[int64]*v1.Info) (err error)
- func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)
- func (r *RPC) Profile3(c context.Context, arg *model.ArgMid, res *v1.Profile) (err error)
- func (r *RPC) ProfileWithStat3(c context.Context, arg *model.ArgMid, res *model.ProfileStat) (err error)
- func (r *RPC) Relation3(c context.Context, a *model.ArgRelation, res *model.Relation) (err error)
- func (r *RPC) Relations3(c context.Context, a *model.ArgRelations, res *map[int64]*model.Relation) (err error)
- func (r *RPC) RichRelations3(c context.Context, a *model.ArgRichRelation, res *map[int64]int) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC server
func (*RPC) AddMoral3 ¶
AddMoral3 receive ArgMoral contains mid, moral, oper, reason and remark, then add moral for user.
func (*RPC) Attentions3 ¶
Attentions3 get attentions list ,including following and whisper.
func (*RPC) InfosByName3 ¶
func (r *RPC) InfosByName3(c context.Context, a *model.ArgNames, res *map[int64]*v1.Info) (err error)
InfosByName3 receive ArgMids contains mids and real ip, then multi init user info.
func (*RPC) ProfileWithStat3 ¶
func (r *RPC) ProfileWithStat3(c context.Context, arg *model.ArgMid, res *model.ProfileStat) (err error)
ProfileWithStat3 get user audit info.
func (*RPC) Relations3 ¶
func (r *RPC) Relations3(c context.Context, a *model.ArgRelations, res *map[int64]*model.Relation) (err error)
Relations3 get friend relations.
func (*RPC) RichRelations3 ¶
func (r *RPC) RichRelations3(c context.Context, a *model.ArgRichRelation, res *map[int64]int) (err error)
RichRelations3 get friend relations.
Click to show internal directories.
Click to hide internal directories.