status

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stats *stats.Stats

Stats provide response time, status code count, etc.

Functions

func InitAppStatus

func InitAppStatus(conf *config.ConfYaml) error

InitAppStatus for initialize app status

Types

type AndroidStatus

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

AndroidStatus is android structure

type App

type App struct {
	Version        string        `json:"version"`
	BusyWorkers    int           `json:"busy_workers"`
	SuccessTasks   int           `json:"success_tasks"`
	FailureTasks   int           `json:"failure_tasks"`
	SubmittedTasks int           `json:"submitted_tasks"`
	TotalCount     int64         `json:"total_count"`
	Ios            IosStatus     `json:"ios"`
	Android        AndroidStatus `json:"android"`
	Huawei         HuaweiStatus  `json:"huawei"`
}

App is status structure

type HuaweiStatus

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

HuaweiStatus is huawei structure

type IosStatus

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

IosStatus is iOS structure

type StateStorage

type StateStorage struct {
	// contains filtered or unexported fields
}
var StatStorage *StateStorage

StatStorage implements the storage interface

func NewStateStorage

func NewStateStorage(store core.Storage) *StateStorage

func (*StateStorage) AddAndroidError

func (s *StateStorage) AddAndroidError(count int64)

AddAndroidError record counts of error Android push notification.

func (*StateStorage) AddAndroidSuccess

func (s *StateStorage) AddAndroidSuccess(count int64)

AddAndroidSuccess record counts of success Android push notification.

func (*StateStorage) AddHuaweiError

func (s *StateStorage) AddHuaweiError(count int64)

AddHuaweiError record counts of error Huawei push notification.

func (*StateStorage) AddHuaweiSuccess

func (s *StateStorage) AddHuaweiSuccess(count int64)

AddHuaweiSuccess record counts of success Huawei push notification.

func (*StateStorage) AddIosError

func (s *StateStorage) AddIosError(count int64)

AddIosError record counts of error iOS push notification.

func (*StateStorage) AddIosSuccess

func (s *StateStorage) AddIosSuccess(count int64)

AddIosSuccess record counts of success iOS push notification.

func (*StateStorage) AddTotalCount

func (s *StateStorage) AddTotalCount(count int64)

AddTotalCount record push notification count.

func (*StateStorage) Close

func (s *StateStorage) Close() error

func (*StateStorage) GetAndroidError

func (s *StateStorage) GetAndroidError() int64

GetAndroidError show error counts of Android notification.

func (*StateStorage) GetAndroidSuccess

func (s *StateStorage) GetAndroidSuccess() int64

GetAndroidSuccess show success counts of Android notification.

func (*StateStorage) GetHuaweiError

func (s *StateStorage) GetHuaweiError() int64

GetHuaweiError show error counts of Huawei notification.

func (*StateStorage) GetHuaweiSuccess

func (s *StateStorage) GetHuaweiSuccess() int64

GetHuaweiSuccess show success counts of Huawei notification.

func (*StateStorage) GetIosError

func (s *StateStorage) GetIosError() int64

GetIosError show error counts of iOS notification.

func (*StateStorage) GetIosSuccess

func (s *StateStorage) GetIosSuccess() int64

GetIosSuccess show success counts of iOS notification.

func (*StateStorage) GetTotalCount

func (s *StateStorage) GetTotalCount() int64

GetTotalCount show counts of all notification.

func (*StateStorage) Init

func (s *StateStorage) Init() error

func (*StateStorage) Reset

func (s *StateStorage) Reset()

Reset Client storage.

Jump to

Keyboard shortcuts

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