index

package
v0.0.0-...-d39df66 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	ID string `json:"id,omitempty"`

	Content string `json:"content,omitempty"`

	Metadata map[string]string `json:"metadata,omitempty"`
}

type Handler

type Handler struct {
	*config.Config
	http.Handler
}

func New

func New(cfg *config.Config) (*Handler, error)

func (*Handler) Attach

func (h *Handler) Attach(r chi.Router)

type Query

type Query struct {
	Text string `json:"text,omitempty"`

	Limit *int `json:"limit,omitempty"`
}

type Result

type Result struct {
	Score    *float64 `json:"score,omitempty"`
	Document `json:",inline"`
}

Jump to

Keyboard shortcuts

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