transport

package
v1.1.0-alpha-7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SinkQueue = "core:default"
	DBIndex   = 0
)
View Source
const (
	ReturnExpire = 300
)

Variables

This section is empty.

Functions

func AuthMethod

func AuthMethod(organization string, key string) (config.AuthMethod, error)

Types

type Sink

type Sink struct {
	// contains filtered or unexported fields
}

func NewSink

func NewSink(c SinkConfig) (*Sink, error)

func (*Sink) Del

func (sink *Sink) Del(keys ...[]byte) (int64, error)

func (*Sink) Flag

func (sink *Sink) Flag(id string) error

func (*Sink) Forward

func (sink *Sink) Forward(result *pm.JobResult) error

func (*Sink) Get

func (sink *Sink) Get(key []byte) ([]byte, error)

func (*Sink) GetResult

func (sink *Sink) GetResult(job string, timeout int) (*pm.JobResult, error)

func (*Sink) LExpire

func (sink *Sink) LExpire(key []byte, duration int64) (int64, error)

func (*Sink) LTrim

func (sink *Sink) LTrim(key []byte, start, stop int64) error

func (*Sink) RPush

func (sink *Sink) RPush(key []byte, args ...[]byte) (int64, error)

func (*Sink) Result

func (sink *Sink) Result(cmd *pm.Command, result *pm.JobResult)

ResultHandler implementation

func (*Sink) Set

func (sink *Sink) Set(key []byte, value []byte) error

func (*Sink) Start

func (sink *Sink) Start()

type SinkConfig

type SinkConfig struct {
	Port int
}

func (*SinkConfig) Local

func (c *SinkConfig) Local() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL