config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
View Source
var RootCmd = &cobra.Command{
	Use:  "policy-man",
	Long: Logo,
	Run: func(cmd *cobra.Command, args []string) {
	},
}

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Mode string `mapstructure:"mode"`

	Host string `mapstructure:"host"`
	Port string `mapstructure:"port"`

	ShutdownTimeout int64 `mapstructure:"shutdown_timeout"`

	Log sectionLog `mapstructure:"log"`

	SSL sectionSSL `mapstructure:"ssl"`
}

func LoadConf

func LoadConf() (*Conf, error)

Jump to

Keyboard shortcuts

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