Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttemptRecord ¶ added in v0.13.0
type AttemptRecord struct {
Attempt *models.Attempt
Event *models.Event // optionally populated for query results
}
AttemptRecord represents an attempt query result with optional Event population.
type ListAttemptRequest ¶ added in v0.13.0
type ListAttemptRequest struct {
Next string
Prev string
Limit int
TimeFilter TimeFilter // optional - filter attempts by time
TenantID string // optional - filter by tenant (if empty, returns all tenants)
EventID string // optional - filter for specific event
DestinationIDs []string // optional
Status string // optional: "success", "failed"
Topics []string // optional
SortOrder string // optional: "asc", "desc" (default: "desc")
}
type ListAttemptResponse ¶ added in v0.13.0
type ListAttemptResponse struct {
Data []*AttemptRecord
Next string
Prev string
}
type ListEventRequest ¶
type ListEventRequest struct {
Next string
Prev string
Limit int
TimeFilter TimeFilter // optional - filter events by time
TenantID string // optional - filter by tenant (if empty, returns all tenants)
DestinationIDs []string // optional
Topics []string // optional
SortOrder string // optional: "asc", "desc" (default: "desc")
}
type ListEventResponse ¶
type LogStore ¶
type LogStore interface {
ListEvent(context.Context, ListEventRequest) (ListEventResponse, error)
ListAttempt(context.Context, ListAttemptRequest) (ListAttemptResponse, error)
RetrieveEvent(ctx context.Context, request RetrieveEventRequest) (*models.Event, error)
RetrieveAttempt(ctx context.Context, request RetrieveAttemptRequest) (*AttemptRecord, error)
InsertMany(context.Context, []*models.LogEntry) error
}
type RetrieveAttemptRequest ¶ added in v0.13.0
type RetrieveEventRequest ¶ added in v0.13.0
type TimeFilter ¶ added in v0.13.0
type TimeFilter struct {
GTE *time.Time // Greater than or equal (>=)
LTE *time.Time // Less than or equal (<=)
GT *time.Time // Greater than (>)
LT *time.Time // Less than (<)
}
TimeFilter represents time-based filter criteria with support for both inclusive (GTE/LTE) and exclusive (GT/LT) comparisons.
Click to show internal directories.
Click to hide internal directories.