Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BboltDB ¶
type BboltDB struct { }
BboltDB implement Database interface with ETCD's bbolt
func (*BboltDB) DeviceTokenByKey ¶
DeviceTokenByKey get device token of specified key
type Database ¶
type Database interface { CountAll() (int, error) //Get db records count DeviceTokenByKey(key string) (string, error) //Get specified device's token SaveDeviceTokenByKey(key, token string) (string, error) //Create or update specified devices's token Close() error //Close the database }
Database defines all of the db operation
func NewBboltdb ¶
func NewEnvBase ¶ added in v2.1.0
func NewEnvBase() Database
type EnvBase ¶ added in v2.1.0
type EnvBase struct { }
func (*EnvBase) DeviceTokenByKey ¶ added in v2.1.0
Click to show internal directories.
Click to hide internal directories.