config

package
v0.0.0-...-db1d7af Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobstoreConfig

type BlobstoreConfig struct {
	Filepath        string
	Provider        string
	AccessKeyId     string `yaml:"access_key_id"`
	AccessKeySecret string `yaml:"access_key_secret"`
	Host            string
	BucketName      string `yaml:"bucket_name"`
}

type Config

type Config struct {
	DefaultBackendURL string `yaml:"default_backend_url"`
	Port              int
	DB                DbConfig
	AppPackages       BlobstoreConfig `yaml:"app_packages"`
}

func New

func New(configBytes []byte) (c Config, err error)

func NewFromFile

func NewFromFile(filePath string) (c Config, err error)

type DbConfig

type DbConfig struct {
	URI string `yaml:"database"`
}

Jump to

Keyboard shortcuts

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