health

package
v0.0.0-...-5643740 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 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 HealthService

type HealthService interface {
	HealthCheck(ctx context.Context) (*models.Health, error)
}

HealthService interface

type Service

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

Service provides an API to the health API

func New

func New(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) (*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