healthserver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfgs ...ServiceConfig) grpc_health_v1.HealthServer

Types

type Service

type Service interface {
	Ping(ctx context.Context) (err error)
}

Service defines a service that has the potential to be a part of the healthchecker, anything that respects this interface can be included as part of the healthchecker

type ServiceConfig

type ServiceConfig struct {
	Name    string  `json:"name"`
	Service Service `json:"service"`
}

ServiceConfig defines a health checkable service it's important to only list services here that you care about services such as a redis instance (given you have a circuit breaker) shouldn't be listed here.

Jump to

Keyboard shortcuts

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