Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUserInput ¶
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
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
Click to show internal directories.
Click to hide internal directories.