usage

package
v0.3.0-beta.21 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package usage owns the shared public Network usage query and response projection.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownField = errors.New("unknown_field")
)

Functions

func ParseQuery

func ParseQuery(workspaceID string, values url.Values) (store.NetworkUsageQuery, error)

ParseQuery strictly parses the shared public usage filter contract.

func ResponseFromReport

func ResponseFromReport(
	workspaceID string,
	report store.NetworkUsageReport,
) (contract.NetworkUsageResponse, error)

ResponseFromReport validates JSON-safe counters and projects the shared response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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