engine

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: AGPL-3.0 Imports: 12 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig added in v0.10.3

func NewConfig(disableWebhooks bool, webhookMocks []*flows.WebhookMock, maxWebhookResponseBytes int) flows.EngineConfig

NewConfig returns a new engine configuration

func NewDefaultConfig added in v0.9.3

func NewDefaultConfig() flows.EngineConfig

NewDefaultConfig returns the default engine configuration

func NewMockAssetServer added in v0.4.0

func NewMockAssetServer(cache *assets.AssetCache) *assets.MockAssetServer

NewMockAssetServer creates a new mocked asset server with URLs for all flow engine types already configured

func NewSession added in v0.4.0

func NewSession(assetServer assets.AssetServer, engineConfig flows.EngineConfig, httpClient *utils.HTTPClient) flows.Session

NewSession creates a new session

func NewSessionAssets added in v0.4.0

func NewSessionAssets(server assets.AssetServer) flows.SessionAssets

NewSessionAssets creates a new session assets instance with the provided base URLs

func ReadConfig added in v0.10.3

func ReadConfig(data json.RawMessage, base flows.EngineConfig) (flows.EngineConfig, error)

ReadConfig reads an engine configuration from the given JSON, using the provided config as a base

func ReadSession added in v0.4.0

func ReadSession(assetServer assets.AssetServer, engineConfig flows.EngineConfig, httpClient *utils.HTTPClient, data json.RawMessage) (flows.Session, error)

ReadSession decodes a session from the passed in JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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