config

package
v0.0.0-...-d9fd4a4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 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 {
	Listen string
	S3     *S3Config
	Swift  *SwiftConfig
}

func ReadFile

func ReadFile(filename string) (*Config, error)

func (*Config) StorageType

func (c *Config) StorageType() string

type S3Config

type S3Config struct {
	Hostname        string // Optional. Default s3.amazonaws.com
	AccessKey       string `toml:"access_key"`
	SecretAccessKey string `toml:"secret_access_key"`
	Bucket          string
	DefaultACL      string `toml:"default_acl"` // optional. Default private. public-read
	CDNUrl          string `toml:"cdn_url"`
}

type SwiftConfig

type SwiftConfig struct {
	APIUser          string `toml:"api_user"`
	APIKey           string `toml:"api_key"`
	AuthURL          string `toml:"auth_url"`
	Tenant           string `toml:"tenant"`
	TenantID         string `toml:"tenant_id"`
	Region           string `toml:"region"`
	Container        string `toml:"container"`
	ContainerReadACL string `toml:"container_read_acl"`
	CDNUrl           string `toml:"cdn_url"`
	Shard            bool   `toml:"shard"`
	CheckInit        bool   `toml:"check_init"`
}

Jump to

Keyboard shortcuts

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