application

package
v0.0.0-...-6c91261 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func New

func New(providers ...interface{}) *Application

func (*Application) Demonize

func (a *Application) Demonize(invoker interface{})

func (*Application) Run

func (a *Application) Run(invoker interface{})

func (*Application) Stop

func (a *Application) Stop()

type Arguments

type Arguments struct {
	ConfigFilename string `short:"c" long:"config" description:"A path to config file" required:"true"`
}

type Provider

type Provider interface {
	Populate(interface{}) error
	PopulateByKey(string, interface{}) error
}

func NewFxProvider

func NewFxProvider(args Arguments) (Provider, error)

func NewProviderByOptions

func NewProviderByOptions(options ...config.YAMLOption) (Provider, error)

Jump to

Keyboard shortcuts

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