Documentation ¶
Index ¶
- Constants
- type FreetextInfo
- type Setting
- func NewBoolSetting(id string, title string, description string, dependsOn string, ...) Setting
- func NewEmptySetting(id, title, description string) Setting
- func NewFreetextSetting(id, title, description, modifyMessage, dependsOn string, store SettingStore, ...) Setting
- func NewOptionSetting(id string, title string, description string, dependsOn string, ...) Setting
- func NewReadOnlySetting(id string, title string, description string, dependsOn string, ...) Setting
- type SettingStore
Constants ¶
View Source
const ( ContextIDKey = "setting_id" ContextButtonValueKey = "button_value" ContextOptionValueKey = "selected_option" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreetextInfo ¶ added in v0.1.9
type Setting ¶
type Setting interface { Set(userID string, value interface{}) error Get(userID string) (interface{}, error) GetID() string GetDependency() string IsDisabled(foreignValue interface{}) bool GetTitle() string GetDescription() string GetSlackAttachments(userID, settingHandler string, disabled bool) (*model.SlackAttachment, error) GetFreetextFetcher() freetext_fetcher.FreetextFetcher }
func NewBoolSetting ¶
func NewEmptySetting ¶
func NewFreetextSetting ¶ added in v0.1.9
func NewFreetextSetting(id, title, description, modifyMessage, dependsOn string, store SettingStore, baseURL string, pluginURL string, ftfStore freetext_fetcher.FreetextStore, validate func(string) string, r *mux.Router, posterBot poster.Poster) Setting
func NewOptionSetting ¶
func NewReadOnlySetting ¶
Click to show internal directories.
Click to hide internal directories.