config

package
v0.0.0-...-9fc8a72 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig struct {
	Source int `json:"source"`
}

type Config

type Config struct {
	Http     HttpConfig      `json:"http"`
	Filters  []FilterConfig  `json:"filters"`
	Image    ImageConfig     `json:"image"`
	Storages []StorageConfig `json:"storages"`
	Cache    CacheConfig     `json:"caches"`
}

func Get

func Get() *Config

func Load

func Load(file string) *Config

type FilterConfig

type FilterConfig struct {
	Name       string `json:"name"`
	Definition string `json:"definition"`
}

type HttpConfig

type HttpConfig struct {
	Port       int           `json:"port"`
	Root       string        `json:"root"`
	TimeOutStr string        `json:"timeout"`
	TimeOut    time.Duration `json:"-"`
	Workers    int           `json:"workers"`
}

type ImageConfig

type ImageConfig struct {
	Quality int `json:"quality"`
}

type StorageConfig

type StorageConfig struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Path string `json:"path"`
}

Jump to

Keyboard shortcuts

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