handlers

package
v0.0.0-...-d0cc832 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 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