rowset

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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

Overview

Package rowset keeps a client's copy of the daemon's rows, merged from the pages of GET /api/rows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	// contains filtered or unexported fields
}

Set is the rows of view all as of one epoch and revision. The zero Set holds nothing and asks for every row.

func (*Set) All added in v0.3.0

func (s *Set) All() []api.Row

All are the set's rows in the order the daemon lists them.

func (*Set) Apply

func (s *Set) Apply(p api.RowsPage) (ok bool)

Apply merges a page of view all. A Full page replaces the set; a page older than the set is ignored; a page that is not Full and comes from another epoch, or reaches a set that holds nothing, is refused, and the caller pulls again from the zero Since.

func (*Set) Row

func (s *Set) Row(u unit.Unit) (api.Row, bool)

Row is the set's row of u.

func (*Set) Since

func (s *Set) Since() api.Since

Since is where the set stands, to pass to the next pull.

func (*Set) View

func (s *Set) View(view string) []api.Row

View is the rows of plugin view view in the order the daemon lists them.

Jump to

Keyboard shortcuts

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