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(ctx context.Context, key string) (string, error)
Set(ctx context.Context, key string, val interface{}, expire time.Duration) 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 ConsumerFunc ¶
type Messager ¶
type Messager interface {
SetID(string)
SetStream(string)
SetValues(map[string]interface{})
GetID() string
GetStream() string
GetValues() map[string]interface{}
GetPrefix() string
SetPrefix(string)
SetErrorCount(count int)
GetErrorCount() int
SetContext(ctx context.Context)
GetContext() context.Context
}
Click to show internal directories.
Click to hide internal directories.