Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaximumFromDuration = time.Hour * 24 * 32 // 32 days MaximumLimit int = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListEventsInput ¶
type ListEventsInput struct {
// The namespace.
Namespace string
// The client ID.
ClientID *string
// Start date-time. Inclusive.
IngestedAtFrom *time.Time
// End date-time. Inclusive.
IngestedAtTo *time.Time
// The event ID. Accepts partial ID.
ID *string
// The event subject. Accepts partial subject.
Subject *string
// Start date-time. Inclusive.
From time.Time
// End date-time. Inclusive.
To *time.Time
// Number of events to return.
Limit int
}
ListEventsInput represents the input for ListEvents method.
func (ListEventsInput) Validate ¶
func (i ListEventsInput) Validate() error
Validate validates the input.
type Service ¶
type Service interface {
ListEvents(ctx context.Context, input ListEventsInput) ([]api.IngestedEvent, error)
}
Click to show internal directories.
Click to hide internal directories.