apicollectionv1

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func BuildV1Collection

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

todo: rename to BuildV1Collection

func FullDuplex added in v0.0.7

func FullDuplex(w http.ResponseWriter, f func(w io.Writer))

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"`
}

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