Documentation
¶
Index ¶
- func ColorizeStatus(status int) string
- func FormatEventLog(event EventInfo, dashboardURL, consoleURL, projectMode string) string
- type Config
- type ConnectedMsg
- type ConnectingMsg
- type DisconnectedMsg
- type EventInfo
- type Model
- type NewEventMsg
- type ServerHealthMsg
- type TickWaitingMsg
- type UpdateEventMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorizeStatus ¶
ColorizeStatus returns a styled status code string
func FormatEventLog ¶
FormatEventLog formats an event into a log line matching the current style
Types ¶
type Config ¶
type Config struct {
DeviceName string
APIKey string
APIBaseURL string
DashboardBaseURL string
ConsoleBaseURL string
ProjectMode string
ProjectID string
GuestURL string
TargetURL *url.URL
Sources []*hookdecksdk.Source
Connections []*hookdecksdk.Connection
Filters interface{} // Session filters (stored as interface{} to avoid circular dependency)
}
Config holds configuration for the TUI
type DisconnectedMsg ¶
type DisconnectedMsg struct{}
DisconnectedMsg is sent when websocket disconnects
type EventInfo ¶
type EventInfo struct {
ID string // Event ID from Hookdeck
AttemptID string // Attempt ID (unique per retry)
Status int
Success bool
Time time.Time
Data *websocket.Attempt
LogLine string
ResponseStatus int
ResponseHeaders map[string][]string
ResponseBody string
ResponseDuration time.Duration
}
EventInfo represents a single event with all its data
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the Bubble Tea model for the interactive TUI
func (*Model) GetSelectedEvent ¶
GetSelectedEvent returns the currently selected event
func (*Model) UpdateEvent ¶
func (m *Model) UpdateEvent(update UpdateEventMsg)
UpdateEvent updates an existing event by EventID + Time, or creates a new one if not found
type NewEventMsg ¶
type NewEventMsg struct {
Event EventInfo
}
NewEventMsg is sent when a new webhook event arrives
type ServerHealthMsg ¶ added in v1.5.0
ServerHealthMsg is sent when server health status changes
type TickWaitingMsg ¶
type TickWaitingMsg struct{}
TickWaitingMsg is sent to animate waiting indicator
type UpdateEventMsg ¶
type UpdateEventMsg struct {
EventID string // Event ID from Hookdeck
AttemptID string // Attempt ID (unique per connection)
Time time.Time // Event time
Data *websocket.Attempt // Full attempt data
Status int
Success bool
LogLine string
ResponseStatus int
ResponseHeaders map[string][]string
ResponseBody string
ResponseDuration time.Duration
}
UpdateEventMsg is sent when an existing event gets a response