server

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *conf.Config, s *service.Service) (svr *rpc.Server)

New new rpc server.

Types

type RPC

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

RPC server

func (*RPC) AddExp3

func (r *RPC) AddExp3(c context.Context, a *model.ArgExp, res *struct{}) (err error)

AddExp3 add exp for user.

func (*RPC) AddMoral3

func (r *RPC) AddMoral3(c context.Context, a *model.ArgMoral, res *struct{}) (err error)

AddMoral3 receive ArgMoral contains mid, moral, oper, reason and remark, then add moral for user.

func (*RPC) Attentions3

func (r *RPC) Attentions3(c context.Context, a *model.ArgMid, res *[]int64) (err error)

Attentions3 get attentions list ,including following and whisper.

func (*RPC) Blacks3

func (r *RPC) Blacks3(c context.Context, a *model.ArgMid, res *map[int64]struct{}) (err error)

Blacks3 get user black list.

func (*RPC) Card3

func (r *RPC) Card3(c context.Context, arg *model.ArgMid, res *v1.Card) (err error)

Card3 receive ArgMid contains mid and real ip, then init user card.

func (*RPC) Cards3

func (r *RPC) Cards3(c context.Context, a *model.ArgMids, res *map[int64]*v1.Card) (err error)

Cards3 receive ArgMids contains mids and real ip, then multi init user card.

func (*RPC) Info3

func (r *RPC) Info3(c context.Context, arg *model.ArgMid, res *v1.Info) (err error)

Info3 receive ArgMid contains mid and real ip, then init user info.

func (*RPC) Infos3

func (r *RPC) Infos3(c context.Context, a *model.ArgMids, res *map[int64]*v1.Info) (err error)

Infos3 receive ArgMids contains mids and real ip, then multi init user info.

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) Ping

func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)

Ping check connection success.

func (*RPC) Profile3

func (r *RPC) Profile3(c context.Context, arg *model.ArgMid, res *v1.Profile) (err error)

Profile3 get user audit 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) Relation3

func (r *RPC) Relation3(c context.Context, a *model.ArgRelation, res *model.Relation) (err error)

Relation3 get friend relation.

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.

Jump to

Keyboard shortcuts

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