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, value interface{}) error
GetCurrentStep(userID string) (steps.Step, int, error)
GetHandlerURL() string
GetFlow() Flow
Cancel(userID string) error
SetProperty(userID, propertyName string, value interface{}) error
}
func NewFlowController ¶
type Flow ¶
type PropertyStore ¶
type Store ¶
type Store interface {
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.