Documentation ¶
Index ¶
- func New(c *conf.Config, s *service.Service) (svr *rpc.Server)
- type RPC
- func (r *RPC) Apply(c context.Context, arg *model.ArgApply, res *struct{}) (err error)
- func (r *RPC) Buy(c context.Context, arg *model.ArgBuy, res *[]*model.Invite) (err error)
- func (r *RPC) Equip(c context.Context, arg *model.ArgEquip, res *struct{}) (err error)
- func (r *RPC) Equipment(c context.Context, mid int64, res *model.PendantEquip) (err error)
- func (r *RPC) Equipments(c context.Context, mids []int64, res *map[int64]*model.PendantEquip) (err error)
- func (r *RPC) GrantByMids(c context.Context, arg *model.ArgGrantByMids, res *struct{}) (err error)
- func (r *RPC) GroupPendantMid(c context.Context, arg *model.ArgGPMID, res *[]*model.GroupPendantList) (err error)
- func (r *RPC) MedalActivated(c context.Context, arg *model.ArgMid, res *model.MedalInfo) (err error)
- func (r *RPC) MedalActivatedMulti(c context.Context, arg *model.ArgMids, res *map[int64]*model.MedalInfo) (err error)
- func (r *RPC) MedalAllInfo(c context.Context, arg *model.ArgMid, res *model.MedalAllInfos) (err error)
- func (r *RPC) MedalGrant(c context.Context, arg *model.ArgMIDNID, res *struct{}) (err error)
- func (r *RPC) MedalHomeInfo(c context.Context, arg *model.ArgMid, res *[]*model.MedalHomeInfo) (err error)
- func (r *RPC) MedalInstall(c context.Context, arg *model.ArgMedalInstall, res *struct{}) (err error)
- func (r *RPC) MedalMyInfo(c context.Context, arg *model.ArgMid, res *[]*model.MedalMyInfos) (err error)
- func (r *RPC) MedalPopup(c context.Context, arg *model.ArgMid, res *model.MedalPopup) (err error)
- func (r *RPC) MedalUserInfo(c context.Context, arg *model.ArgMedalUserInfo, res *model.MedalUserInfo) (err error)
- func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)
- func (r *RPC) PointFlag(c context.Context, arg *model.ArgMID, res *model.PointFlag) (err error)
- func (r *RPC) Stat(c context.Context, arg *model.ArgStat, res *model.InviteStat) (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 struct
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 ¶
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.