Documentation ¶
Index ¶
- Variables
- func Get(key, password string, o interface{}) error
- func GetKeyPath(key string) string
- func GetTTL(key, password string, v interface{}) error
- func Remove(key, password string) error
- func Set(key, password string, o interface{}) error
- func SetTTL(key, password string, v interface{}, ttl time.Duration) error
- type File
- type TTLValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrJson = errors.Fmt("json marshal failed") ErrPass = errors.Fmt("authentication failed(using password: yes)") ErrEncrypt = errors.Fmt("encrypt failed") ErrNotExists = errors.Fmt("key not exists") )
View Source
var ErrBadFormat = errors.Fmt("file is bad format")
View Source
var (
HOME_NAME = ".gdbutil"
)
Functions ¶
func GetKeyPath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.