bearychat

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBearyChatHook

func NewBearyChatHook(config config.Configuration) (hook logrus.Hook, err error)

Types

type BearyChatHook

type BearyChatHook struct {
	AcceptedLevels []logrus.Level
	Url            string
	Channel        string
	User           string
	Markdown       bool
	Async          bool
	// contains filtered or unexported fields
}

func (*BearyChatHook) Fire

func (p *BearyChatHook) Fire(e *logrus.Entry) (err error)

Fire - Sent event to slack

func (*BearyChatHook) Levels

func (p *BearyChatHook) Levels() []logrus.Level

Levels sets which levels to sent to slack

type BearyChatHookConfig

type BearyChatHookConfig struct {
	Url      string
	Levels   []string
	Channel  string
	User     string
	Markdown bool
	Async    bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL