engine

package
v0.113.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: AGPL-3.0 Imports: 17 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(env envs.Environment, source assets.Source, migrationConfig *migrations.Config) (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 AirtimeServiceFactory added in v0.51.0

type AirtimeServiceFactory func(flows.Session) (flows.AirtimeService, error)

AirtimeServiceFactory resolves a session to an airtime service

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 engine builder

func (*Builder) Build added in v0.27.4

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

Build returns the final engine

func (*Builder) WithAirtimeServiceFactory added in v0.51.0

func (b *Builder) WithAirtimeServiceFactory(f AirtimeServiceFactory) *Builder

WithAirtimeServiceFactory sets the airtime service factory

func (*Builder) WithClassificationServiceFactory added in v0.51.0

func (b *Builder) WithClassificationServiceFactory(f ClassificationServiceFactory) *Builder

WithClassificationServiceFactory sets the NLU service factory

func (*Builder) WithEmailServiceFactory added in v0.61.0

func (b *Builder) WithEmailServiceFactory(f EmailServiceFactory) *Builder

WithEmailServiceFactory sets the email service factory

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) WithMaxTemplateChars added in v0.64.11

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

WithMaxTemplateChars sets the maximum number of characters allowed from an evaluated template

func (*Builder) WithTicketServiceFactory added in v0.86.0

func (b *Builder) WithTicketServiceFactory(f TicketServiceFactory) *Builder

WithTicketServiceFactory sets the ticket service factory

func (*Builder) WithWebhookServiceFactory added in v0.51.0

func (b *Builder) WithWebhookServiceFactory(f WebhookServiceFactory) *Builder

WithWebhookServiceFactory sets the webhook service factory

type ClassificationServiceFactory added in v0.51.0

type ClassificationServiceFactory func(flows.Session, *flows.Classifier) (flows.ClassificationService, error)

ClassificationServiceFactory resolves a session and classifier to an NLU service

type EmailServiceFactory added in v0.61.0

type EmailServiceFactory func(flows.Session) (flows.EmailService, error)

EmailServiceFactory resolves a session to a email service

type TicketServiceFactory added in v0.86.0

type TicketServiceFactory func(flows.Session, *flows.Ticketer) (flows.TicketService, error)

TicketServiceFactory resolves a session to a ticket service

type WebhookServiceFactory added in v0.51.0

type WebhookServiceFactory func(flows.Session) (flows.WebhookService, error)

WebhookServiceFactory resolves a session to a webhook service

Jump to

Keyboard shortcuts

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