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
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 ¶
type DockerService struct { // the context docker is relate to Context context.Context // client is the interface to the docker runtime Client *client.Client }
DockerService contains all settings to talk to the docker api
func NewDockerService ¶
func NewDockerService() *DockerService
NewDockerService creates a new docker client
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.