Documentation ¶
Index ¶
Constants ¶
View Source
const FieldSeparator = "\t"
View Source
const ObjectSeparator = "\n"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultTransformer ¶
type DefaultTransformer struct { }
func (DefaultTransformer) Execute ¶
func (t DefaultTransformer) Execute(data interface{}) (interface{}, error)
type JmesPathTransformer ¶
type JmesPathTransformer struct {
Query string
}
func (JmesPathTransformer) Execute ¶
func (t JmesPathTransformer) Execute(data interface{}) (interface{}, error)
type JsonOutputWriter ¶
type JsonOutputWriter struct { Output io.Writer Transformer Transformer }
func (JsonOutputWriter) WriteResponse ¶
func (w JsonOutputWriter) WriteResponse(response ResponseInfo) error
type OutputWriter ¶
type OutputWriter interface {
WriteResponse(response ResponseInfo) error
}
type ResponseInfo ¶
type ResponseInfo struct { StatusCode int Status string Protocol string Header map[string][]string Body io.Reader }
func NewResponseInfo ¶
type TextOutputWriter ¶
type TextOutputWriter struct { Output io.Writer Transformer Transformer }
func (TextOutputWriter) WriteResponse ¶
func (w TextOutputWriter) WriteResponse(response ResponseInfo) error
type Transformer ¶
type Transformer interface {
Execute(data interface{}) (interface{}, error)
}
Click to show internal directories.
Click to hide internal directories.