Documentation ¶
Overview ¶
Package vkrus VK Hook for Logrus
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLevels = []logrus.Level{ logrus.ErrorLevel, logrus.FatalLevel, logrus.PanicLevel, }
DefaultLevels to be fired when logging on
Functions ¶
This section is empty.
Types ¶
type VkHook ¶
type VkHook struct { PeerID int // Destination ID VK *api.VK AppName string UseLevels []logrus.Level Extra map[string]interface{} Asynchronous bool Disabled bool DontParseLinks bool // true - links will not attach snippet DisableMentions bool // true - mention of user will not generate notification for him }
VkHook is a logrus Hook for dispatching messages to the specified channel on Slack.
PeerID - destination ID. For user: 'User ID', e.g. '12345'. For chat: '2000000000' + 'chat_id', e.g. '2000000001'
Click to show internal directories.
Click to hide internal directories.