apicollectionv1

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ContextServicerKey = "ed0fa170-5593-11ed-9d60-9bdc940af29d"

Variables

View Source
var ErrUnknownIndex = errors.New("unknown index")

ErrUnknownIndex is the error of a query that names an index that does not exist: a mistake of the request, so 400 and not 404.

Functions

func BuildV1Collection

func BuildV1Collection(v1 *box.R, s service.Servicer) *box.R

todo: rename to BuildV1Collection

func GetServicer

func GetServicer(ctx context.Context) service.Servicer

func SetServicer

func SetServicer(ctx context.Context, s service.Servicer) context.Context

Types

type CollectionResponse

type CollectionResponse struct {
	Name       string         `json:"name"`
	Total      int            `json:"total"`
	Indexes    int            `json:"indexes"`
	Defaults   map[string]any `json:"defaults"`
	Durability string         `json:"durability"`
}

type CreateIndexRequest

type CreateIndexRequest struct {
	Name    string      `json:"name"`
	Type    string      `json:"type"`
	Options interface{} `json:"options"`
}

Jump to

Keyboard shortcuts

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