rest

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyMaxLength   uint16 = 64
	ValueMaxLength uint16 = 16000

	TypeKey       ObjectType = "key"
	TypeNamespace ObjectType = "namespace"
	TypeRoll      ObjectType = "roll"
	TypeGenerate  ObjectType = "generate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthV1

type HealthV1 struct {
	Status   string `json:"status"`
	Requests int    `json:"requests"`
}

type KVPairListV1 added in v1.0.0

type KVPairListV1 []KVPairV2

type KVPairV2 added in v1.0.0

type KVPairV2 struct {
	Key       string `json:"key"`
	Namespace string `json:"namespace"`
	Value     string `json:"value"`
}

type NamespaceListV1 added in v1.0.0

type NamespaceListV1 []NamespaceV2

type NamespaceV2 added in v1.0.0

type NamespaceV2 struct {
	Name   string `json:"name"`
	Access bool   `json:"access"`
	Size   int    `json:"size"`
}

type ObjectType added in v1.0.0

type ObjectType string

type ObjectV1 added in v1.0.0

type ObjectV1 struct {
	Type  ObjectType `json:"type"`
	Value string     `json:"value"`
}

Jump to

Keyboard shortcuts

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