Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
Start(userID string) error
NextStep(userID string, from int, skip int) error
GetCurrentStep(userID string) (steps.Step, int, error)
GetFlow() Flow
Cancel(userID string) error
}
func NewFlowController ¶
type DialogCreater ¶ added in v0.0.23
type DialogCreater interface {
OpenInteractiveDialog(dialog model.OpenDialogRequest) error
}
type Flow ¶
type Store ¶
type Store interface {
SetPostID(userID, flowName, stepName, postID string) error
GetPostID(userID, flowName, stepName string) (string, error)
RemovePostID(userID, flowName, stepName string) error
GetCurrentStep(userID, flowName string) (int, error)
SetCurrentStep(userID, flowName string, step int) error
DeleteCurrentStep(userID, flowName string) error
}
Click to show internal directories.
Click to hide internal directories.