conf

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallOptionsWatchDog

func InstallOptionsWatchDog(dog func(cc *Options))

func OptionsOptionDeclareWithDefault

func OptionsOptionDeclareWithDefault() interface{}

Types

type Option

type Option func(cc *Options) Option

func WithDebug

func WithDebug(v bool) Option

func WithKeepAlive

func WithKeepAlive(v bool) Option

func WithPort

func WithPort(v int) Option

type Options

type Options struct {
	Port      int
	KeepAlive bool
	Debug     bool
}

func NewOptions

func NewOptions(opts ...Option) *Options

func (*Options) ApplyOption

func (cc *Options) ApplyOption(opts ...Option)

func (*Options) GetSetOption

func (cc *Options) GetSetOption(opt Option) Option

func (*Options) SetOption

func (cc *Options) SetOption(opt Option)

Jump to

Keyboard shortcuts

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