Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Tag string Connection string Exchange string ExchangeType string Queue string Key string }
Config contains the settings for AMPQ
func NewConfig ¶
func NewConfig(config *configuration.RabbitMQConfiguration) *Config
type Consumer ¶
type Consumer struct { Config *Config // contains filtered or unexported fields }
Consumer is an object which can act on AMPQ messages
func NewConsumer ¶
func NewConsumer(cfg *Config, handleFunc func(body []byte) error, instanceID int) (*Consumer, error)
NewConsumer creates new consumer which can act on AMPQ messages
func (*Consumer) HandleLoop ¶
HandleLoop is the message loop of a consumer
type DockerService ¶
DockerService contains all settings to talk to the docker api
func NewDockerServiceWithTimeout ¶
func NewDockerServiceWithTimeout(timeout time.Duration) (*DockerService, error)
func (*DockerService) ListContainers ¶
func (ds *DockerService) ListContainers()
ListContainers lists all docker containers
func (*DockerService) ListImages ¶
func (ds *DockerService) ListImages()
ListImages lists all docker images
type Producer ¶
type Producer struct { Config *Config // contains filtered or unexported fields }
Producer is an object which can emit a AMPQ messages
func NewProducer ¶
NewProducer creates a new producer which can emit AMPQ messages
Click to show internal directories.
Click to hide internal directories.