config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventDBCfg

type EventDBCfg struct {
	Dirs  []string
	Files []string
}

EventDBCfg defines the configuration of the event database

type EventForwardAPICfg

type EventForwardAPICfg struct {
	Enable bool
	Log    bool
}

EventForwardAPICfg stores event service preferences

func (*EventForwardAPICfg) BindViper

func (cfg *EventForwardAPICfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (EventForwardAPICfg) Dump

func (cfg EventForwardAPICfg) Dump() string

Dump configuration

func (EventForwardAPICfg) Empty

func (cfg EventForwardAPICfg) Empty() bool

Empty returns true if configuration is empty

func (*EventForwardAPICfg) FromViper

func (cfg *EventForwardAPICfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*EventForwardAPICfg) SetPFlags

func (cfg *EventForwardAPICfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (EventForwardAPICfg) Validate

func (cfg EventForwardAPICfg) Validate() error

Validate checks that configuration is ok

type EventNotifyAPICfg

type EventNotifyAPICfg struct {
	Enable bool
	Log    bool
}

EventNotifyAPICfg stores event service preferences

func (*EventNotifyAPICfg) BindViper

func (cfg *EventNotifyAPICfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (EventNotifyAPICfg) Dump

func (cfg EventNotifyAPICfg) Dump() string

Dump configuration

func (EventNotifyAPICfg) Empty

func (cfg EventNotifyAPICfg) Empty() bool

Empty returns true if configuration is empty

func (*EventNotifyAPICfg) FromViper

func (cfg *EventNotifyAPICfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*EventNotifyAPICfg) SetPFlags

func (cfg *EventNotifyAPICfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (EventNotifyAPICfg) Validate

func (cfg EventNotifyAPICfg) Validate() error

Validate checks that configuration is ok

type EventProcCfg

type EventProcCfg struct {
	Stack    StackCfg
	DB       EventDBCfg
	Workers  int
	CertsDir string
	DataDir  string
	CacheDir string
}

EventProcCfg defines the configuration of a processor

func (*EventProcCfg) BindViper

func (cfg *EventProcCfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (EventProcCfg) Dump

func (cfg EventProcCfg) Dump() string

Dump configuration

func (EventProcCfg) Empty

func (cfg EventProcCfg) Empty() bool

Empty returns true if configuration is empty

func (*EventProcCfg) FromViper

func (cfg *EventProcCfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*EventProcCfg) SetPFlags

func (cfg *EventProcCfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (EventProcCfg) Validate

func (cfg EventProcCfg) Validate() error

Validate checks that configuration is ok

type StackCfg

type StackCfg struct {
	Dirs  []string
	Files []string
	Main  string
}

StackCfg defines the configuration of stack

Jump to

Keyboard shortcuts

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