Documentation
¶
Overview ¶
Package models provides the core data structures for handling webhook requests and responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID string `json:"id"` Time time.Time `json:"time"` Region string `json:"region"` Source string `json:"source"` Account string `json:"account"` Version string `json:"version"` Detail any `json:"detail"` DetailType string `json:"detail-type"` Resources []string `json:"resources"` }
Event represents an AWS EventBridge event.
type EventRepository ¶
type EventRepository struct {
Repository RepositoryContext `json:"repository"`
}
EventRepository represents an event's repository details as part of webhook payloads or events.
type RepositoryContext ¶
type RepositoryContext struct { Name *string `json:"name,omitempty"` FullName *string `json:"full_name,omitempty"` Owner *struct { Login *string `json:"login,omitempty"` } `json:"owner,omitempty"` CustomProperties map[string]string `json:"custom_properties,omitempty"` }
RepositoryContext represents the context of a repository, including its name, full name, owner, and custom properties.
Click to show internal directories.
Click to hide internal directories.