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: 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 new rpc server.

Types

type RPC

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

RPC server struct

func (*RPC) Apply

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

Apply apply invite code

func (*RPC) Buy

func (r *RPC) Buy(c context.Context, arg *model.ArgBuy, res *[]*model.Invite) (err error)

Buy buy invite code

func (*RPC) Equip

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

Equip pendant equip.

func (*RPC) Equipment

func (r *RPC) Equipment(c context.Context, mid int64, res *model.PendantEquip) (err error)

Equipment obtain Equipment by mid .

func (*RPC) Equipments

func (r *RPC) Equipments(c context.Context, mids []int64, res *map[int64]*model.PendantEquip) (err error)

Equipments obtain equipments by mids .

func (*RPC) GrantByMids

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

GrantByMids one pendant give to multiple users.

func (*RPC) GroupPendantMid

func (r *RPC) GroupPendantMid(c context.Context, arg *model.ArgGPMID, res *[]*model.GroupPendantList) (err error)

GroupPendantMid get group pendant by mid and gid

func (*RPC) MedalActivated

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

MedalActivated get the user activated medal info.

func (*RPC) MedalActivatedMulti

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

MedalActivatedMulti Multi get get the user activated medal info(at most 50).

func (*RPC) MedalAllInfo

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

MedalAllInfo return medal all info.

func (*RPC) MedalGrant

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

MedalGrant send a medal to user.

func (*RPC) MedalHomeInfo

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

MedalHomeInfo return user mdeal home info.

func (*RPC) MedalInstall

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

MedalInstall install or uninstall medal.

func (*RPC) MedalMyInfo

func (r *RPC) MedalMyInfo(c context.Context, arg *model.ArgMid, res *[]*model.MedalMyInfos) (err error)

MedalMyInfo return medal my info.

func (*RPC) MedalPopup

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

MedalPopup return medal popup.

func (*RPC) MedalUserInfo

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

MedalUserInfo return medal user info.

func (*RPC) Ping

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

Ping check connection success.

func (*RPC) PointFlag

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

PointFlag obtain new pendant noify.

func (*RPC) Stat

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

Stat stat code

Jump to

Keyboard shortcuts

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