Documentation
¶
Index ¶
- Variables
- type Cursor
- type Event
- type Outcome
- type Page
- type PageQuery
- type Result
- type Row
- type Scope
- type Store
- func (s *Store) Around(ctx context.Context, scope Scope, id int64, limit int, bounds *TimeRange) (Page, bool, error)
- func (s *Store) Commit(ctx context.Context, events []Event) ([]Result, error)
- func (s *Store) Instances(ctx context.Context, scope Scope) ([]string, error)
- func (s *Store) Page(ctx context.Context, query PageQuery) (Page, error)
- type TimeRange
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PageQuery ¶
type PageQuery struct {
Scope Scope
Instances []string // Nil selects all instances. A non-nil empty slice selects none.
Range *TimeRange
// Use at most one cursor. No cursor requests the newest page.
Older *Cursor
Newer *Cursor
Search *logsearch.Query
Limit int
// AnchorID resolves the instance of a context continuation if the URL still
// supplies its anchor. The existing selection applies if the anchor is gone.
AnchorID int64
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Around ¶
func (s *Store) Around(ctx context.Context, scope Scope, id int64, limit int, bounds *TimeRange) (Page, bool, error)
Around returns the authorized anchor with up to limit neighbors on each side.
func (*Store) Commit ¶
Commit checks client ownership and activity in the insert statement. A successful call returns one outcome per event in input order. Event keys are retained only as long as their logs are retained. Known transient failures are returned with their original cause for ordinary retries.
Click to show internal directories.
Click to hide internal directories.