requestflag

package
v0.1.0-alpha.61 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectRequestValues

func CollectRequestValues(rs []RequestValue) []any

func CommandRequestValue

func CommandRequestValue[T any | string | int64 | float64 | bool](cmd *cli.Command, name string) T

func CommandRequestValues

func CommandRequestValues[T any | string | int64 | float64 | bool](cmd *cli.Command, name string) []T

func Value

func Value[T any | string | int64 | float64 | bool](val T) requestValue[T]

Types

type BoolFlag

type BoolFlag = cli.FlagBase[requestValue[bool], RequestConfig, requestValueCreator[bool]]

type BoolSlice

type BoolSlice = cli.SliceBase[requestValue[bool], RequestConfig, requestValueCreator[bool]]

type BoolSliceFlag

type BoolSliceFlag = cli.FlagBase[[]requestValue[bool], RequestConfig, BoolSlice]

type DateFlag

type DateFlag = cli.FlagBase[requestValue[string], RequestConfig, dateCreator]

type DateSlice

type DateSlice = cli.SliceBase[requestValue[string], RequestConfig, dateCreator]

type DateSliceFlag

type DateSliceFlag = cli.FlagBase[[]requestValue[string], RequestConfig, DateSlice]

type DateTimeFlag

type DateTimeFlag = cli.FlagBase[requestValue[string], RequestConfig, dateTimeCreator]

type DateTimeSlice

type DateTimeSlice = cli.SliceBase[requestValue[string], RequestConfig, dateTimeCreator]

type DateTimeSliceFlag

type DateTimeSliceFlag = cli.FlagBase[[]requestValue[string], RequestConfig, DateTimeSlice]

type FloatFlag

type FloatFlag = cli.FlagBase[requestValue[float64], RequestConfig, requestValueCreator[float64]]

type FloatSlice

type FloatSlice = cli.SliceBase[requestValue[float64], RequestConfig, requestValueCreator[float64]]

type FloatSliceFlag

type FloatSliceFlag = cli.FlagBase[[]requestValue[float64], RequestConfig, FloatSlice]

type IntFlag

type IntFlag = cli.FlagBase[requestValue[int64], RequestConfig, requestValueCreator[int64]]

type IntSlice

type IntSlice = cli.SliceBase[requestValue[int64], RequestConfig, requestValueCreator[int64]]

type IntSliceFlag

type IntSliceFlag = cli.FlagBase[[]requestValue[int64], RequestConfig, IntSlice]

type RequestConfig

type RequestConfig struct {
	BodyPath   string
	HeaderPath string
	QueryPath  string
	CookiePath string
}

type RequestValue

type RequestValue interface {
	RequestConfig() RequestConfig
	RequestValue() any
}

type StringFlag

type StringFlag = cli.FlagBase[requestValue[string], RequestConfig, requestValueCreator[string]]

type StringSlice

type StringSlice = cli.SliceBase[requestValue[string], RequestConfig, requestValueCreator[string]]

type StringSliceFlag

type StringSliceFlag = cli.FlagBase[[]requestValue[string], RequestConfig, StringSlice]

type TimeFlag

type TimeFlag = cli.FlagBase[requestValue[string], RequestConfig, timeCreator]

type TimeSlice

type TimeSlice = cli.SliceBase[requestValue[string], RequestConfig, timeCreator]

type TimeSliceFlag

type TimeSliceFlag = cli.FlagBase[[]requestValue[string], RequestConfig, TimeSlice]

type YAMLFlag

type YAMLFlag = cli.FlagBase[requestValue[any], RequestConfig, requestValueCreator[any]]

type YAMLSlice

type YAMLSlice = cli.SliceBase[requestValue[any], RequestConfig, requestValueCreator[any]]

type YAMLSliceFlag

type YAMLSliceFlag = cli.FlagBase[[]requestValue[any], RequestConfig, YAMLSlice]

Jump to

Keyboard shortcuts

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