services

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager orchestrates multiple services with proper startup/shutdown order

func NewManager

func NewManager() *Manager

NewManager creates a new service manager

func (*Manager) AddService

func (m *Manager) AddService(service Service)

AddService registers a service with the manager

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

Start starts all services in order

func (*Manager) Stop

func (m *Manager) Stop(ctx context.Context) error

Stop stops all services in reverse order

type Service

type Service interface {
	// Start initializes and starts the service
	Start(ctx context.Context) error

	// Stop gracefully shuts down the service
	Stop(ctx context.Context) error

	// Name returns the service name for logging
	Name() string

	// HealthCheck returns the health status of the service
	HealthCheck() error
}

Service defines the common interface for all services

Directories

Path Synopsis
web
components/icon
templui component icon - version: v0.101.0 installed by templui v0.101.0 📚 Documentation: https://templui.io/docs/components/icon
templui component icon - version: v0.101.0 installed by templui v0.101.0 📚 Documentation: https://templui.io/docs/components/icon
features/auth/pages
templ: version: v0.3.960
templ: version: v0.3.960
features/common/components
templ: version: v0.3.960
templ: version: v0.3.960
features/common/icons
templ: version: v0.3.960
templ: version: v0.3.960
features/common/layouts
templ: version: v0.3.960
templ: version: v0.3.960
features/dev
Package dev provides development-only features like hot reload.
Package dev provides development-only features like hot reload.
features/docs/pages
templ: version: v0.3.960
templ: version: v0.3.960
features/fleet/components
templ: version: v0.3.960
templ: version: v0.3.960
features/fleet/pages
templ: version: v0.3.960
templ: version: v0.3.960
features/map/components
templ: version: v0.3.960
templ: version: v0.3.960
features/map/pages
templ: version: v0.3.960
templ: version: v0.3.960
features/metrics/components
templ: version: v0.3.960
templ: version: v0.3.960
features/metrics/pages
templ: version: v0.3.960
templ: version: v0.3.960
features/organizations/components
templ: version: v0.3.960
templ: version: v0.3.960
features/organizations/pages
templ: version: v0.3.960
templ: version: v0.3.960
features/overwatch/components
templ: version: v0.3.960
templ: version: v0.3.960
features/overwatch/pages
templ: version: v0.3.960
templ: version: v0.3.960
features/streams/pages
templ: version: v0.3.960
templ: version: v0.3.960
features/video/pages
templ: version: v0.3.960
templ: version: v0.3.960
signals
Package signals provides typed signal structs for Datastar SSE communication.
Package signals provides typed signal structs for Datastar SSE communication.
utils
templui util templui.go - version: v0.101.0 installed by templui v0.101.0
templui util templui.go - version: v0.101.0 installed by templui v0.101.0

Jump to

Keyboard shortcuts

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