config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.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 Config

type Config struct {
	Modules map[string]Module `yaml:"modules"`
}

func LoadFromFile

func LoadFromFile(path string) (*Config, error)

type Module

type Module struct {
	Username            string
	Password            string
	Secret              []byte
	SingleConnect       bool
	LegacySingleConnect bool
	PrivLevel           uint8
	Port                string
	Timeout             time.Duration
}

func (*Module) UnmarshalYAML

func (m *Module) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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