rpc

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: 5 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 create instance of rpc server2 and return.

Types

type RPC

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

RPC server def.

func (*RPC) ClearReliveTimes

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

ClearReliveTimes rpc.

func (*RPC) HandleEvent

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

HandleEvent rpc req for handling spy event , maybe from spy-job.

func (*RPC) Ping

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

Ping check rpc server health.

func (*RPC) ReBuildPortrait

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

ReBuildPortrait rpc.

func (*RPC) RefreshBaseScore

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

RefreshBaseScore rpc.

func (*RPC) StatByID

func (r *RPC) StatByID(c context.Context, arg *cmmdl.ArgStat, res *[]*cmmdl.Statistics) (err error)

StatByID rpc.

func (*RPC) UpdateBaseScore

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

UpdateBaseScore rpc.

func (*RPC) UpdateEventScore

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

UpdateEventScore rpc.

func (*RPC) UserInfo

func (r *RPC) UserInfo(c context.Context, arg *cmmdl.ArgUser, res *cmmdl.UserInfo) (err error)

UserInfo rpc.

func (*RPC) UserScore

func (r *RPC) UserScore(c context.Context, arg *cmmdl.ArgUserScore, res *cmmdl.UserScore) (err error)

UserScore rpc req for getting user spy score.

Jump to

Keyboard shortcuts

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