config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 2 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 {
	DB struct {
		Host     string
		Port     uint16
		User     string
		Password string
	}
	LDAP struct {
		Enable      bool
		Placeholder struct {
			Username string
			Password string
		}
		Addr       string
		BaseDN     string `yaml:"baseDN"`
		Level      uint32
		OrgID      uint32 `yaml:"orgID"`
		AttrMapKey struct {
			Name  string
			Email string
		} `yaml:"attrMapKey"`
	}
	Teams struct {
		Enable     bool
		Entrypoint string
	}
}

Config config

func ParseConfig

func ParseConfig(configFile string) (*Config, error)

ParseConfig parses a file to config

Jump to

Keyboard shortcuts

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