internalserver

package
v0.0.0-...-9762dd3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultListenAddress           = "0.0.0.0"
	DefaultListenPort              = 8081
	DefaultGracefulShutdownTimeout = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	services.Service
	// contains filtered or unexported fields
}

func NewService

func NewService(config ServiceConfig, logger log.Logger) (*Service, error)

func (*Service) SetReady

func (s *Service) SetReady(ready bool)

SetReady sets the response for the health check endpoint.

type ServiceConfig

type ServiceConfig struct {
	HTTPListenAddress       string
	HTTPListenPort          int
	GracefulShutdownTimeout time.Duration
}

func (*ServiceConfig) RegisterFlags

func (c *ServiceConfig) RegisterFlags(flags *flag.FlagSet)

Jump to

Keyboard shortcuts

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