api

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryHandler

func QueryHandler(opts *Options) (http.Handler, error)

Types

type Options

type Options struct {
	Database database.LibraryOfCongressDatabase
	PerPage  int64
}

type QueryResponse

type QueryResponse struct {
	Results    []*database.QueryResult `json:"results"`
	Pagination pagination.Results      `json:"pagination"`
}

Jump to

Keyboard shortcuts

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