state

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package state will hold public selector and state contracts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamedSelector

type NamedSelector struct {
	Name string `json:",omitempty"`
	Selector
}

NamedSelector binds a selector to one named view/query scope.

func (*NamedSelector) Clone

func (s *NamedSelector) Clone() *NamedSelector

type Selector

type Selector struct {
	Columns      []string      `json:",omitempty"`
	Fields       []string      `json:",omitempty"`
	OrderBy      string        `json:",omitempty"`
	Offset       int           `json:",omitempty"`
	Limit        int           `json:",omitempty"`
	Page         int           `json:",omitempty"`
	Criteria     string        `json:",omitempty"`
	Placeholders []interface{} `json:",omitempty"`
}

Selector is the public invocation-scoped query-selector contract.

func (*Selector) Clone

func (s *Selector) Clone() *Selector

func (*Selector) CurrentLimit

func (s *Selector) CurrentLimit() int

func (*Selector) CurrentOffset

func (s *Selector) CurrentOffset() int

func (*Selector) CurrentPage

func (s *Selector) CurrentPage() int

func (*Selector) SetCriteria

func (s *Selector) SetCriteria(expanded string, placeholders []interface{})

type Selectors

type Selectors []*NamedSelector

Selectors is the reduced named-selector collection contract.

func (Selectors) Clone

func (s Selectors) Clone() Selectors

func (Selectors) Find

func (s Selectors) Find(name string) *NamedSelector

Jump to

Keyboard shortcuts

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