rest

package
v1.7.17 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package rest provides rest api logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Index(w http.ResponseWriter, r *http.Request) (int, error)
	IndexInfo(w http.ResponseWriter, r *http.Request) (int, error)
}

func New

func New(opts ...Option) Handler

type Option

type Option func(*handler)

func WithIndexer added in v0.0.5

func WithIndexer(i index.IndexServer) Option

Jump to

Keyboard shortcuts

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