filter

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZeroRange = Range{}

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Limit Range
}

func New

func New(opts ...Option) Filter

type Option

type Option func(Filter) Filter

func WithLimit

func WithLimit(r Range) Option

type Range

type Range struct {
	Offset int `json:"offset"`
	Length int `json:"length"`
}

Jump to

Keyboard shortcuts

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