steps

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextPropertyKey    = "property"
	ContextButtonValueKey = "button_value"
	ContextOptionValueKey = "selected_option"
	ContextStepKey        = "step"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Step

type Step interface {
	PostSlackAttachment(flowHandler string, i int) *model.SlackAttachment
	ResponseSlackAttachment(value interface{}) *model.SlackAttachment
	GetPropertyName() string
	ShouldSkip(value interface{}) int
	IsEmpty() bool
	GetFreetextFetcher() freetext_fetcher.FreetextFetcher
}

func NewEmptyStep added in v0.1.9

func NewEmptyStep(title, message string) Step

func NewFreetextStep added in v0.1.10

func NewFreetextStep(title, message, propertyName, baseURL string, store freetext_fetcher.FreetextStore, validate func(string) string, r *mux.Router, posterBot poster.Poster) Step

func NewSimpleStep added in v0.1.9

func NewSimpleStep(title, message, propertyName, trueButtonMessage, falseButtonMessage, trueResponseMessage, falseResponseMessage string, trueSkip, falseSkip int) Step

Jump to

Keyboard shortcuts

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