Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContextActionKey = "id" ContextMessageKey = "message" ContextPayloadKey = "payload" ContextNewMessage = "new_message" ContextNewPayload = "new_payload" CancelAction = "cancel" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreetextFetcher ¶
type FreetextFetcher interface {
MessageHasBeenPosted(c *plugin.Context, post *model.Post, api plugin.API, l logger.Logger, botUserID string, pluginURL string)
StartFetching(userID string, payload string)
UpdateHooks(validate func(string) string, onFetch func(string, string), onCancel func(string))
URL() string
}
func NewFreetextFetcher ¶
type FreetextStore ¶
type FreetextStore interface {
StartFetching(userID, fetcherID, payload string) error
StopFetching(userID string) error
ShouldProcessFreetext(userID, fetcherID string) (bool, string, error)
}
func NewFreetextStore ¶
func NewFreetextStore(apiClient pluginapi.Client, keyPrefix string) FreetextStore
Source Files
¶
Click to show internal directories.
Click to hide internal directories.