handler

package
Version: v1.8.21 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

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

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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