driver

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	TenantIDs      []string   // optional - filter by tenant (if empty, returns all tenants)
	EventIDs       []string   // optional - filter by event ID
	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
	TenantIDs      []string   // optional - filter by tenant (if empty, returns all tenants)
	EventIDs       []string   // optional - filter by event ID
	DestinationIDs []string   // optional
	Topics         []string   // optional
	SortOrder      string     // optional: "asc", "desc" (default: "desc")
}

type ListEventResponse

type ListEventResponse struct {
	Data []*models.Event
	Next string
	Prev string
}

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 RetrieveAttemptRequest struct {
	TenantID  string // optional - filter by tenant (if empty, searches all tenants)
	AttemptID string // required
}

type RetrieveEventRequest added in v0.13.0

type RetrieveEventRequest struct {
	TenantID string // optional - filter by tenant (if empty, searches all tenants)
	EventID  string // required
}

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.

Jump to

Keyboard shortcuts

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