engine

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: AGPL-3.0 Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptySprint added in v0.25.4

func NewEmptySprint() flows.Sprint

NewEmptySprint creates a new sprint

func NewSessionAssets added in v0.4.0

func NewSessionAssets(source assets.Source) (flows.SessionAssets, error)

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

func NewSprint added in v0.24.0

func NewSprint(modifiers []flows.Modifier, events []flows.Event) flows.Sprint

NewSprint creates a new sprint with the passed in modifiers and events

Types

type AirtimeService added in v0.50.0

type AirtimeService func(flows.Session) flows.AirtimeProvider

AirtimeService resolves a session to an airtime provider

type Builder added in v0.27.4

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

Builder is a builder for engine configs

func NewBuilder added in v0.27.4

func NewBuilder() *Builder

NewBuilder creates a new environment builder

func (*Builder) Build added in v0.27.4

func (b *Builder) Build() flows.Engine

Build returns the final engine

func (*Builder) WithAirtimeService added in v0.48.0

func (b *Builder) WithAirtimeService(svc AirtimeService) *Builder

WithAirtimeService sets the airtime transfer service

func (*Builder) WithMaxStepsPerSprint added in v0.30.0

func (b *Builder) WithMaxStepsPerSprint(max int) *Builder

WithMaxStepsPerSprint sets the maximum number of steps allowed in a single sprint

func (*Builder) WithWebhookService added in v0.49.0

func (b *Builder) WithWebhookService(svc WebhookService) *Builder

WithWebhookService sets the webhook service

type WebhookService added in v0.50.0

type WebhookService func(flows.Session) flows.WebhookProvider

WebhookService resolves a session to a webhook provider

Jump to

Keyboard shortcuts

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