Documentation ¶
Index ¶
- type Storage
- func (s *Storage) AddAndroidError(count int64)
- func (s *Storage) AddAndroidSuccess(count int64)
- func (s *Storage) AddIosError(count int64)
- func (s *Storage) AddIosSuccess(count int64)
- func (s *Storage) AddTotalCount(count int64)
- func (s *Storage) AddWebError(count int64)
- func (s *Storage) AddWebSuccess(count int64)
- func (s *Storage) Close() error
- func (s *Storage) GetAndroidError() int64
- func (s *Storage) GetAndroidSuccess() int64
- func (s *Storage) GetIosError() int64
- func (s *Storage) GetIosSuccess() int64
- func (s *Storage) GetTotalCount() int64
- func (s *Storage) GetWebError() int64
- func (s *Storage) GetWebSuccess() int64
- func (s *Storage) Init() error
- func (s *Storage) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is interface structure
func New ¶
New func implements the storage interface for gorush (https://github.com/appleboy/gorush)
func (*Storage) AddAndroidError ¶
AddAndroidError record counts of error Android push notification.
func (*Storage) AddAndroidSuccess ¶
AddAndroidSuccess record counts of success Android push notification.
func (*Storage) AddIosError ¶
AddIosError record counts of error iOS push notification.
func (*Storage) AddIosSuccess ¶
AddIosSuccess record counts of success iOS push notification.
func (*Storage) AddTotalCount ¶
AddTotalCount record push notification count.
func (*Storage) AddWebError ¶ added in v1.15.0
AddWebError record counts of error Web push notification.
func (*Storage) AddWebSuccess ¶ added in v1.15.0
AddWebSuccess record counts of success Web push notification.
func (*Storage) GetAndroidError ¶
GetAndroidError show error counts of Android notification.
func (*Storage) GetAndroidSuccess ¶
GetAndroidSuccess show success counts of Android notification.
func (*Storage) GetIosError ¶
GetIosError show error counts of iOS notification.
func (*Storage) GetIosSuccess ¶
GetIosSuccess show success counts of iOS notification.
func (*Storage) GetTotalCount ¶
GetTotalCount show counts of all notification.
func (*Storage) GetWebError ¶ added in v1.15.0
GetWebError show error counts of Web notification.
func (*Storage) GetWebSuccess ¶ added in v1.15.0
GetWebSuccess show success counts of Web notification.