api

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package api registers HTTP API transport and endpoint flags.

Index

Constants

View Source
const DefaultRateLimit = 60

DefaultRateLimit is the static default HTTP API rate limit per minute per IP.

Variables

This section is empty.

Functions

func Register

func Register(rootCmd *cobra.Command)

Register adds HTTP API domain flags to the root command.

Parameters:

  • rootCmd: Root Cobra command.

func Specs

func Specs() []spec.FlagSpec

Specs returns API domain flag metadata with static defaults.

Returns:

  • []spec.FlagSpec: API flag specifications.

Types

This section is empty.

Jump to

Keyboard shortcuts

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