callback

package
v0.0.0-...-1d4e844 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogCallback

func NewLogCallback(logger zerolog.Logger) func(*logstream.LogBlock) error

LogCallback writes log messages to a zerolog logger.

func NewWebhookCallback

func NewWebhookCallback(cfg *config.LogWebhookConfig) func(*logstream.LogBlock) error

WebhookCallback sends log messages to a webhook.

This callback will debonce the sending action to avoid rate limiting

Types

This section is empty.

Jump to

Keyboard shortcuts

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