listoption

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListOption

type ListOption func(*ListOptions)

TODO: This package should be moved/changed.

func WithCategory

func WithCategory(category string) ListOption

func WithDateRange

func WithDateRange(startTime, endTime time.Time) ListOption

func WithFrom

func WithFrom(from int) ListOption

func WithName

func WithName(name string) ListOption

func WithOperation

func WithOperation(operation string) ListOption

func WithQuery

func WithQuery(query string) ListOption

func WithReferences

func WithReferences(references ...string) ListOption

func WithResource

func WithResource(resource string) ListOption

func WithSize

func WithSize(size int) ListOption

func WithState

func WithState(state string) ListOption

func WithType

func WithType(indexType indextype.IndexType) ListOption

type ListOptions

type ListOptions struct {
	Query      string
	Type       indextype.IndexType
	References []string
	Name       string
	Category   string
	Resource   string
	Operation  string
	State      string
	Size       int
	From       int
	StartTime  time.Time
	EndTime    time.Time
}

TODO: This package should be moved/changed.

func (*ListOptions) SearchRequest

func (so *ListOptions) SearchRequest() *bleve.SearchRequest

Jump to

Keyboard shortcuts

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