application

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Environment string
)

Functions

This section is empty.

Types

type Application

type Application struct {
	Log       log.Logger `wire:""`
	Server    *ServerConfig
	StartTime time.Time
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication() *Application

func (*Application) GenMode

func (r *Application) GenMode() *Application

func (*Application) Run

func (r *Application) Run(args ...string)

func (*Application) Shutdown

func (r *Application) Shutdown(sig os.Signal) error

type ServerConfig

type ServerConfig struct {
	types.AutoConfigure `prefix:"server"`
	Port                int `yaml:"port"`
}

Jump to

Keyboard shortcuts

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