cmd

package
v0.0.0-...-5da9168 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(cfg *config.Logger, tag string) *logrus.Logger

func Run

func Run(ctx context.Context, opt RunOpt, f func(ctx context.Context) error)

func Seed

func Seed()

func SetupLog

func SetupLog(cfg *config.Logger, tag string) *logrus.Logger

Types

type RunOpt

type RunOpt struct {
	Timeout  time.Duration // graceful shutdown hard timeout
	ExitWait time.Duration // wait before exit
}

Jump to

Keyboard shortcuts

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