Files
go-eve-pi/webhook/webhook.go
2025-10-10 20:48:35 +02:00

21 lines
536 B
Go

// Package webhook provides a generic webhook interface for sending messages
// with channel, topic, and message parameters.
package webhook
import (
"time"
)
// WebhookMessage represents the structure of a webhook message
type WebhookMessage struct {
Channel string `json:"channel"`
Topic string `json:"topic"`
Message string `json:"message"`
Timestamp time.Time `json:"timestamp"`
}
// Webhook defines the contract for webhook operations
type Webhook interface {
Post(channel, topic, message string) error
}