status

package
v0.0.0-...-d8b21ba Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckable

type HealthCheckable interface {
	Check(context.Context) (string, error)
}

type HealthCheckables

type HealthCheckables map[string]HealthCheckable

type HealthService

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

func NewHealthService

func NewHealthService(checkables HealthCheckables) *HealthService

func (*HealthService) Collect

func (c *HealthService) Collect(ctx context.Context) map[string]string

type Providers

type Providers map[string]StatisticProvider

type StatisticProvider

type StatisticProvider interface {
	NumberOfElements(ctx context.Context) (int, error)
}

type StatisticsService

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

func NewStatisticsService

func NewStatisticsService(checkables Providers) *StatisticsService

func (*StatisticsService) Collect

func (s *StatisticsService) Collect(ctx context.Context) map[string]string

Jump to

Keyboard shortcuts

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