channel

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PUSH = ChannelType("push")
	PULL = ChannelType("pull")
	PUB  = ChannelType("pub")
	SUB  = ChannelType("sub")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindMap

type BindMap map[string]Endpoint

type ChannelType

type ChannelType string

TODO: FairMQ has the following channel types: push/pull/pub/sub/spub/xsub/pair/req/rep/dealer/router Do we need to support them all?

func (ChannelType) String

func (ct ChannelType) String() string

func (*ChannelType) UnmarshalText

func (ct *ChannelType) UnmarshalText(b []byte) error

type Endpoint

type Endpoint struct {
	Host string
	Port uint64
}

type Inbound

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

func (Inbound) ToFMQMap

func (inbound Inbound) ToFMQMap(port uint64) (pm controlcommands.PropertyMap)

func (*Inbound) UnmarshalYAML

func (c *Inbound) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

type Outbound

type Outbound struct {
	Target string `json:"target" yaml:"target"`
	// contains filtered or unexported fields
}

func (*Outbound) ToFMQMap

func (outbound *Outbound) ToFMQMap(endpoint Endpoint) (pm controlcommands.PropertyMap)

func (*Outbound) UnmarshalYAML

func (outbound *Outbound) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

Jump to

Keyboard shortcuts

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