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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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