entityserver

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxPageLimit int64 = 500

MaxPageLimit bounds one response. Without it a caller asking for everything makes the server hold every entity in the index, its rendered document, and the marshalled array all at once, which is the opposite of the property paging exists to give. A caller that wants the whole index still gets it, one page and one cursor at a time.

A var rather than a const so a test can shrink it and exercise multi-page walks without materialising hundreds of entities.

Functions

This section is empty.

Types

type EntityServer

type EntityServer struct {
	Log   *slog.Logger
	Store entity.Store
	// contains filtered or unexported fields
}

func NewEntityServer

func NewEntityServer(log *slog.Logger, store entity.Store) (*EntityServer, error)

func (*EntityServer) Create

func (*EntityServer) CreateSession

func (*EntityServer) Delete

func (*EntityServer) Ensure

func (*EntityServer) Get

func (*EntityServer) GetAttributesByTag

func (*EntityServer) GetDocument added in v0.14.0

GetDocument renders a single entity into its presentation form.

func (*EntityServer) List

func (*EntityServer) ListDocuments added in v0.14.0

ListDocuments renders a bounded page of entities.

Paging happens in the store, so the entities past the limit are never read at all and a page costs the same whether the index holds ten entries or a million.

func (*EntityServer) ListPage added in v0.15.0

ListPage reads a bounded page of entities from an index.

func (*EntityServer) LookupKind

func (*EntityServer) MakeAttr

func (*EntityServer) Parse

func (*EntityServer) Patch

func (*EntityServer) PingSession

AssertLease keeps the lease alive

func (*EntityServer) Put

func (*EntityServer) PutSession

func (*EntityServer) Reindex

func (*EntityServer) Replace

func (*EntityServer) RevokeSession

RevokeLease

func (*EntityServer) WatchEntity

func (*EntityServer) WatchIndex

Jump to

Keyboard shortcuts

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