set

package
v1.135.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package set implements `admin rate-limit set`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdSet

func NewCmdSet(f *factory.Factory, runF func(*Options) error) *cobra.Command

NewCmdSet builds the `admin rate-limit set` cobra command.

Types

type Options

type Options struct {
	Hostname           string
	Enabled            bool
	EnabledSet         bool // true when --enabled was explicitly provided
	RequestsPerHour    int
	RequestsPerHourSet bool // true when --requests-per-hour was explicitly provided
	ThrottleWaitMS     int
	ThrottleWaitMSSet  bool // true when --throttle-wait-ms was explicitly provided
}

Options holds parsed flags for `admin rate-limit set`.

Jump to

Keyboard shortcuts

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