consulhealth

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(di HealthRegDI) error

Types

type HealthIndicator

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

func New

func New(conn *consul.Connection) *HealthIndicator

func (*HealthIndicator) Health

func (i *HealthIndicator) Health(c context.Context, options health.Options) health.Health

func (*HealthIndicator) Name

func (i *HealthIndicator) Name() string

type HealthRegDI

type HealthRegDI struct {
	fx.In
	HealthRegistrar health.Registrar   `optional:"true"`
	ConsulClient    *consul.Connection `optional:"true"`
}

Jump to

Keyboard shortcuts

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