Documentation ¶
Index ¶
- func Init(h *httputils.Handler, flow Flow, store FlowStore)
- type EmptyStep
- type Flow
- type FlowStore
- type SimpleStep
- func (s *SimpleStep) GetPropertyName() string
- func (s *SimpleStep) IsEmpty() bool
- func (s *SimpleStep) PostSlackAttachment(flowHandler string, i int) *model.SlackAttachment
- func (s *SimpleStep) ResponseSlackAttachment(value bool) *model.SlackAttachment
- func (s *SimpleStep) ShouldSkip(value bool) int
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmptyStep ¶
func (*EmptyStep) GetPropertyName ¶
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 ¶
type FlowStore ¶
type FlowStore interface { SetProperty(userID, propertyName string, value bool) error SetPostID(userID, propertyName, postID string) error GetPostID(userID, propertyName string) (string, error) RemovePostID(userID, propertyName string) error GetCurrentStep(userID string) (int, error) SetCurrentStep(userID string, step int) error DeleteCurrentStep(userID string) error }
type SimpleStep ¶
type SimpleStep struct { Title string Message string PropertyName string TrueButtonMessage string FalseButtonMessage string TrueResponseMessage string FalseResponseMessage string TrueSkip int FalseSkip int }
func (*SimpleStep) GetPropertyName ¶
func (s *SimpleStep) GetPropertyName() string
func (*SimpleStep) IsEmpty ¶
func (s *SimpleStep) IsEmpty() bool
func (*SimpleStep) PostSlackAttachment ¶
func (s *SimpleStep) PostSlackAttachment(flowHandler string, i int) *model.SlackAttachment
func (*SimpleStep) ResponseSlackAttachment ¶
func (s *SimpleStep) ResponseSlackAttachment(value bool) *model.SlackAttachment
func (*SimpleStep) ShouldSkip ¶
func (s *SimpleStep) ShouldSkip(value bool) int
Click to show internal directories.
Click to hide internal directories.