Documentation ¶
Index ¶
- type BlackHoleSink
- type Config
- type Context
- type ContextRoute
- type Masking
- type MatchResult
- type Matcher
- type Processor
- type RequestDict
- func (r RequestDict) Body() string
- func (r RequestDict) Captures() model.Dictionary
- func (r RequestDict) Method() string
- func (r RequestDict) Protocol() string
- func (r RequestDict) SetCaptures(captures model.Dictionary)
- func (r RequestDict) SetURLPath(path string)
- func (r RequestDict) ToRequest() (*http.Request, error)
- func (r RequestDict) URLFragment() (string, bool)
- func (r RequestDict) URLPath() string
- type ResponseDict
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlackHoleSink ¶
type BlackHoleSink struct{}
func (BlackHoleSink) Open ¶
func (s BlackHoleSink) Open() error
func (BlackHoleSink) ProcessDictionary ¶
func (s BlackHoleSink) ProcessDictionary(value model.Entry) error
type Config ¶
type Config struct {
Routes []Route `yaml:"routes,omitempty"`
}
func LoadConfigFromFile ¶
type ContextRoute ¶
type ContextRoute struct {
// contains filtered or unexported fields
}
func NewContextRoute ¶
func NewContextRoute(route Route, request, response *Processor) ContextRoute
type MatchResult ¶
type MatchResult struct { model.Dictionary // contains filtered or unexported fields }
func (*MatchResult) Build ¶
func (mr *MatchResult) Build(new model.Dictionary) string
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func NewMatcher ¶
func (*Matcher) Match ¶
func (m *Matcher) Match(path string) *MatchResult
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
type RequestDict ¶
type RequestDict struct {
model.Dictionary
}
func NewRequestDict ¶
func NewRequestDict(request *http.Request) (RequestDict, error)
func (RequestDict) Body ¶
func (r RequestDict) Body() string
func (RequestDict) Captures ¶
func (r RequestDict) Captures() model.Dictionary
func (RequestDict) Method ¶
func (r RequestDict) Method() string
func (RequestDict) Protocol ¶
func (r RequestDict) Protocol() string
func (RequestDict) SetCaptures ¶
func (r RequestDict) SetCaptures(captures model.Dictionary)
func (RequestDict) SetURLPath ¶
func (r RequestDict) SetURLPath(path string)
func (RequestDict) URLFragment ¶
func (r RequestDict) URLFragment() (string, bool)
func (RequestDict) URLPath ¶
func (r RequestDict) URLPath() string
type ResponseDict ¶
type ResponseDict struct {
model.Dictionary
}
func NewResponseDict ¶
func NewResponseDict(response *http.Response) (ResponseDict, error)
func (ResponseDict) Protocol ¶
func (r ResponseDict) Protocol() string
func (ResponseDict) Status ¶
func (r ResponseDict) Status() int
func (ResponseDict) ToResponse ¶
func (r ResponseDict) ToResponse() (*http.Response, error)
Click to show internal directories.
Click to hide internal directories.