cmd

package
v0.0.0-...-ea90ac2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: BSD-3-Clause-Clear Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthorizationExampleCmd = &cobra.Command{
	Use:   "authorization",
	Short: "Example usage for authorization service",
	RunE: func(_ *cobra.Command, _ []string) error {
		return authorizationExamples()
	},
}
View Source
var ExamplesCmd = &cobra.Command{
	Use: "examples",
}
View Source
var GenDocsCmd = &cobra.Command{
	Use:   "docs",
	Short: "Generates docs for the example commands",
	RunE: func(_ *cobra.Command, _ []string) error {
		err := doc.GenMarkdownTree(ExamplesCmd, "./docs")
		return err
	},
}

Functions

func Execute

func Execute()

Types

type BenchmarkConfig

type BenchmarkConfig struct {
	ConcurrentRequests int
	RequestCount       int
	RequestsPerSecond  int
	TimeoutSeconds     int
}

type ExampleError

type ExampleError string
const (
	ErrInvalidArgument ExampleError = "invalid parameter"
	ErrNotFound        ExampleError = "not found"
)

func (ExampleError) Error

func (e ExampleError) Error() string

type Trace

type Trace struct {
	Name      string `json:"Name"`
	StartTime string `json:"StartTime"`
	EndTime   string `json:"EndTime"`
}

type TraceStats

type TraceStats struct {
	Count     int
	TotalTime int64 // nanoseconds
	MinTime   int64 // nanoseconds
	MaxTime   int64 // nanoseconds
}

Jump to

Keyboard shortcuts

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