fix

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGracefulContext

func NewGracefulContext(l *zap.Logger) context.Context

NewGracefulContext returns graceful context.

Types

type App

type App interface {
	Run() error
	RunAndCatch()
}

App is an interface of executable application.

func New

func New(s *Settings, mod module.Module) App

New is an application constructor.

type Service

type Service interface {
	Start(context.Context)
	Stop()
}

Service interface

func NewServices

func NewServices(items ...Service) Service

NewServices creates single runner.

type Settings

type Settings struct {
	File    string
	Type    string
	Name    string
	Prefix  string
	Build   string
	Version string
	Runner  interface{}

	AppDefaults func(v *viper.Viper)
}

Settings groups the application parameters.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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