Versions in this module Expand all Collapse all v0 v0.19.19 May 8, 2020 v0.19.18 May 6, 2020 Changes in this version type ClientResponse + Response func() *http.Response v0.19.17 May 6, 2020 Changes in this version type ClientResponse + Request func() *http.Request v0.19.16 May 6, 2020 Changes in this version + const CSVMime + const DefaultMime + const HTMLMime + const HeaderAccept + const HeaderContentType + const HeaderTransferEncoding + const JSONMime + const MultipartFormMime + const TextMime + const URLencodedFormMime + const XMLMime + const YAMLMime + var DiscardConsumer = ConsumerFunc(func(_ io.Reader, _ interface{}) error { ... }) + var DiscardProducer = ProducerFunc(func(_ io.Writer, _ interface{}) error { ... }) + var Statuses = map[int]string + func AllowsBody(r *http.Request) bool + func CanHaveBody(method string) bool + func ClosesStream(opts *byteStreamOpts) + func ContentType(headers http.Header) (string, string, error) + func HasBody(r *http.Request) bool + func IsSafe(r *http.Request) bool + func JSONRequest(method, urlStr string, body io.Reader) (*http.Request, error) + func ReadCollectionValue(values Gettable, name, collectionFormat string) []string + func ReadSingleValue(values Gettable, name string) string + type APIError struct + Code int + OperationName string + Response interface{} + func NewAPIError(opName string, payload interface{}, code int) *APIError + func (a *APIError) Error() string + type Authenticator interface + Authenticate func(interface{}) (bool, interface{}, error) + type AuthenticatorFunc func(interface{}) (bool, interface{}, error) + func (f AuthenticatorFunc) Authenticate(params interface{}) (bool, interface{}, error) + type Authorizer interface + Authorize func(*http.Request, interface{}) error + type AuthorizerFunc func(*http.Request, interface{}) error + func (f AuthorizerFunc) Authorize(r *http.Request, principal interface{}) error + type ClientAuthInfoWriter interface + AuthenticateRequest func(ClientRequest, strfmt.Registry) error + type ClientAuthInfoWriterFunc func(ClientRequest, strfmt.Registry) error + func (fn ClientAuthInfoWriterFunc) AuthenticateRequest(req ClientRequest, reg strfmt.Registry) error + type ClientOperation struct + AuthInfo ClientAuthInfoWriter + Client *http.Client + ConsumesMediaTypes []string + Context context.Context + ID string + Method string + Params ClientRequestWriter + PathPattern string + ProducesMediaTypes []string + Reader ClientResponseReader + Schemes []string + type ClientRequest interface + GetBody func() []byte + GetBodyParam func() interface{} + GetFileParam func() map[string][]NamedReadCloser + GetHeaderParams func() http.Header + GetMethod func() string + GetPath func() string + GetQueryParams func() url.Values + SetBodyParam func(interface{}) error + SetFileParam func(string, ...NamedReadCloser) error + SetFormParam func(string, ...string) error + SetHeaderParam func(string, ...string) error + SetPathParam func(string, string) error + SetQueryParam func(string, ...string) error + SetTimeout func(time.Duration) error + type ClientRequestWriter interface + WriteToRequest func(ClientRequest, strfmt.Registry) error + type ClientRequestWriterFunc func(ClientRequest, strfmt.Registry) error + func (fn ClientRequestWriterFunc) WriteToRequest(req ClientRequest, reg strfmt.Registry) error + type ClientResponse interface + Body func() io.ReadCloser + Code func() int + GetHeader func(string) string + Message func() string + type ClientResponseReader interface + ReadResponse func(ClientResponse, Consumer) (interface{}, error) + type ClientResponseReaderFunc func(ClientResponse, Consumer) (interface{}, error) + func (read ClientResponseReaderFunc) ReadResponse(resp ClientResponse, consumer Consumer) (interface{}, error) + type ClientTransport interface + Submit func(*ClientOperation) (interface{}, error) + type Consumer interface + Consume func(io.Reader, interface{}) error + func ByteStreamConsumer(opts ...byteStreamOpt) Consumer + func CSVConsumer() Consumer + func JSONConsumer() Consumer + func TextConsumer() Consumer + func XMLConsumer() Consumer + type ConsumerFunc func(io.Reader, interface{}) error + func (fn ConsumerFunc) Consume(reader io.Reader, data interface{}) error + type File struct + Data multipart.File + Header *multipart.FileHeader + func (f *File) Close() error + func (f *File) Read(p []byte) (n int, err error) + type Gettable interface + GetOK func(string) ([]string, bool, bool) + type NamedReadCloser interface + Name func() string + func NamedReader(name string, rdr io.Reader) NamedReadCloser + type OperationHandler interface + Handle func(interface{}) (interface{}, error) + type OperationHandlerFunc func(interface{}) (interface{}, error) + func (s OperationHandlerFunc) Handle(data interface{}) (interface{}, error) + type Producer interface + Produce func(io.Writer, interface{}) error + func ByteStreamProducer(opts ...byteStreamOpt) Producer + func CSVProducer() Producer + func JSONProducer() Producer + func TextProducer() Producer + func XMLProducer() Producer + type ProducerFunc func(io.Writer, interface{}) error + func (f ProducerFunc) Produce(writer io.Writer, data interface{}) error + type Validatable interface + Validate func(strfmt.Registry) error + type Values map[string][]string + func (v Values) GetOK(key string) (value []string, hasKey bool, hasValue bool)