query

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 0 Imported by: 0

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 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
JackTT - Gopher 🇻🇳