conf

package
v0.0.0-...-7a98856 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationBackend

type ConfigurationBackend interface {
	GetPath() string
	GetValue(key string) map[string]interface{}
	GetString(key string) string
	GetValues(key string) map[string]interface{}
}

type ServerConfiguration

type ServerConfiguration struct {
	Addr          string                 `json:"bind-addr"`
	Port          int                    `json:"bind-port"`
	AllowedTags   []string               `json:"allowed-tags"`
	AllowUntagged bool                   `json:"allow-untagged"`
	Journal       map[string]interface{} `json:"journal"`
	Auth          map[string]interface{} `json:"journal"`
	Backend       ConfigurationBackend
}

func ConfigurationFromBackend

func ConfigurationFromBackend(configLocation string) *ServerConfiguration

Jump to

Keyboard shortcuts

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