transport

package
v1.1.0-alpha-2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

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 {
	URL      string `json:"url"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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