Documentation ¶
Index ¶
- func WalkOps(spec *spec.Swagger, fn WalkOpsFunc)
- type LogReporter
- type Proxy
- func (proxy *Proxy) Handler(next http.Handler) http.Handler
- func (proxy *Proxy) PendingOperations() []*spec.Operation
- func (proxy *Proxy) Router() http.Handler
- func (proxy *Proxy) SetSpec(spec *spec.Swagger) error
- func (proxy *Proxy) Target() string
- func (proxy *Proxy) Validate(resp Response, op *spec.Operation) error
- func (proxy *Proxy) ValidateBody(resp Response, op *spec.Operation) error
- func (proxy *Proxy) ValidateHeaders(resp Response, op *spec.Operation) error
- func (proxy *Proxy) ValidateMIME(resp Response, op *spec.Operation) error
- type ProxyOpt
- type Reporter
- type Response
- type WalkOpsFunc
- type WriterRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WalkOps ¶
func WalkOps(spec *spec.Swagger, fn WalkOpsFunc)
Types ¶
type LogReporter ¶
type LogReporter struct { }
func (*LogReporter) Report ¶
func (r *LogReporter) Report()
func (*LogReporter) Success ¶
func (r *LogReporter) Success(req *http.Request)
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) PendingOperations ¶
func (*Proxy) ValidateBody ¶
func (*Proxy) ValidateHeaders ¶
type WalkOpsFunc ¶
type WriterRecorder ¶
type WriterRecorder struct { http.ResponseWriter // contains filtered or unexported fields }
func (*WriterRecorder) Body ¶
func (w *WriterRecorder) Body() []byte
func (*WriterRecorder) Status ¶
func (w *WriterRecorder) Status() int
func (*WriterRecorder) WriteHeader ¶
func (w *WriterRecorder) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.