Documentation
¶
Index ¶
Constants ¶
View Source
const (
PrefixKey = "__host"
)
Variables ¶
View Source
var ( Cache AdapterCache Queue AdapterQueue Locker AdapterLocker )
Functions ¶
This section is empty.
Types ¶
type AdapterCache ¶
type AdapterCache interface {
String() string
Get(ctx context.Context, key string) (string, error)
Set(ctx context.Context, key string, val interface{}, expire int) error
Del(ctx context.Context, key string) error
HashGet(ctx context.Context, hk, key string) (string, error)
HashDel(ctx context.Context, hk, key string) error
Increase(ctx context.Context, key string) error
Decrease(ctx context.Context, key string) error
Expire(ctx context.Context, key string, dur time.Duration) error
}
type AdapterLocker ¶
type AdapterQueue ¶
type AdapterQueue interface {
String() string
Append(message Messager) error
Register(name string, f ConsumerFunc)
Run()
Shutdown()
}
type ConsumerFunc ¶
Click to show internal directories.
Click to hide internal directories.