Documentation
¶
Index ¶
Constants ¶
View Source
const (
PrefixKey = "__host"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterCache ¶
type AdapterCache interface {
String() string
Get(key string) (string, error)
Set(key string, val interface{}, expire int) error
Del(key string) error
HashGet(hk, key string) (string, error)
HashDel(hk, key string) error
Increase(key string) error
Decrease(key string) error
Expire(key string, dur time.Duration) error
HashSet(key string, values ...interface{}) error
HashMSet(key string, values ...interface{}) error
Exists(key string) (int64, error)
HashGetAll(key string) (map[string]string, error)
}
type AdapterLocker ¶
type AdapterOss ¶ added in v1.0.9
type AdapterOss interface {
UpLoad(objectName, localFile string) (string, error)
GetCredential() (*sts.CredentialResult, error)
GetPresignedURL(objectName string) (string, error)
GetSignedFileUrl(dir string, isSign bool) ([]string, []string, error)
DownloadFiles(fileObject []string, localDir string) error
}
type AdapterQueue ¶
type AdapterQueue interface {
String() string
Append(message Messager) error
Register(name string, f ConsumerFunc)
Run()
Shutdown()
}
type AdapterSms ¶ added in v1.0.9
type ConsumerFunc ¶
Click to show internal directories.
Click to hide internal directories.