wecom

package
v0.0.0-...-d853fe5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWebHookKeyIsExpected = fmt.Errorf("webhook key is expected but not found")
)

Functions

func NewLogrusHook

func NewLogrusHook(opts Options) (logrus.Hook, error)

Types

type LogrusHook

type LogrusHook struct {
	// contains filtered or unexported fields
}

func (*LogrusHook) Fire

func (hook *LogrusHook) Fire(entry *logrus.Entry) error

func (*LogrusHook) Levels

func (hook *LogrusHook) Levels() []logrus.Level

type Options

type Options struct {
	WebhookUrl string
	WebhookKey string
	Levels     []logrus.Level
	Timeout    time.Duration
}

Jump to

Keyboard shortcuts

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