knowledgebase

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionSearch      = "search"
	ActionListObjects = "listObjects"
)

Variables

This section is empty.

Functions

func Formatter

func Formatter(request *types.APIRequest, resource *types.RawResource)

func RegisterSchema

func RegisterSchema(scaled *config.Scaled, server *server.Server) error

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(scaled *config.Scaled) Handler

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type ListObjectsInput

type ListObjectsInput struct {
	UID    string `json:"uid"`
	Offset int    `json:"offset"`
	Limit  int    `json:"limit"`
}

type SearchInput

type SearchInput struct {
	Query     string  `json:"query"`
	Threshold float64 `json:"threshold"`
	Limit     int     `json:"limit"`
}

Jump to

Keyboard shortcuts

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