Documentation ¶
Index ¶
- type Consumer
- type Service
- func (s *Service) AddGroup(c context.Context, group *model.Group) (id int64, err error)
- func (s *Service) AddProduct(c context.Context, p *model.Product) (id int64, err error)
- func (s *Service) AddTarget(c context.Context, t *model.Target) (id int64, err error)
- func (s *Service) AllProducts(c context.Context) (res *model.Products, err error)
- func (s *Service) Close()
- func (s *Service) Collect(c context.Context, p *monitor.Log)
- func (s *Service) DeleteGroup(c context.Context, id int64) (err error)
- func (s *Service) DeleteProduct(c context.Context, id int64) (err error)
- func (s *Service) DeleteTarget(c context.Context, id int64) (err error)
- func (s *Service) GroupByName(c context.Context, name string) (res *model.Group, err error)
- func (s *Service) GroupList(c context.Context, params *model.GroupListParams) (res *model.Groups, err error)
- func (s *Service) HandleMsg(msg []byte)
- func (s *Service) PauseConsume(t int64) error
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Report(c context.Context, params *model.LogParams, mid int64, ip string, buvid string, ...) (err error)
- func (s *Service) StartConsume() (err error)
- func (s *Service) StopConsume() error
- func (s *Service) Target(c context.Context, id int64) (res *model.Target, err error)
- func (s *Service) TargetList(c context.Context, t *model.Target, pn int, ps int, sort string) (res *model.Targets, err error)
- func (s *Service) TargetSync(c context.Context, id int64, state int) (err error)
- func (s *Service) UpdateGroup(c context.Context, group *model.Group) (err error)
- func (s *Service) UpdateProduct(c context.Context, p *model.Product) (err error)
- func (s *Service) UpdateTarget(c context.Context, t *model.Target) (err error)
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 struct
func (*Service) AddProduct ¶
AddProduct add a new group.
func (*Service) AllProducts ¶
AllProducts return all products.
func (*Service) DeleteGroup ¶
DeleteGroup delete group.
func (*Service) DeleteProduct ¶
DeleteProduct delete product.
func (*Service) DeleteTarget ¶
DeleteTarget delete target by id.
func (*Service) GroupByName ¶
GroupByName get group by name.
func (*Service) GroupList ¶
func (s *Service) GroupList(c context.Context, params *model.GroupListParams) (res *model.Groups, err error)
GroupList return all groups.
func (*Service) Report ¶
func (s *Service) Report(c context.Context, params *model.LogParams, mid int64, ip string, buvid string, userAgent string) (err error)
Report .
func (*Service) TargetList ¶
func (s *Service) TargetList(c context.Context, t *model.Target, pn int, ps int, sort string) (res *model.Targets, err error)
TargetList .
func (*Service) TargetSync ¶
TargetSync sync target state.
func (*Service) UpdateGroup ¶
UpdateGroup update group.
func (*Service) UpdateProduct ¶
UpdateProduct update product.
Click to show internal directories.
Click to hide internal directories.