gorpc

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: 7 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) *rpc.Server

New new rpc server.

Types

type RPC

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

RPC is.

func (*RPC) AddMoral

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

AddMoral add moral.

func (*RPC) AddPropertyReview

func (r *RPC) AddPropertyReview(ctx context.Context, arg *model.ArgAddPropertyReview, res *struct{}) error

AddPropertyReview add user property update review.

func (*RPC) AddUserMonitor

func (r *RPC) AddUserMonitor(ctx context.Context, arg *model.ArgAddUserMonitor, res *struct{}) error

AddUserMonitor is add user into monitor

func (*RPC) Base

func (r *RPC) Base(c context.Context, arg *model.ArgMemberMid, res *model.BaseInfo) (err error)

Base get user base info.

func (*RPC) Bases

func (r *RPC) Bases(c context.Context, arg *model.ArgMemberMids, res *map[int64]*model.BaseInfo) (err error)

Bases get batch user base info.

func (*RPC) BatchAddMoral

func (r *RPC) BatchAddMoral(c context.Context, arg *model.ArgUpdateMorals, res *map[int64]int64) (err error)

BatchAddMoral batch add moral.

func (*RPC) BlockBatchInfo

func (r *RPC) BlockBatchInfo(c context.Context, arg *rpcmodel.RPCArgBatchInfo, res *[]*rpcmodel.RPCResInfo) (err error)

BlockBatchInfo is

func (*RPC) BlockInfo

func (r *RPC) BlockInfo(c context.Context, arg *rpcmodel.RPCArgInfo, res *rpcmodel.RPCResInfo) (err error)

BlockInfo is

func (*RPC) Exp

func (r *RPC) Exp(c context.Context, arg *model.ArgMid2, res *model.LevelInfo) (err error)

Exp get user exp.

func (*RPC) IsInMonitor

func (r *RPC) IsInMonitor(ctx context.Context, arg *model.ArgMid, res *bool) error

IsInMonitor check user is in monitor

func (*RPC) Level

func (r *RPC) Level(c context.Context, arg *model.ArgMid2, res *model.LevelInfo) (err error)

Level get user exp.

func (*RPC) Log

func (r *RPC) Log(c context.Context, arg *model.ArgMid2, res *[]*model.UserLog) (err error)

Log get user exp log.

func (*RPC) Member

func (r *RPC) Member(c context.Context, arg *model.ArgMemberMid, res *model.Member) (err error)

Member get member info.

func (*RPC) Members

func (r *RPC) Members(c context.Context, arg *model.ArgMemberMids, res *map[int64]*model.Member) (err error)

Members get batch member info.

func (*RPC) Moral

func (r *RPC) Moral(c context.Context, arg *model.ArgMemberMid, res *model.Moral) (err error)

Moral get user moral.

func (*RPC) MoralLog

func (r *RPC) MoralLog(c context.Context, arg *model.ArgMemberMid, res *[]*model.UserLog) (err error)

MoralLog get user moral log.

func (*RPC) NickUpdated

func (r *RPC) NickUpdated(c context.Context, arg *model.ArgMemberMid, res *bool) (err error)

NickUpdated get nickUpdated.

func (*RPC) OfficialDoc

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

OfficialDoc is.

func (*RPC) Ping

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

Ping check connection success.

func (*RPC) RealnameAlipayApply

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

RealnameAlipayApply commit a alipay realname apply

func (*RPC) RealnameAlipayBizno

func (r *RPC) RealnameAlipayBizno(c context.Context, arg *model.ArgMemberMid, res *model.RealnameAlipayInfo) (err error)

RealnameAlipayBizno get alipay realname certify bizno by mid

func (*RPC) RealnameAlipayConfirm

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

RealnameAlipayConfirm confirm a alipay realname apply

func (*RPC) RealnameApply

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

RealnameApply is

func (*RPC) RealnameApplyStatus

func (r *RPC) RealnameApplyStatus(c context.Context, arg *model.ArgMemberMid, res *model.RealnameApplyStatusInfo) (err error)

RealnameApplyStatus is

func (*RPC) RealnameDetail

func (r *RPC) RealnameDetail(ctx context.Context, arg *model.ArgMemberMid, res *model.RealnameDetail) error

RealnameDetail detail about realname by mid

func (*RPC) RealnameStatus

func (r *RPC) RealnameStatus(c context.Context, arg *model.ArgMemberMid, res *model.RealnameStatus) (err error)

RealnameStatus is

func (*RPC) RealnameTelCapture

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

RealnameTelCapture is

func (*RPC) SetBirthday

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

SetBirthday set birthday.

func (*RPC) SetFace

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

SetFace set face.

func (*RPC) SetName

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

SetName set name.

func (*RPC) SetNickUpdated

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

SetNickUpdated set nickUpdated.

func (*RPC) SetOfficialDoc

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

SetOfficialDoc set official doc.

func (*RPC) SetRank

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

SetRank set rank.

func (*RPC) SetSex

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

SetSex set sex.

func (*RPC) SetSign

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

SetSign set sign.

func (*RPC) Stat

func (r *RPC) Stat(c context.Context, arg *model.ArgMid2, res *model.ExpStat) (err error)

Stat get user exp stat.

func (*RPC) UpdateExp

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

UpdateExp user exp.

Jump to

Keyboard shortcuts

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