// 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"` } // WebhookInterface defines the contract for webhook operations type WebhookInterface interface { Post(channel, topic, message string) error }