Documentation ¶
Index ¶
- Constants
- type Sink
- func (sink *Sink) Del(keys ...string) (int64, error)
- func (sink *Sink) Flag(id string) error
- func (sink *Sink) Forward(result *pm.JobResult) error
- func (sink *Sink) Get(key string) ([]byte, error)
- func (sink *Sink) GetResult(job string, timeout int) (*pm.JobResult, error)
- func (sink *Sink) LExpire(key string, duration int64) (int64, error)
- func (sink *Sink) LTrim(key string, start, stop int64) error
- func (sink *Sink) RPush(key string, args ...[]byte) (int64, error)
- func (sink *Sink) Result(cmd *pm.Command, result *pm.JobResult)
- func (sink *Sink) Set(key string, value []byte) error
- func (sink *Sink) Start()
- type SinkConfig
Constants ¶
View Source
const ( SinkQueue = "core:default" DBIndex = 0 )
View Source
const (
//expires in 300 seconds (5min)
ReturnExpire = 300
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
func NewSink ¶
func NewSink(c SinkConfig) (*Sink, error)
type SinkConfig ¶
type SinkConfig struct {
Port int
}
func (*SinkConfig) Local ¶
func (c *SinkConfig) Local() string
Click to show internal directories.
Click to hide internal directories.