config

package
v0.0.0-...-a3dd3c6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config defines the structure of Aker's configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server    ServerConfig `yaml:"server"`
	Endpoints []Endpoint   `yaml:"endpoints"`
}

func LoadFromFile

func LoadFromFile(name string) (Config, error)

type Endpoint

type Endpoint struct {
	Path    string            `yaml:"path"`
	Audit   bool              `yaml:"audit"`
	Plugins []PluginReference `yaml:"plugins"`
}

type PluginConfig

type PluginConfig map[string]interface{}

type PluginReference

type PluginReference struct {
	Name   string       `yaml:"name"`
	Config PluginConfig `yaml:"configuration"`
}

type ServerConfig

type ServerConfig struct {
	Host         string `yaml:"host"`
	Port         int    `yaml:"port"`
	ReadTimeout  int    `yaml:"read_timeout"`
	WriteTimeout int    `yaml:"write_timeout"`
}

Jump to

Keyboard shortcuts

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