Documentation ¶
Index ¶
- Constants
- type Config
- type GlobalNotifierSlack
- func (m *GlobalNotifierSlack) Close() error
- func (m *GlobalNotifierSlack) GetConfig() interface{}
- func (m *GlobalNotifierSlack) GetGroup() core.ModuleGroup
- func (m *GlobalNotifierSlack) GetName() string
- func (m *GlobalNotifierSlack) GetType() core.ModuleType
- func (m *GlobalNotifierSlack) InitModule(_cfg interface{}) error
- func (m *GlobalNotifierSlack) InitPipe(w io.Writer, r io.Reader) error
- func (m *GlobalNotifierSlack) Run(ctx context.Context) error
- type SlackMessage
Constants ¶
View Source
const ( GROUP_NAME = "global" TYPE_NAME = "notifier" MODULE_NAME = "slack" SlackHookSite = "https://hooks.slack.com/services" HeaderContentType = "Content-Type" MIMEApplicationJSON = "application/json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func (*Config) NotifySlackChannel ¶
type GlobalNotifierSlack ¶
func (*GlobalNotifierSlack) Close ¶
func (m *GlobalNotifierSlack) Close() error
func (*GlobalNotifierSlack) GetConfig ¶
func (m *GlobalNotifierSlack) GetConfig() interface{}
func (*GlobalNotifierSlack) GetGroup ¶
func (m *GlobalNotifierSlack) GetGroup() core.ModuleGroup
func (*GlobalNotifierSlack) GetName ¶
func (m *GlobalNotifierSlack) GetName() string
func (*GlobalNotifierSlack) GetType ¶
func (m *GlobalNotifierSlack) GetType() core.ModuleType
func (*GlobalNotifierSlack) InitModule ¶
func (m *GlobalNotifierSlack) InitModule(_cfg interface{}) error
type SlackMessage ¶
type SlackMessage struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.