api

package
v0.60.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUserInput

func CleanUserInput(input string) string

func ErrorResponse

func ErrorResponse(w http.ResponseWriter, err error) error

func JsonResponse

func JsonResponse[T any](w http.ResponseWriter, object T) error

Types

type EntityFormat added in v0.57.0

type EntityFormat string
var (
	EntityWatchman EntityFormat = "watchman"
	EntitySenzing  EntityFormat = "senzing"
)

func ChooseEntityFormat added in v0.57.0

func ChooseEntityFormat(headers http.Header, queryParam string) (EntityFormat, string)

type QueryParams added in v0.52.2

type QueryParams struct {
	url.Values
	// contains filtered or unexported fields
}

func NewQueryParams added in v0.57.0

func NewQueryParams(u *url.URL) *QueryParams

func (*QueryParams) Get added in v0.52.2

func (q *QueryParams) Get(name string) string

func (*QueryParams) GetAll added in v0.52.2

func (q *QueryParams) GetAll(name string) []string

func (*QueryParams) UnusedQueryParams added in v0.52.2

func (q *QueryParams) UnusedQueryParams() []string

func (*QueryParams) WithPrefix added in v0.53.0

func (q *QueryParams) WithPrefix(prefix string) []string

Jump to

Keyboard shortcuts

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