server

package
v1.0.4-0...-7069f2b Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handle messages received from a service

func NewHandler

func NewHandler(logger logging.Logger, amqp *network.Amqp, dataInteractor interactor.Interactor) *Handler

NewHandler creates a new Handler instance with the necessary dependencies

func (*Handler) Start

func (h *Handler) Start(started chan bool)

Start starts to listen messages

func (*Handler) Stop

func (h *Handler) Stop()

Stop stops to listen for messages

type Health

type Health struct {
	Status string `json:"status"`
}

Health represents the service's health status

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents the HTTP server

func NewServer

func NewServer(port int, logger logging.Logger, dataController *controllers.DataController) Server

NewServer creates a new server instance

func (*Server) Start

func (s *Server) Start(started chan bool)

Start starts the http server

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

Jump to

Keyboard shortcuts

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