filter

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 0 Imported by: 0

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