Documentation
¶
Index ¶
- Variables
- type Cursor
- type Event
- type InstanceCursor
- type InstanceOptions
- 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) InstanceHues(ctx context.Context, scope Scope, names []string) (map[string]float64, error)
- func (s *Store) InstanceOptions(ctx context.Context, scope Scope, term, unnamedLabel string, ...) (InstanceOptions, 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 InstanceCursor ¶ added in v0.0.19
type InstanceOptions ¶ added in v0.0.19
type InstanceOptions struct {
Names []string `json:"names"`
Next *InstanceCursor `json:"next"`
}
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.
func (*Store) InstanceHues ¶ added in v0.0.19
func (s *Store) InstanceHues(ctx context.Context, scope Scope, names []string) (map[string]float64, error)
InstanceHues returns only the requested colors, spaced around the color wheel according to the complete client's alphabetical palette, independent of filters.
func (*Store) InstanceOptions ¶ added in v0.0.19
func (s *Store) InstanceOptions(ctx context.Context, scope Scope, term, unnamedLabel string, after *InstanceCursor) (InstanceOptions, error)
Click to show internal directories.
Click to hide internal directories.