svc

package
v0.10.11 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default = configset.Default
	Dev     = configset.Dev
	Test    = configset.Test
)
View Source
const ConfigDelim = svc.Delim

Variables

View Source
var (
	LoadConfig = svc.LoadConfig
	StartDB    = svc.StartDB
)
View Source
var ParseMode = configset.ParseMode

Functions

This section is empty.

Types

type Config added in v0.3.0

type Config = svc.Config

type RunOptions added in v0.3.0

type RunOptions = svc.RunOptions

type Service added in v0.3.0

type Service interface {
	Start(context.Context) error
	Stop(context.Context) error
	Wait() <-chan ShutdownSignal
}

func New

func New(cfg *Config, ropts RunOptions) (Service, error)

type ShutdownSignal added in v0.3.0

type ShutdownSignal = fx.ShutdownSignal

Jump to

Keyboard shortcuts

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