filter

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 0 Imported by: ? 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

Overview

Package filter provides a way to pass optional parameters to client methods. To create a new filter, you will need to satisfy `Filter` interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection []Filter

Collection is a group of unique filters.

func (Collection) Get

func (flt Collection) Get(key Key) interface{}

Get returns filter value as it is passed.

func (Collection) GetInt

func (flt Collection) GetInt(key Key) int

GetInt returns filter value as an integer.

type Filter

type Filter interface {
	Key() Key
	Val() interface{}
}

Filter groups filterable config.

type Key

type Key string

Key represents filter key for issue.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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