config

package
v0.0.0-...-6899a91 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lhasa

type Lhasa struct {
	DB         db.DatabaseCredentials `json:"appcatalog-db"`
	Policy     security.Policy        `json:"security"`
	LogHeaders []string               `json:"log-headers"`
}

Lhasa is the main config format

func Empty

func Empty() Lhasa

Empty returns an empty configuration struct

func LoadFromFile

func LoadFromFile(configFile *os.File) (config Lhasa, err error)

LoadFromFile extract configuration file

Source Files

  • loader.go
  • type.go

Jump to

Keyboard shortcuts

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