shared

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoutePing    = "/ping"
	RouteMetrics = "/metrics"

	RouteIndex        = "/api/index"
	RouteIndexRanged  = "/api/index/ranged"
	RouteInsert       = "/api/insert"
	RouteInsertRanged = "/api/insert/ranged"
	RouteAppend       = "/api/append"
	RouteDelete       = "/api/delete"
	RouteDeleteRanged = "/api/delete/ranged"
	RouteQuery        = "/api/query"
	RouteQueryRanged  = "/api/query/ranged"
)

API routes

Variables

This section is empty.

Functions

func DecodeStream

func DecodeStream[T any](stream io.Reader) (T, error)

func EncodeStream

func EncodeStream(stream io.Writer, obj any) error

Types

type Form

type Form = struct {
	Keys   core.List
	Values core.List
}

Input form

type Report

type Report[T any] struct {
	Failed bool
	Mesg   string
	Data   T
}

Generic report form

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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