Documentation
¶
Index ¶
- func Delete(collection string, key string) error
- func GetKeys(collection string) ([]string, error)
- func InitStorage(path string) error
- func NewRedisStorage(client *redis.Client) storage
- func Read(collection string, key string, v interface{}) error
- func SetStorage(storage storage)
- func Write(collection string, key string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitStorage ¶
InitStorage registers a local directory as JSON file storage
func NewRedisStorage ¶ added in v1.2.0
func SetStorage ¶ added in v1.2.0
func SetStorage(storage storage)
SetStorage provide storage to persist data for bot usage
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.