leveldb

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func New(config config.ConfYaml) *Storage

New func implements the storage interface for gorush (https://github.com/miczone/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) AddHuaweiError

func (s *Storage) AddHuaweiError(count int64)

AddHuaweiError record counts of error Huawei push notification.

func (*Storage) AddHuaweiSuccess

func (s *Storage) AddHuaweiSuccess(count int64)

AddHuaweiSuccess record counts of success Huawei 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) Close

func (s *Storage) Close() error

Close the storage connection

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) GetHuaweiError

func (s *Storage) GetHuaweiError() int64

GetHuaweiError show error counts of Huawei notification.

func (*Storage) GetHuaweiSuccess

func (s *Storage) GetHuaweiSuccess() int64

GetHuaweiSuccess show success counts of Huawei 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) Init

func (s *Storage) Init() error

Init client storage.

func (*Storage) Reset

func (s *Storage) Reset()

Reset Client storage.

Jump to

Keyboard shortcuts

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