service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HealthzHost = "0.0.0.0"
	HealthzPort = "8080"

	MetricsHost = "0.0.0.0"
	MetricsPort = "7300"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthzServer

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

func NewHealthzServer added in v0.3.1

func NewHealthzServer(logger log.Logger) *HealthzServer

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 {
	Healthz *HealthzServer
	Metrics *MetricsServer
}

func New

func New() *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
⌂ 换网址