Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeliveryHandler ¶
type DeliveryHandler interface { //Process attempts to extract the command and execute it Process(msg amqp.Delivery) (out amqp.Publishing, result entity.Result) }
DeliveryHandler handles the initial processing of a amqp delivery
func NewDeliveryHandler ¶
func NewDeliveryHandler( aux auxillary.Executor, msgUtil utility.AMQPMessage, log logrus.Ext1FieldLogger) DeliveryHandler
NewDeliveryHandler creates a new DeliveryHandler which uses the given usecase for executing the extracted command
type RestHandler ¶
type RestHandler interface { //AddCommands handles the addition of new commands AddCommands(w http.ResponseWriter, r *http.Request) //HealthCheck handles the reporting of the current health of this service HealthCheck(w http.ResponseWriter, r *http.Request) }
RestHandler handles the REST api calls
func NewRestHandler ¶
func NewRestHandler(uc usecase.DockerUseCase, log logrus.Ext1FieldLogger) RestHandler
NewRestHandler creates a new rest handler
Click to show internal directories.
Click to hide internal directories.