Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(r *mux.Router, fc Controller)
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 ¶
func NewFlowController( p poster.Poster, l logger.Logger, pluginURL string, flow Flow, flowStore Store, propertyStore PropertyStore, ) Controller
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.