Documentation ¶
Index ¶
- Constants
- type Mutex
- type Session
- func (s *Session) HDel(ctx context.Context, key string, fields ...string) error
- func (s *Session) HGet(ctx context.Context, k string, field string) (string, error)
- func (s *Session) HGetAll(ctx context.Context, key string) (map[string]string, error)
- func (s *Session) HSet(ctx context.Context, k, field string, value interface{}) error
- func (s *Session) HWatch(ctx context.Context, key string, interval time.Duration) <-chan map[string]string
- func (s *Session) KeepAlive(ctx context.Context, key string, fieldFunc func() (f, v string), ...)
- func (s *Session) NewMutex(ctx context.Context, key string) *Mutex
Constants ¶
View Source
const ( ROOT = "workers/services" LOCK = "lock" EmptyString = "" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.