query

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 0 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

Index

Constants

View Source
const (
	DefaultLimit = 15
)

Variables

This section is empty.

Functions

func Account

func Account(v string) func(*Query)

func Address added in v1.4.0

func Address(v string) func(*Query)

func After

func After(v string) func(*Query)

func Destination

func Destination(v string) func(*Query)

func Limit

func Limit(n int) func(*Query)

func Metadata added in v1.4.3

func Metadata(v map[string]string) func(*Query)

func Reference

func Reference(v string) func(*Query)

func Source

func Source(v string) func(*Query)

Types

type Modifier added in v1.4.0

type Modifier func(*Query)

type Query

type Query struct {
	Limit  int
	After  string
	Params map[string]interface{}
}

func New

func New(qms ...[]Modifier) Query

func (*Query) Apply

func (q *Query) Apply(modifiers []Modifier)

func (*Query) HasParam

func (q *Query) HasParam(name string) bool

func (*Query) Modify

func (q *Query) Modify(modifier Modifier)

Jump to

Keyboard shortcuts

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