health

package
v0.0.0-...-4d82e29 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(api *operations.ClaAPI, service Service)

Configure setups handlers on api with service

Types

type RepositoryService

type RepositoryService interface {
	IsAlive() bool
}

RepositoryService is the health repository service interface definition

func NewRepository

func NewRepository(db *sqlx.DB) RepositoryService

NewRepository creates a new health repository service instance

type Service

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

Service provides an API to the health API

func New

func New(repo RepositoryService, version, commit, branch, buildDate string) Service

New is a simple helper function to create a health service instance

func (Service) HealthCheck

func (s Service) HealthCheck(ctx context.Context, in health.GetHealthParams) (*models.Health, error)

HealthCheck API call returns the current health of the service

Jump to

Keyboard shortcuts

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