config

package
v0.0.0-...-2b22c89 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: GPL-3.0 Imports: 3 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 {
	Logger *logger.Config `mapstructure:"logger"`
	DB     *db.Config     `mapstructure:"db"`
	OOB    *OOB           `mapstructure:"oob"`
	Web    *Web           `mapstructure:"web"`
}

func Load

func Load(path string) (v *Config, err error)

type DNS

type DNS struct {
	Main string   `mapstructure:"main"`
	NS   []string `mapstructure:"ns"`
	IP   string   `mapstructure:"ip"`
}

type JNDI

type JNDI struct {
	Address string `mapstructure:"address"`
	Limit   int64  `mapstructure:"limit"`
}

type OOB

type OOB struct {
	DNS  DNS  `mapstructure:"dns"`
	JNDI JNDI `mapstructure:"jndi"`
}

type Web

type Web struct {
	Address string `mapstructure:"address"`
	Github  struct {
		ClientID     string `mapstructure:"client-id"`
		ClientSecret string `mapstructure:"client-secret"`
	} `mapstructure:"github"`
}

Jump to

Keyboard shortcuts

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