Documentation ¶
Index ¶
- func New(c *conf.Config, s *service.Service) (svr *rpc.Server)
- type RPC
- func (r *RPC) AbTest(c context.Context, ab *model.ArgAbTest, res *map[string]*model.AbTest) (err error)
- func (r *RPC) AssignmentAll(c context.Context, a *struct{}, res *[]*model.Assignment) (err error)
- func (r *RPC) Banners(c context.Context, ab *model.ArgBanner, res *model.Banners) (err error)
- func (r *RPC) Cmtbox(c context.Context, cb *model.ArgCmtbox, res *model.Cmtbox) (err error)
- func (r *RPC) DefBanner(c context.Context, a *struct{}, as *model.Assignment) (err error)
- func (r *RPC) IndexIcon(c context.Context, a *struct{}, res *map[string][]*model.IndexIcon) (err error)
- func (r *RPC) PasterAPP(c context.Context, arg *model.ArgPaster, res *model.Paster) (err error)
- func (r *RPC) PasterCID(c context.Context, a *struct{}, res *map[int64]int64) (err error)
- func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)
- func (r *RPC) PlayerIcon(c context.Context, arg *struct{}, res *model.PlayerIcon) (err error)
- func (r *RPC) Resource(c context.Context, arg *model.ArgRes, res *model.Resource) (err error)
- func (r *RPC) ResourceAll(c context.Context, a *struct{}, res *[]*model.Resource) (err error)
- func (r *RPC) Resources(c context.Context, as *model.ArgRess, res *map[int]*model.Resource) (err error)
- func (r *RPC) SideBars(c context.Context, a *struct{}, res *model.SideBars) (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 struct
func (*RPC) AbTest ¶
func (r *RPC) AbTest(c context.Context, ab *model.ArgAbTest, res *map[string]*model.AbTest) (err error)
AbTest get abtest.
func (*RPC) AssignmentAll ¶
AssignmentAll get all assignment.
func (*RPC) IndexIcon ¶
func (r *RPC) IndexIcon(c context.Context, a *struct{}, res *map[string][]*model.IndexIcon) (err error)
IndexIcon get index icon.
func (*RPC) PlayerIcon ¶
PlayerIcon get player icon config.
func (*RPC) ResourceAll ¶
ResourceAll get all resource.
Click to show internal directories.
Click to hide internal directories.