creator

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package creator creates dependencies upon initialization.

Index

Constants

View Source
const ENDPOINT = "/v1/apps/:environment/:org/:space/:appName"

ENDPOINT is used by the handler to define the deployment endpoint.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {
	// contains filtered or unexported fields
}

Creator has a config, eventManager, logger and writer for creating dependencies.

func Custom

func Custom(level string, configFilename string) (Creator, error)

Custom returns a custom Creator with an Error.

func Default

func Default() (Creator, error)

Default returns a default Creator and an Error.

func (Creator) CreateConfig

func (c Creator) CreateConfig() config.Config

CreateConfig returns a Config.

func (Creator) CreateControllerHandler

func (c Creator) CreateControllerHandler() *gin.Engine

CreateControllerHandler returns a gin.Engine that implements http.Handler. Sets up the controller endpoint.

func (Creator) CreateEventManager

func (c Creator) CreateEventManager() I.EventManager

CreateEventManager returns an EventManager.

func (Creator) CreateFileSystem added in v0.4.0

func (c Creator) CreateFileSystem() *afero.Afero

func (Creator) CreateListener

func (c Creator) CreateListener() net.Listener

CreateListener creates a listener TCP and listens for all incoming requests.

func (Creator) CreateLogger

func (c Creator) CreateLogger() *logging.Logger

CreateLogger returns a Logger.

func (Creator) CreatePusher

func (c Creator) CreatePusher() (I.Pusher, error)

CreatePusher is used by the BlueGreener.

Returns a pusher and error.

Jump to

Keyboard shortcuts

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