memory

package
v1.10.19-RELEASE-10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2020 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndroidStatus

type AndroidStatus struct {
	PushSuccess int64 `json:"push_success"`
	PushError   int64 `json:"push_error"`
}

AndroidStatus is android structure

type IosStatus

type IosStatus struct {
	PushSuccess int64 `json:"push_success"`
	PushError   int64 `json:"push_error"`
}

IosStatus is iOS structure

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage is interface structure

func New

func New() *Storage

New func implements the storage interface for gorush (https://github.com/appleboy/gorush)

func (*Storage) AddAndroidError

func (s *Storage) AddAndroidError(count int64)

AddAndroidError record counts of error Android push notification.

func (*Storage) AddAndroidSuccess

func (s *Storage) AddAndroidSuccess(count int64)

AddAndroidSuccess record counts of success Android push notification.

func (*Storage) AddIosError

func (s *Storage) AddIosError(count int64)

AddIosError record counts of error iOS push notification.

func (*Storage) AddIosSuccess

func (s *Storage) AddIosSuccess(count int64)

AddIosSuccess record counts of success iOS push notification.

func (*Storage) AddTotalCount

func (s *Storage) AddTotalCount(count int64)

AddTotalCount record push notification count.

func (*Storage) AddWebError added in v1.10.1

func (s *Storage) AddWebError(count int64)

AddWebError record counts of error Web push notification.

func (*Storage) AddWebSuccess added in v1.10.1

func (s *Storage) AddWebSuccess(count int64)

AddWebSuccess record counts of success Web push notification.

func (*Storage) GetAndroidError

func (s *Storage) GetAndroidError() int64

GetAndroidError show error counts of Android notification.

func (*Storage) GetAndroidSuccess

func (s *Storage) GetAndroidSuccess() int64

GetAndroidSuccess show success counts of Android notification.

func (*Storage) GetIosError

func (s *Storage) GetIosError() int64

GetIosError show error counts of iOS notification.

func (*Storage) GetIosSuccess

func (s *Storage) GetIosSuccess() int64

GetIosSuccess show success counts of iOS notification.

func (*Storage) GetTotalCount

func (s *Storage) GetTotalCount() int64

GetTotalCount show counts of all notification.

func (*Storage) GetWebError added in v1.10.1

func (s *Storage) GetWebError() int64

GetWebError show error counts of Web notification.

func (*Storage) GetWebSuccess added in v1.10.1

func (s *Storage) GetWebSuccess() int64

GetWebSuccess show success counts of Web notification.

func (*Storage) Init

func (s *Storage) Init() error

Init client storage.

func (*Storage) Reset

func (s *Storage) Reset()

Reset Client storage.

type WebStatus added in v1.10.1

type WebStatus struct {
	PushSuccess int64 `json:"push_success"`
	PushError   int64 `json:"push_error"`
}

WebStatus is web structure

Jump to

Keyboard shortcuts

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