config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig interface {
	// Common returns common configuration.
	Common() CommonAppConfig
	// Http returns HTTP configuration.
	Http() HttpAppConfig
	// Storage returns storage configuration.
	Storage() StorageAppConfig
	// ImageMagickRenderer returns ImageMagick render agent configuration.
	ImageMagickRenderAgent() ImageMagickRenderAgentAppConfig
	// DocumentRenderAgent returns Document render agent configuration.
	DocumentRenderAgent() DocumentRenderAgentAppConfig
	// SimpleApi returns SimpleBlueprint configuration.
	SimpleApi() SimpleApiAppConfig
	AssetApi() AssetApiAppConfig
	Uploader() UploaderAppConfig
	Downloader() DownloaderAppConfig
	Source() string
}

AppConfig represents the configuration collections for the preview application.

func LoadAppConfig

func LoadAppConfig(givenPath string) (AppConfig, error)

func NewDefaultAppConfig

func NewDefaultAppConfig() (AppConfig, error)

func NewDefaultAppConfigWithBaseDirectory

func NewDefaultAppConfigWithBaseDirectory(root string) (AppConfig, error)

func NewUserAppConfig

func NewUserAppConfig(content []byte) (AppConfig, error)

type AssetApiAppConfig

type AssetApiAppConfig interface {
	Enabled() bool
}

type CommonAppConfig

type CommonAppConfig interface {
	PlaceholderBasePath() string
	PlaceholderGroups() map[string][]string
	LocalAssetStoragePath() string
	NodeId() string
}

type DocumentRenderAgentAppConfig

type DocumentRenderAgentAppConfig interface {
	Enabled() bool
	Count() int
	BasePath() string
}

type DownloaderAppConfig

type DownloaderAppConfig interface {
	BasePath() string
	TramEnabled() bool
	TramHosts() ([]string, error)
}

type HttpAppConfig

type HttpAppConfig interface {
	Listen() string
}

type ImageMagickRenderAgentAppConfig

type ImageMagickRenderAgentAppConfig interface {
	Enabled() bool
	Count() int
	SupportedFileTypes() map[string]int64
}

type SimpleApiAppConfig

type SimpleApiAppConfig interface {
	Enabled() bool
	EdgeBaseUrl() string
}

type StorageAppConfig

type StorageAppConfig interface {
	Engine() string
	CassandraNodes() ([]string, error)
	CassandraKeyspace() (string, error)
}

type UploaderAppConfig

type UploaderAppConfig interface {
	Engine() string
	S3Key() (string, error)
	S3Secret() (string, error)
	S3Host() (string, error)
	S3Buckets() ([]string, error)
}

Jump to

Keyboard shortcuts

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