queryparser

package
v0.0.0-...-941ac5e Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filters

type Filters struct {
	Body       []string
	Attributes map[string][]string
}

func Parse

func Parse(query string) Filters

Parses a query string into Attributes and Body (not keyed attributes) Example: some message email:foo@bar.com service:image-processor email:baz@buzz.com => Body -> []string{"some", "message"} Attributes -> map[string][]string{"email": {"foo@bar.com", "baz@buzz.com"}, "service": {"image-processor"}}

Jump to

Keyboard shortcuts

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