package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Dec 18, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Client defines the Webhook client
NewClient initializes a new Webhook client
Send pushes logs with retry logic
type Config struct {
URL string `mapstructure:"url"`
Secret string `mapstructure:"secret"`
MaxAttempts int `mapstructure:"max_attempts"`
InitialBackoff time.Duration `mapstructure:"initial_backoff"`
MaxBackoff time.Duration `mapstructure:"max_backoff"`
}
type Payload struct {
Timestamp int64 `json:"timestamp"`
Logs []types.Log `json:"logs"`
}
Payload defines the data structure sent via webhook
Source Files
¶
Click to show internal directories.
Click to hide internal directories.