service

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(ctx context.Context, configPath string) (*Service, error)

func (*Service) Cancel added in v1.1.0

func (s *Service) Cancel()

func (*Service) Context

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

func (*Service) Done added in v1.1.0

func (s *Service) Done() <-chan struct{}

func (*Service) IsRunning added in v1.1.0

func (s *Service) IsRunning() bool

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop added in v1.1.0

func (s *Service) Stop() error

type State added in v1.1.0

type State int32
const (
	StateStopped State = iota
	StateStarting
	StateRunning
	StateStopping
)

Jump to

Keyboard shortcuts

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