client

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is resource rpc client.

func New

func New(c *rpc.ClientConfig) (s *Service)

New new a resource rpc client.

func (*Service) AbTest

func (s *Service) AbTest(c context.Context, arg *model.ArgAbTest) (res map[string]*model.AbTest, err error)

AbTest get abtest.

func (*Service) AssignmentAll

func (s *Service) AssignmentAll(c context.Context) (res []*model.Assignment, err error)

AssignmentAll get all assignment.

func (*Service) Banners

func (s *Service) Banners(c context.Context, arg *model.ArgBanner) (res *model.Banners, err error)

Banners get banners.

func (*Service) Cmtbox

func (s *Service) Cmtbox(c context.Context, arg *model.ArgCmtbox) (res *model.Cmtbox, err error)

Cmtbox get live box

func (*Service) DefBanner

func (s *Service) DefBanner(c context.Context) (res *model.Assignment, err error)

DefBanner get default banner.

func (*Service) IndexIcon

func (s *Service) IndexIcon(c context.Context) (res map[string][]*model.IndexIcon, err error)

IndexIcon get index icons.

func (*Service) PasterAPP

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

PasterAPP get paster.

func (*Service) PasterCID

func (s *Service) PasterCID(c context.Context) (res map[int64]int64, err error)

PasterCID get all Paster's cid.

func (*Service) PlayerIcon

func (s *Service) PlayerIcon(c context.Context) (res *model.PlayerIcon, err error)

PlayerIcon get palyer config.

func (*Service) Resource

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

Resource get resource.

func (*Service) ResourceAll

func (s *Service) ResourceAll(c context.Context) (res []*model.Resource, err error)

ResourceAll get all resource.

func (*Service) Resources

func (s *Service) Resources(c context.Context, arg *model.ArgRess) (res map[int]*model.Resource, err error)

Resources get resource.

func (*Service) SideBars

func (s *Service) SideBars(c context.Context) (res *model.SideBars, err error)

SideBars get side bar.

Jump to

Keyboard shortcuts

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