transport

package
v1.1.0-alpha-4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SinkRoute = core.Route("sink")
	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(mgr *pm.PM, c SinkConfig) (*Sink, error)

func (*Sink) DB

func (sink *Sink) DB() *ledis.DB

func (*Sink) Flag

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

func (*Sink) Forward

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

func (*Sink) Result

func (sink *Sink) Result(job string, timeout int) (*core.JobResult, 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