webhook

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(ctx context.Context, method string, url string, payload WebhookPayload) error

Types

type WebhookPayload

type WebhookPayload struct {
	Subject         string            `json:"subject"`
	SubjectEmail    string            `json:"subjectEmail"`
	MCPSessionID    string            `json:"mcpSessionId"`
	StartedAt       time.Time         `json:"startedAt"`
	Duration        time.Duration     `json:"duration"`
	AuthTokenDigest digest.Digest     `json:"authTokenDigest"`
	MCPRequest      *jsonrpc.Request  `json:"mcpRequest,omitempty"`
	MCPResponse     *jsonrpc.Response `json:"mcpResponse,omitempty"`
	UserAgent       string            `json:"userAgent"`
	HttpStatusCode  int               `json:"httpStatusCode,omitempty"`
	HttpError       string            `json:"httpError,omitempty"`
}

Jump to

Keyboard shortcuts

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