Documentation ¶
Index ¶
- Constants
- func Init(h *httputils.Handler, panel Panel)
- type Panel
- type PanelStore
- type Setting
- func NewBoolSetting(id string, title string, description string, dependsOn string, ...) Setting
- func NewEmptySetting(id, title, description string) 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 ¶
Types ¶
type Panel ¶
type Panel interface { Set(userID, settingID string, value interface{}) error Print(userID string) ToPost(userID string) (*model.Post, error) Clear(userID string) error URL() string GetSettingIDs() []string }
func NewSettingsPanel ¶
type PanelStore ¶
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) }
func NewBoolSetting ¶
func NewEmptySetting ¶
func NewOptionSetting ¶
func NewReadOnlySetting ¶
Click to show internal directories.
Click to hide internal directories.