Documentation ¶
Index ¶
- func Init(h *httputils.Handler, flow Flow, store Store)
- type EmptyStep
- type Flow
- 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
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmptyStep ¶
func (*EmptyStep) GetPropertyName ¶
func (*EmptyStep) PostSlackAttachment ¶
func (s *EmptyStep) PostSlackAttachment(_ string, _ int) *model.SlackAttachment
func (*EmptyStep) ResponseSlackAttachment ¶
func (s *EmptyStep) ResponseSlackAttachment(_ bool) *model.SlackAttachment
func (*EmptyStep) ShouldSkip ¶
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
type Store ¶
type Store 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 }
Click to show internal directories.
Click to hide internal directories.