box

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

README

						____
						|  _ \
						| |_) | _____  __
						|  _ < / _ \ \/ /
						| |_) | (_) >  <
						|____/ \___/_/\_\

PkgGoDev Go Report Card CI Status Coverage Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Run() error
}

func New

func New(options ...Option) Application

New new a box bootstrap

type Box

type Box interface {
	server.Server
}

Box component interface

type Option

type Option func(ops *Options)

Option setter

func WithBoxes

func WithBoxes(boxes ...Box) Option

WithBoxes set boxes

func WithConfig

func WithConfig(cfg config.Configurator) Option

WithConfig set configurator

func WithShutdownTimeout

func WithShutdownTimeout(timeout int) Option

WithShutdownTimeout

func WithSilent

func WithSilent(silent bool) Option

func WithStartupTimeout

func WithStartupTimeout(timeout int) Option

type Options

type Options struct {
	Silent          bool
	StartupTimeout  int
	ShutdownTimeout int
	Boxes           []Box
	Configurator    config.Configurator
}

Options new box options

Directories

Path Synopsis
pkg
app
config
Package config is an interface for dynamic configuration.
Package config is an interface for dynamic configuration.
config/encoder
Package encoder handles source encoding formats
Package encoder handles source encoding formats
config/loader
Package loader manages loading from multiple sources
Package loader manages loading from multiple sources
config/reader
Package reader parses change sets and provides config values
Package reader parses change sets and provides config values
config/source
Package source is the interface for sources
Package source is the interface for sources
config/source/file
Package file is a file source.
Package file is a file source.

Jump to

Keyboard shortcuts

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