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

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

func (r *RPC) AssignmentAll(c context.Context, a *struct{}, res *[]*model.Assignment) (err error)

AssignmentAll get all assignment.

func (*RPC) Banners

func (r *RPC) Banners(c context.Context, ab *model.ArgBanner, res *model.Banners) (err error)

Banners get banners.

func (*RPC) Cmtbox

func (r *RPC) Cmtbox(c context.Context, cb *model.ArgCmtbox, res *model.Cmtbox) (err error)

Cmtbox get live box.

func (*RPC) DefBanner

func (r *RPC) DefBanner(c context.Context, a *struct{}, as *model.Assignment) (err error)

DefBanner get default banner.

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) PasterAPP

func (r *RPC) PasterAPP(c context.Context, arg *model.ArgPaster, res *model.Paster) (err error)

PasterAPP get paster for APP.

func (*RPC) PasterCID

func (r *RPC) PasterCID(c context.Context, a *struct{}, res *map[int64]int64) (err error)

PasterCID get all Paster's cid.

func (*RPC) Ping

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

Ping check connection success.

func (*RPC) PlayerIcon

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

PlayerIcon get player icon config.

func (*RPC) Resource

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

Resource get resource.

func (*RPC) ResourceAll

func (r *RPC) ResourceAll(c context.Context, a *struct{}, res *[]*model.Resource) (err error)

ResourceAll get all resource.

func (*RPC) Resources

func (r *RPC) Resources(c context.Context, as *model.ArgRess, res *map[int]*model.Resource) (err error)

Resources get resource.

func (*RPC) SideBars

func (r *RPC) SideBars(c context.Context, a *struct{}, res *model.SideBars) (err error)

SideBars get sode bar.

Jump to

Keyboard shortcuts

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