gorush: github.com/appleboy/gorush/storage Index | Files | Directories

package storage

import "github.com/appleboy/gorush/storage"

Index

Package Files

storage.go

Constants

const (
    // TotalCountKey is key name for total count of storage
    TotalCountKey = "gorush-total-count"

    // IosSuccessKey is key name or ios success count of storage
    IosSuccessKey = "gorush-ios-success-count"

    // IosErrorKey is key name or ios success error of storage
    IosErrorKey = "gorush-ios-error-count"

    // AndroidSuccessKey is key name for android success count of storage
    AndroidSuccessKey = "gorush-android-success-count"

    // AndroidErrorKey is key name for android error count of storage
    AndroidErrorKey = "gorush-android-error-count"
)

type Storage Uses

type Storage interface {
    Init() error
    Reset()
    AddTotalCount(int64)
    AddIosSuccess(int64)
    AddIosError(int64)
    AddAndroidSuccess(int64)
    AddAndroidError(int64)
    GetTotalCount() int64
    GetIosSuccess() int64
    GetIosError() int64
    GetAndroidSuccess() int64
    GetAndroidError() int64
}

Storage interface

Directories

PathSynopsis
badger
boltdb
buntdb
leveldb
memory
redis

Package storage is imported by 33 packages. Updated 2019-04-29. Refresh now. Tools for package owners.