Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackWriter ¶
type SlackWriter struct { log.LogFilter log.LogFormatter log.SubFormatter Webhook string Timeout time.Duration }
SlackWriter implements log Writer Interface and send log message to slack.
func (*SlackWriter) SetTimeout ¶
func (sw *SlackWriter) SetTimeout(timeout string) error
SetTimeout set timeout
func (*SlackWriter) SetWebhook ¶
func (sw *SlackWriter) SetWebhook(webhook string) error
SetWebhook set the webhook URL
Click to show internal directories.
Click to hide internal directories.