Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PathAdaptor ¶
type PathAdaptor struct {
// contains filtered or unexported fields
}
PathAdaptor is the path Adaptor.
type RegexpReplace ¶
type RegexpReplace struct { Regexp string `yaml:"regexp" jsonschema:"required,format=regexp"` Replace string `yaml:"replace"` // contains filtered or unexported fields }
RegexpReplace use regexp-replace pair to rewrite path.
type Spec ¶
type Spec struct { Replace string `yaml:"replace,omitempty" jsonschema:"omitempty"` AddPrefix string `yaml:"addPrefix,omitempty" jsonschema:"omitempty,pattern=^/"` TrimPrefix string `yaml:"trimPrefix,omitempty" jsonschema:"omitempty,pattern=^/"` RegexpReplace *RegexpReplace `yaml:"regexpReplace,omitempty" jsonschema:"omitempty"` }
Spec describes rules for PathAdaptor.
Click to show internal directories.
Click to hide internal directories.