Documentation ¶
Index ¶
- type Service
- func (s *Service) AddCallback(c context.Context, cb *model.Callback) (err error)
- func (s *Service) AddMidProgress(ctx context.Context, task string, midTotal, midValid int64) error
- func (s *Service) AddReport(ctx context.Context, r *model.Report) (err error)
- func (s *Service) AddReportCache(c context.Context, r *model.Report) (err error)
- func (s *Service) AddTokenCache(ctx context.Context, r *model.Report) (err error)
- func (s *Service) AddTokensCache(ctx context.Context, rs map[string]*model.Report) (err error)
- func (s *Service) AddUserReportCache(c context.Context, mid int64, rs []*model.Report) (err error)
- func (s *Service) Close()
- func (s *Service) DelInvalidReports(c context.Context, tp int) (err error)
- func (s *Service) DelReport(c context.Context, appID, mid int64, token string) (err error)
- func (s *Service) Filter(c context.Context, content string) (res string, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Pushs(c context.Context, task *model.Task, mids []int64) (err error)
- func (s *Service) SetSetting(c context.Context, mid int64, typ, val int) (err error)
- func (s *Service) Setting(c context.Context, mid int64) (st map[int]int, err error)
- func (s *Service) SinglePush(c context.Context, token string, task *model.Task, mid int64) (err error)
- func (s *Service) Task(c context.Context, businessID int64, taskID, token string) (task *model.Task, err error)
- func (s *Service) TestToken(c context.Context, info *model.PushInfo, token string) (err error)
- func (s *Service) Upimg(ctx context.Context, file multipart.File) (url string, 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 push service.
func (*Service) AddCallback ¶
AddCallback adds callback.
func (*Service) AddMidProgress ¶
AddMidProgress .
func (*Service) AddReportCache ¶
AddReportCache add report cache.
func (*Service) AddTokenCache ¶
AddTokenCache add token cache.
func (*Service) AddTokensCache ¶
AddTokensCache add token cache.
func (*Service) AddUserReportCache ¶
AddUserReportCache add user report cache.
func (*Service) DelInvalidReports ¶
DelInvalidReports deletes invalid reports.
func (*Service) SetSetting ¶
SetSetting saves setting.
func (*Service) SinglePush ¶
func (s *Service) SinglePush(c context.Context, token string, task *model.Task, mid int64) (err error)
SinglePush push one mid.
func (*Service) Task ¶
func (s *Service) Task(c context.Context, businessID int64, taskID, token string) (task *model.Task, err error)
Task gets task info.
Click to show internal directories.
Click to hide internal directories.