Documentation ¶
Index ¶
Constants ¶
View Source
const (
HeaderMattermostUserID = "Mattermost-User-Id"
)
View Source
const (
PluginName = "disable-dm"
)
Variables ¶
View Source
var (
Mattermost plugin.API
)
Functions ¶
func SetConfig ¶
func SetConfig(c *Configuration)
Types ¶
type Configuration ¶
type Configuration struct { RejectDMs bool `json:"RejectDMs"` RejectGroupChats bool `json:"RejectGroupChats"` RejectionMessage string `json:"RejectionMessage"` }
func GetConfig ¶
func GetConfig() *Configuration
func (*Configuration) IsValid ¶
func (c *Configuration) IsValid() error
func (*Configuration) ProcessConfiguration ¶
func (c *Configuration) ProcessConfiguration() error
Click to show internal directories.
Click to hide internal directories.