server

package
v0.0.0-...-ac0319f Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Overview

@host localhost:27758 @BasePath /api/v1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(db db.DB, r *mux.Router)

RegisterRoutes registers all HTTP routes with the provided mux router.

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse defines an error response returned upon any request failure.

type PaginatedNodesResp

type PaginatedNodesResp struct {
	Total int          `json:"total" yaml:"total"`
	Page  int          `json:"page" yaml:"page"`
	Limit int          `json:"limit" yaml:"limit"`
	Nodes []crawl.Node `json:"nodes" yaml:"nodes"`
}

PaginatedNodesResp defines a paginated search result of nodes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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