channel

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: GPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(bindMap BindMap) (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