health

package
v0.0.0-...-63a3be0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

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

Health are response for the api health endpoint

type Service

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

Service is the object for Health Service

func NewService

func NewService(logger log.Logger) *Service

NewService return new Service object

func (*Service) GetHealth

func (s *Service) GetHealth(serverState string) Health

GetHealth return filled Health object

Jump to

Keyboard shortcuts

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