service

package
v0.14.0-rc.11 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ShutdownTimeoutParam = "shutdown_timeout"

ShutdownTimeoutParam name for viper setting.

Variables

View Source
var (

	// Module for group of services
	// nolint:gochecknoglobals
	Module = module.Module{
		{Constructor: newParam},
		{Constructor: newGroup},
	}
)

Functions

This section is empty.

Types

type Group

type Group interface {
	Run(context.Context) error
}

Group wrapper around group of services.

type Params

type Params struct {
	dig.In

	Logger   *zap.Logger
	Group    []Service     `group:"services"`
	Shutdown time.Duration `name:"service_shutdown_timeout"`
}

Params for service module.

type Service

type Service interface {
	Name() string
	// contains filtered or unexported methods
}

Service interface.

Jump to

Keyboard shortcuts

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