runner

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServicePanic   = errors.New("runner: service panicked")
	ErrServiceFailed  = errors.New("runner: service failed to start")
	ErrShutdownTimout = errors.New("runner: shutdown timeout exceeded")
)

Functions

This section is empty.

Types

type Option

type Option func(*Runner)

func WithCoreService

func WithCoreService(svc Service) Option

func WithInfrastructureService

func WithInfrastructureService(svc Service) Option

func WithShutdownTimeout

func WithShutdownTimeout(d time.Duration) Option

type Runner

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

func New

func New(opts ...Option) *Runner

func (*Runner) Run

func (r *Runner) Run()

type Service

type Service interface {
	Start(ctx context.Context) error
	Stop() error
	Name() string
}

Jump to

Keyboard shortcuts

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