redis

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TotalCountKey     = "gorush-total-count"
	IosSuccessKey     = "gorush-ios-success-count"
	IosErrorKey       = "gorush-ios-error-count"
	AndroidSuccessKey = "gorush-android-success-count"
	AndroidErrorKey   = "gorush-android-error-count"
)

Stat variable for redis

Variables

View Source
var RedisClient *redis.Client

Functions

This section is empty.

Types

type Storage

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

func New

func New(config config.ConfYaml) *Storage

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

func (*Storage) AddAndroidError

func (s *Storage) AddAndroidError(count int64)

func (*Storage) AddAndroidSuccess

func (s *Storage) AddAndroidSuccess(count int64)

func (*Storage) AddIosError

func (s *Storage) AddIosError(count int64)

func (*Storage) AddIosSuccess

func (s *Storage) AddIosSuccess(count int64)

func (*Storage) AddTotalCount

func (s *Storage) AddTotalCount(count int64)

func (*Storage) GetAndroidError

func (s *Storage) GetAndroidError() int64

func (*Storage) GetAndroidSuccess

func (s *Storage) GetAndroidSuccess() int64

func (*Storage) GetIosError

func (s *Storage) GetIosError() int64

func (*Storage) GetIosSuccess

func (s *Storage) GetIosSuccess() int64

func (*Storage) GetTotalCount

func (s *Storage) GetTotalCount() int64

func (*Storage) Init

func (s *Storage) Init() error

func (*Storage) Reset

func (s *Storage) Reset()

Jump to

Keyboard shortcuts

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