config

package
v0.0.1-0...-63727a9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: MIT Imports: 1 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 {
	Server    Server
	Logging   Logging
	Metadata  Metadata
	Providers Providers
}
var Configuration Config

func LoadConfigFromFile

func LoadConfigFromFile(tomlFile string) (Config, error)

LoadFromFile read YAML into configuration

type Contact

type Contact struct {
	Name            string
	Position        string
	Address         string
	City            string
	StateOrProvince string
	PostalCode      string
	Country         string
	Phone           string
	Fax             string
	Email           string
	URL             string
	Hours           string
	Instructions    string
	Role            string
}

type Identification

type Identification struct {
	Title             string
	Description       string
	Keywords          []string
	KeywordsType      string
	Fees              string
	AccessConstraints string
}

type Logging

type Logging struct {
	Level   string
	Logfile string
}

type Metadata

type Metadata struct {
	Identification  Identification
	ServiceProvider ServiceProvider
	Contact         Contact
}

type Providers

type Providers struct {
	Data string
}

type Server

type Server struct {
	BindHost    string
	BindPort    int
	Address     string
	MimeType    string
	Encoding    string
	Language    string
	PrettyPrint bool
	Limit       int
}

Config provides an object model for configuration.

type ServiceProvider

type ServiceProvider struct {
	Name string
	URL  string
}

Jump to

Keyboard shortcuts

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