api

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdminBlueprint

func NewAdminBlueprint(appConfig config.AppConfig, placeholderManager common.PlaceholderManager, temporaryFileManager common.TemporaryFileManager) *adminBlueprint

NewAdminBlueprint creates a new adminBlueprint object.

func NewAssetBlueprint

func NewAssetBlueprint(
	localAssetStoragePath string,
	sourceAssetStorageManager common.SourceAssetStorageManager,
	generatedAssetStorageManager common.GeneratedAssetStorageManager,
	templateManager common.TemplateManager,
	placeholderManager common.PlaceholderManager) *assetBlueprint

NewAssetBlueprint creates, configures and returns a new blueprint. This structure contains the state and HTTP controllers used to serve assets.

func NewSimpleBlueprint

func NewSimpleBlueprint(
	edgeContentHost string,
	renderAgentManager *render.RenderAgentManager,
	sourceAssetStorageManager common.SourceAssetStorageManager,
	generatedAssetStorageManager common.GeneratedAssetStorageManager,
	templateManager common.TemplateManager,
	placeholderManager common.PlaceholderManager,
	supportedFileTypes map[string]int64) (*simpleBlueprint, error)

NewSimpleBlueprint creates a new simpleBlueprint object.

func NewStaticBlueprint

func NewStaticBlueprint(placeholderManager common.PlaceholderManager) *staticBlueprint

Types

type Blueprint

type Blueprint interface {
	// ConfigureMartini configures martini with the HTTP handlers provided by the blueprint.
	ConfigureMartini(m *martini.ClassicMartini) error
}

Blueprint structures represent collections of HTTP handlers that can be configured to hook into martini.

Jump to

Keyboard shortcuts

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