readyness

package
v1.0.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(
		newServiceReadyness,
	),
	fx.Invoke(
		useReadynessEndpoint,
	),
)

Functions

This section is empty.

Types

type ReadynessEndpoint

type ReadynessEndpoint struct {
	fx.In

	Readyness *ServiceReadyness
}

func (*ReadynessEndpoint) Handle

func (e *ReadynessEndpoint) Handle(c *fiber.Ctx) error

type ServiceReadyness

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

func (*ServiceReadyness) IsReady

func (s *ServiceReadyness) IsReady(component ...string) (bool, string)

func (*ServiceReadyness) Register

func (s *ServiceReadyness) Register(component string)

func (*ServiceReadyness) SetReady

func (s *ServiceReadyness) SetReady(component string)

Jump to

Keyboard shortcuts

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