Documentation
¶
Index ¶
- type Service
- func (s *Service) Close()
- func (s *Service) GrayRate(c context.Context) (r int64, ws []int64, swt bool)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Relation(c context.Context, arg *rsmdl.ArgAid) (rls []*rsmdl.Relation, err error)
- func (s *Service) Resource(c context.Context, arg *rsmdl.ArgRes) (res []*rsmdl.Assignment, count int, err error)
- func (s *Service) Resources(c context.Context, arg *rsmdl.ArgRess) (mres map[string][]*rsmdl.Assignment, count int, err error)
- func (s *Service) SetGrayRate(c context.Context, swt bool, rate int64, white []int64)
- func (s *Service) URLMonitor(c context.Context, pf int) (urls map[string]string)
- func (s *Service) VideoAd(c context.Context, arg *resmdl.ArgAid) (res []*resmdl.VideoAD)
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 (*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 ¶
SetGrayRate set gray percent
func (*Service) URLMonitor ¶
URLMonitor return all urls configured
Click to show internal directories.
Click to hide internal directories.