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)
LPush(key string, values ...interface{}) (int64, error)
RPush(key string, values ...interface{}) (int64, error)
LRange(key string, start, stop int64) ([]string, error)
}
type AdapterEs ¶ added in v1.1.5
type AdapterEs interface {
AddRecord(string, int, string, string, string, string) (string, error)
GetRecord(string, int) (*es.Knowledge, error)
UpdateRecord(string, int, string, string, string, string) error
DeleteRecord(string, int) error
PageRecord(string, int, int, string) (int64, []int, error)
RecordList(string, string) ([]int, 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.