Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInfoWriter ¶
An AuthInfoWriter implementor knows how to write authentication info to a request
type AuthInfoWriterFunc ¶
AuthInfoWriterFunc converts a function to a request writer interface
func (AuthInfoWriterFunc) AuthenticateRequest ¶
func (fn AuthInfoWriterFunc) AuthenticateRequest(req Request, reg strfmt.Registry) error
AuthenticateRequest adds authentication data to the request
type Operation ¶
type Operation struct { ID string AuthInfo AuthInfoWriter Params RequestWriter Reader ResponseReader }
Operation represents the context for a swagger operation to be submitted to the transport
type Request ¶
type Request interface { SetHeaderParam(string, ...string) error SetQueryParam(string, ...string) error SetFormParam(string, ...string) error SetPathParam(string, string) error SetFileParam(string, string) error SetBodyParam(interface{}) error }
Request is an interface for things that know how to add information to a swagger client request
type RequestWriter ¶
RequestWriter is an interface for things that know how to write to a request
type RequestWriterFunc ¶
RequestWriterFunc converts a function to a request writer interface
func (RequestWriterFunc) WriteToRequest ¶
func (fn RequestWriterFunc) WriteToRequest(req Request, reg strfmt.Registry) error
WriteToRequest adds data to the request
type Response ¶
type Response interface { Code() int Message() string GetHeader(string) string Body() io.ReadCloser }
A Response represents a client response This bridges between responses obtained from different transports
type ResponseReader ¶
A ResponseReader is an interface for things want to read a response. An application of this is to create structs from response values
type ResponseReaderFunc ¶
A ResponseReaderFunc turns a function into a ResponseReader interface implementation
func (ResponseReaderFunc) ReadResponse ¶
func (read ResponseReaderFunc) ReadResponse(resp Response, consumer httpkit.Consumer) (interface{}, error)
ReadResponse reads the response