webhook

package
v0.0.0-...-76ce5b8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventPayload

type EventPayload struct {
	Event     string      `json:"event"`
	Timestamp time.Time   `json:"timestamp"`
	Data      interface{} `json:"data"`
}

EventPayload represents the payload sent to webhook endpoints

type Service

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

Service handles webhook notifications

func NewService

func NewService(db *database.DB) *Service

NewService creates a new webhook service

func (*Service) TriggerEvent

func (s *Service) TriggerEvent(eventType string, data interface{}) error

TriggerEvent sends webhook notifications for a machine event

Jump to

Keyboard shortcuts

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