steps

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyStep

type EmptyStep struct {
	Title   string
	Message string
}

func (*EmptyStep) GetPropertyName

func (s *EmptyStep) GetPropertyName() string

func (*EmptyStep) IsEmpty

func (s *EmptyStep) IsEmpty() bool

func (*EmptyStep) PostSlackAttachment

func (s *EmptyStep) PostSlackAttachment(flowHandler string, i int) *model.SlackAttachment

func (*EmptyStep) ResponseSlackAttachment

func (s *EmptyStep) ResponseSlackAttachment(value bool) *model.SlackAttachment

func (*EmptyStep) ShouldSkip

func (s *EmptyStep) ShouldSkip(value bool) int

type SimpleStep added in v0.1.2

type SimpleStep struct {
	Title                string
	Message              string
	PropertyName         string
	TrueButtonMessage    string
	FalseButtonMessage   string
	TrueResponseMessage  string
	FalseResponseMessage string
	TrueSkip             int
	FalseSkip            int
}

func (*SimpleStep) GetPropertyName added in v0.1.2

func (s *SimpleStep) GetPropertyName() string

func (*SimpleStep) IsEmpty added in v0.1.2

func (s *SimpleStep) IsEmpty() bool

func (*SimpleStep) PostSlackAttachment added in v0.1.2

func (s *SimpleStep) PostSlackAttachment(flowHandler string, i int) *model.SlackAttachment

func (*SimpleStep) ResponseSlackAttachment added in v0.1.2

func (s *SimpleStep) ResponseSlackAttachment(value bool) *model.SlackAttachment

func (*SimpleStep) ShouldSkip added in v0.1.2

func (s *SimpleStep) ShouldSkip(value bool) int

type Step

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

Jump to

Keyboard shortcuts

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