Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Flow ¶
type FlowController ¶
type FlowController interface { RegisterFlow(Flow, FlowStore) Start(userID string) error NextStep(userID string, from int, value bool) error Cancel(userID string) error }
func NewFlowController ¶
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 }
Click to show internal directories.
Click to hide internal directories.