service

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthzServer

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

func (*HealthzServer) Handle

func (h *HealthzServer) Handle(w http.ResponseWriter, r *http.Request)

func (*HealthzServer) Shutdown

func (h *HealthzServer) Shutdown() error

func (*HealthzServer) Start

func (h *HealthzServer) Start(ctx context.Context, addr string) error

type MetricsServer

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

func (*MetricsServer) Shutdown

func (m *MetricsServer) Shutdown() error

func (*MetricsServer) Start

func (m *MetricsServer) Start(ctx context.Context, addr string) error

type Service

type Service struct {
	Config    *config.Config
	Healthz   *HealthzServer
	Metrics   *MetricsServer
	Providers map[string]*provider.Provider
}

func New

func New(cfg *config.Config) *Service

func (*Service) Shutdown

func (s *Service) Shutdown()

func (*Service) Start

func (s *Service) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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