Documentation ¶
Index ¶
- type ListOption
- func WithCategory(category string) ListOption
- func WithDateRange(startTime, endTime time.Time) ListOption
- func WithFrom(from int) ListOption
- func WithName(name string) ListOption
- func WithOperation(operation string) ListOption
- func WithQuery(query string) ListOption
- func WithReferences(references ...string) ListOption
- func WithResource(resource string) ListOption
- func WithSize(size int) ListOption
- func WithState(state string) ListOption
- func WithType(indexType indextype.IndexType) ListOption
- type ListOptions
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
Click to show internal directories.
Click to hide internal directories.