Documentation
¶
Index ¶
- func FormatAction(obj interface{}) (string, error)
- func FormatOpts(obj interface{}) (string, error)
- func FormatTarget(obj interface{}) (string, error)
- func FormatURL(obj interface{}) (string, error)
- func ParseDestinations(targets []string) ([]client.WeightedDestination, error)
- func Route(app *cli.App) cli.Command
- type Add
- type Data
- type Ls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDestinations ¶
Types ¶
type Add ¶
type Add struct {
Cookie map[string]string `desc:"Match HTTP cookie (format key=value, value optional)"`
Header map[string]string `desc:"Match HTTP header (format key=value, value optional)"`
FaultPercentage int `desc:"Percentage of matching requests to fault"`
FaultDelay string `desc:"Inject a delay for fault (ms|s|m|h)" default:"0s"`
FaultHTTPCode int `desc:"HTTP code to send for fault injection"`
FaultHTTP2Error string `desc:"HTTP2 error to send for fault injection"`
FaultGRPCError string `desc:"gRPC error to send for fault injection"`
AddHeader []string `desc:"Add HTTP header to request (format key=value)"`
RetryAttempts int `desc:"How many times to retry"`
RetryTimeout string `desc:"Timeout per retry (ms|s|m|h)" default:"0s"`
Timeout string `desc:"Timeout for all requests (ms|s|m|h)" default:"0s"`
Method string `desc:"Match HTTP method"`
From string `desc:"Match traffic from specific service"`
Websocket bool `desc:"Websocket request"`
}
type Data ¶
Source Files
¶
- add.go
- ls.go
- route.go
Click to show internal directories.
Click to hide internal directories.