handlers

package
v0.0.0-...-2873e01 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Search struct {
	SearchResources func(http.ResponseWriter, *http.Request)
}

Search HTTP API interface

func NewSearch

func NewSearch(h SearchAPI) *Search

func (Search) MountRoutes

func (h Search) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)

type SearchAPI

type SearchAPI interface {
	SearchResources(context.Context, *request.SearchResources) (interface{}, error)
}

SearchAPI Internal API interface

Jump to

Keyboard shortcuts

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