health

package
v0.0.0-...-46e61fc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 6 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
}

func NewHealthHandler

func NewHealthHandler(databaseConnection *database.Connection, broker brokerLib.IBroker) *Handler

func (*Handler) Get

func (h *Handler) Get(w http.ResponseWriter, _ *http.Request)

Get @Tags Health @Description Check if Health of service it's OK! @ID health @Accept json @Produce json @Success 200 {object} entities.Response{content=string} "OK" @Failure 500 {object} entities.Response{content=string} "INTERNAL SERVER ERROR" @Router /analytic/health [get]

func (*Handler) IsDatabaseNotAvailable

func (h *Handler) IsDatabaseNotAvailable() bool

func (*Handler) Options

func (h *Handler) Options(w http.ResponseWriter, _ *http.Request)

Jump to

Keyboard shortcuts

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