resource

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: 23 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 define web-show service

func New

func New(c *conf.Config) *Service

New return service object

func (*Service) Close

func (s *Service) Close()

Close close service

func (*Service) GrayRate

func (s *Service) GrayRate(c context.Context) (r int64, ws []int64, swt bool)

GrayRate return gray percent

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping ping service

func (*Service) Relation

func (s *Service) Relation(c context.Context, arg *rsmdl.ArgAid) (rls []*rsmdl.Relation, err error)

Relation get relation archives by aid

func (*Service) Resource

func (s *Service) Resource(c context.Context, arg *rsmdl.ArgRes) (res []*rsmdl.Assignment, count int, err error)

Resource get resource info by pf,id

func (*Service) Resources

func (s *Service) Resources(c context.Context, arg *rsmdl.ArgRess) (mres map[string][]*rsmdl.Assignment, count int, err error)

Resources get resource info by pf,ids

func (*Service) SetGrayRate

func (s *Service) SetGrayRate(c context.Context, swt bool, rate int64, white []int64)

SetGrayRate set gray percent

func (*Service) URLMonitor

func (s *Service) URLMonitor(c context.Context, pf int) (urls map[string]string)

URLMonitor return all urls configured

func (*Service) VideoAd

func (s *Service) VideoAd(c context.Context, arg *resmdl.ArgAid) (res []*resmdl.VideoAD)

VideoAd get videoad by aid

Jump to

Keyboard shortcuts

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