Documentation ¶
Index ¶
- Constants
- type ResponseAdaptor
- func (ra *ResponseAdaptor) Close()
- func (ra *ResponseAdaptor) DefaultSpec() interface{}
- func (ra *ResponseAdaptor) Description() string
- func (ra *ResponseAdaptor) Handle(ctx context.HTTPContext) string
- func (ra *ResponseAdaptor) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)
- func (ra *ResponseAdaptor) Init(filterSpec *httppipeline.FilterSpec)
- func (ra *ResponseAdaptor) Kind() string
- func (ra *ResponseAdaptor) Results() []string
- func (ra *ResponseAdaptor) Status() interface{}
- type Spec
Constants ¶
View Source
const (
// Kind is the kind of ResponseAdaptor.
Kind = "ResponseAdaptor"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseAdaptor ¶
type ResponseAdaptor struct {
// contains filtered or unexported fields
}
ResponseAdaptor is filter ResponseAdaptor.
func (*ResponseAdaptor) DefaultSpec ¶
func (ra *ResponseAdaptor) DefaultSpec() interface{}
DefaultSpec returns default spec of ResponseAdaptor.
func (*ResponseAdaptor) Description ¶
func (ra *ResponseAdaptor) Description() string
Description returns the description of ResponseAdaptor.
func (*ResponseAdaptor) Handle ¶
func (ra *ResponseAdaptor) Handle(ctx context.HTTPContext) string
Handle adapts response.
func (*ResponseAdaptor) Inherit ¶
func (ra *ResponseAdaptor) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)
Inherit inherits previous generation of ResponseAdaptor.
func (*ResponseAdaptor) Init ¶
func (ra *ResponseAdaptor) Init(filterSpec *httppipeline.FilterSpec)
Init initializes ResponseAdaptor.
func (*ResponseAdaptor) Kind ¶
func (ra *ResponseAdaptor) Kind() string
Kind returns the kind of ResponseAdaptor.
func (*ResponseAdaptor) Results ¶
func (ra *ResponseAdaptor) Results() []string
Results returns the results of ResponseAdaptor.
func (*ResponseAdaptor) Status ¶
func (ra *ResponseAdaptor) Status() interface{}
Status returns status.
type Spec ¶
type Spec struct { Header *httpheader.AdaptSpec `yaml:"header" jsonschema:"required"` Body string `yaml:"body" jsonschema:"omitempty"` }
Spec is HTTPAdaptor Spec.
Click to show internal directories.
Click to hide internal directories.