Documentation ¶
Index ¶
- Constants
- Variables
- type GetUploaderFiles
- type GetUploaderFilesHandler
- type GetUploaderFilesHandlerFunc
- type GetUploaderFilesID
- type GetUploaderFilesIDHandler
- type GetUploaderFilesIDHandlerFunc
- type GetUploaderFilesIDInternalServerError
- func (o *GetUploaderFilesIDInternalServerError) SetPayload(payload *models.Error)
- func (o *GetUploaderFilesIDInternalServerError) WithPayload(payload *models.Error) *GetUploaderFilesIDInternalServerError
- func (o *GetUploaderFilesIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUploaderFilesIDOK
- type GetUploaderFilesIDParams
- type GetUploaderFilesIDURL
- func (o *GetUploaderFilesIDURL) Build() (*url.URL, error)
- func (o *GetUploaderFilesIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUploaderFilesIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUploaderFilesIDURL) SetBasePath(bp string)
- func (o *GetUploaderFilesIDURL) String() string
- func (o *GetUploaderFilesIDURL) StringFull(scheme, host string) string
- func (o *GetUploaderFilesIDURL) WithBasePath(bp string) *GetUploaderFilesIDURL
- type GetUploaderFilesInternalServerError
- func (o *GetUploaderFilesInternalServerError) SetPayload(payload *models.Error)
- func (o *GetUploaderFilesInternalServerError) WithPayload(payload *models.Error) *GetUploaderFilesInternalServerError
- func (o *GetUploaderFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUploaderFilesOK
- type GetUploaderFilesParams
- type GetUploaderFilesServeID
- type GetUploaderFilesServeIDHandler
- type GetUploaderFilesServeIDHandlerFunc
- type GetUploaderFilesServeIDInternalServerError
- func (o *GetUploaderFilesServeIDInternalServerError) SetPayload(payload *models.Error)
- func (o *GetUploaderFilesServeIDInternalServerError) WithPayload(payload *models.Error) *GetUploaderFilesServeIDInternalServerError
- func (o *GetUploaderFilesServeIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUploaderFilesServeIDOK
- type GetUploaderFilesServeIDParams
- type GetUploaderFilesServeIDURL
- func (o *GetUploaderFilesServeIDURL) Build() (*url.URL, error)
- func (o *GetUploaderFilesServeIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUploaderFilesServeIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUploaderFilesServeIDURL) SetBasePath(bp string)
- func (o *GetUploaderFilesServeIDURL) String() string
- func (o *GetUploaderFilesServeIDURL) StringFull(scheme, host string) string
- func (o *GetUploaderFilesServeIDURL) WithBasePath(bp string) *GetUploaderFilesServeIDURL
- type GetUploaderFilesURL
- func (o *GetUploaderFilesURL) Build() (*url.URL, error)
- func (o *GetUploaderFilesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUploaderFilesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUploaderFilesURL) SetBasePath(bp string)
- func (o *GetUploaderFilesURL) String() string
- func (o *GetUploaderFilesURL) StringFull(scheme, host string) string
- func (o *GetUploaderFilesURL) WithBasePath(bp string) *GetUploaderFilesURL
- type PostUploaderFiles
- type PostUploaderFilesHandler
- type PostUploaderFilesHandlerFunc
- type PostUploaderFilesInternalServerError
- func (o *PostUploaderFilesInternalServerError) SetPayload(payload *models.Error)
- func (o *PostUploaderFilesInternalServerError) WithPayload(payload *models.Error) *PostUploaderFilesInternalServerError
- func (o *PostUploaderFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostUploaderFilesOK
- type PostUploaderFilesParams
- type PostUploaderFilesURL
- func (o *PostUploaderFilesURL) Build() (*url.URL, error)
- func (o *PostUploaderFilesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostUploaderFilesURL) Must(u *url.URL, err error) *url.URL
- func (o *PostUploaderFilesURL) SetBasePath(bp string)
- func (o *PostUploaderFilesURL) String() string
- func (o *PostUploaderFilesURL) StringFull(scheme, host string) string
- func (o *PostUploaderFilesURL) WithBasePath(bp string) *PostUploaderFilesURL
- type PutUploaderFiles
- type PutUploaderFilesHandler
- type PutUploaderFilesHandlerFunc
- type PutUploaderFilesInternalServerError
- func (o *PutUploaderFilesInternalServerError) SetPayload(payload *models.Error)
- func (o *PutUploaderFilesInternalServerError) WithPayload(payload *models.Error) *PutUploaderFilesInternalServerError
- func (o *PutUploaderFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutUploaderFilesOK
- type PutUploaderFilesParams
- type PutUploaderFilesURL
- func (o *PutUploaderFilesURL) Build() (*url.URL, error)
- func (o *PutUploaderFilesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutUploaderFilesURL) Must(u *url.URL, err error) *url.URL
- func (o *PutUploaderFilesURL) SetBasePath(bp string)
- func (o *PutUploaderFilesURL) String() string
- func (o *PutUploaderFilesURL) StringFull(scheme, host string) string
- func (o *PutUploaderFilesURL) WithBasePath(bp string) *PutUploaderFilesURL
Constants ¶
const GetUploaderFilesIDInternalServerErrorCode int = 500
GetUploaderFilesIDInternalServerErrorCode is the HTTP code returned for type GetUploaderFilesIDInternalServerError
const GetUploaderFilesIDOKCode int = 200
GetUploaderFilesIDOKCode is the HTTP code returned for type GetUploaderFilesIDOK
const GetUploaderFilesInternalServerErrorCode int = 500
GetUploaderFilesInternalServerErrorCode is the HTTP code returned for type GetUploaderFilesInternalServerError
const GetUploaderFilesOKCode int = 200
GetUploaderFilesOKCode is the HTTP code returned for type GetUploaderFilesOK
const GetUploaderFilesServeIDInternalServerErrorCode int = 500
GetUploaderFilesServeIDInternalServerErrorCode is the HTTP code returned for type GetUploaderFilesServeIDInternalServerError
const GetUploaderFilesServeIDOKCode int = 200
GetUploaderFilesServeIDOKCode is the HTTP code returned for type GetUploaderFilesServeIDOK
const PostUploaderFilesInternalServerErrorCode int = 500
PostUploaderFilesInternalServerErrorCode is the HTTP code returned for type PostUploaderFilesInternalServerError
const PostUploaderFilesOKCode int = 200
PostUploaderFilesOKCode is the HTTP code returned for type PostUploaderFilesOK
const PutUploaderFilesInternalServerErrorCode int = 500
PutUploaderFilesInternalServerErrorCode is the HTTP code returned for type PutUploaderFilesInternalServerError
const PutUploaderFilesOKCode int = 200
PutUploaderFilesOKCode is the HTTP code returned for type PutUploaderFilesOK
Variables ¶
var PostUploaderFilesMaxParseMemory int64 = 32 << 20
PostUploaderFilesMaxParseMemory sets the maximum size in bytes for the multipart form parser for this operation.
The default value is 32 MB. The multipart parser stores up to this + 10MB.
var PutUploaderFilesMaxParseMemory int64 = 32 << 20
PutUploaderFilesMaxParseMemory sets the maximum size in bytes for the multipart form parser for this operation.
The default value is 32 MB. The multipart parser stores up to this + 10MB.
Functions ¶
This section is empty.
Types ¶
type GetUploaderFiles ¶
type GetUploaderFiles struct { Context *middleware.Context Handler GetUploaderFilesHandler }
GetUploaderFiles swagger:route GET /uploader/files uploader getUploaderFiles
GetUploaderFiles get uploader files API
func NewGetUploaderFiles ¶
func NewGetUploaderFiles(ctx *middleware.Context, handler GetUploaderFilesHandler) *GetUploaderFiles
NewGetUploaderFiles creates a new http.Handler for the get uploader files operation
func (*GetUploaderFiles) ServeHTTP ¶
func (o *GetUploaderFiles) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUploaderFilesHandler ¶
type GetUploaderFilesHandler interface {
Handle(GetUploaderFilesParams, *models.Principal) middleware.Responder
}
GetUploaderFilesHandler interface for that can handle valid get uploader files params
type GetUploaderFilesHandlerFunc ¶
type GetUploaderFilesHandlerFunc func(GetUploaderFilesParams, *models.Principal) middleware.Responder
GetUploaderFilesHandlerFunc turns a function with the right signature into a get uploader files handler
func (GetUploaderFilesHandlerFunc) Handle ¶
func (fn GetUploaderFilesHandlerFunc) Handle(params GetUploaderFilesParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetUploaderFilesID ¶
type GetUploaderFilesID struct { Context *middleware.Context Handler GetUploaderFilesIDHandler }
GetUploaderFilesID swagger:route GET /uploader/files/{id} uploader getUploaderFilesId
get raw file version
func NewGetUploaderFilesID ¶
func NewGetUploaderFilesID(ctx *middleware.Context, handler GetUploaderFilesIDHandler) *GetUploaderFilesID
NewGetUploaderFilesID creates a new http.Handler for the get uploader files ID operation
func (*GetUploaderFilesID) ServeHTTP ¶
func (o *GetUploaderFilesID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUploaderFilesIDHandler ¶
type GetUploaderFilesIDHandler interface {
Handle(GetUploaderFilesIDParams, *models.Principal) middleware.Responder
}
GetUploaderFilesIDHandler interface for that can handle valid get uploader files ID params
type GetUploaderFilesIDHandlerFunc ¶
type GetUploaderFilesIDHandlerFunc func(GetUploaderFilesIDParams, *models.Principal) middleware.Responder
GetUploaderFilesIDHandlerFunc turns a function with the right signature into a get uploader files ID handler
func (GetUploaderFilesIDHandlerFunc) Handle ¶
func (fn GetUploaderFilesIDHandlerFunc) Handle(params GetUploaderFilesIDParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetUploaderFilesIDInternalServerError ¶
type GetUploaderFilesIDInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetUploaderFilesIDInternalServerError When some error occurs
swagger:response getUploaderFilesIdInternalServerError
func NewGetUploaderFilesIDInternalServerError ¶
func NewGetUploaderFilesIDInternalServerError() *GetUploaderFilesIDInternalServerError
NewGetUploaderFilesIDInternalServerError creates GetUploaderFilesIDInternalServerError with default headers values
func (*GetUploaderFilesIDInternalServerError) SetPayload ¶
func (o *GetUploaderFilesIDInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get uploader files Id internal server error response
func (*GetUploaderFilesIDInternalServerError) WithPayload ¶
func (o *GetUploaderFilesIDInternalServerError) WithPayload(payload *models.Error) *GetUploaderFilesIDInternalServerError
WithPayload adds the payload to the get uploader files Id internal server error response
func (*GetUploaderFilesIDInternalServerError) WriteResponse ¶
func (o *GetUploaderFilesIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploaderFilesIDOK ¶
GetUploaderFilesIDOK file
swagger:response getUploaderFilesIdOK
func NewGetUploaderFilesIDOK ¶
func NewGetUploaderFilesIDOK() *GetUploaderFilesIDOK
NewGetUploaderFilesIDOK creates GetUploaderFilesIDOK with default headers values
func (*GetUploaderFilesIDOK) SetPayload ¶
func (o *GetUploaderFilesIDOK) SetPayload(payload *models.File)
SetPayload sets the payload to the get uploader files Id o k response
func (*GetUploaderFilesIDOK) WithPayload ¶
func (o *GetUploaderFilesIDOK) WithPayload(payload *models.File) *GetUploaderFilesIDOK
WithPayload adds the payload to the get uploader files Id o k response
func (*GetUploaderFilesIDOK) WriteResponse ¶
func (o *GetUploaderFilesIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploaderFilesIDParams ¶
type GetUploaderFilesIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID int64 }
GetUploaderFilesIDParams contains all the bound params for the get uploader files ID operation typically these are obtained from a http.Request
swagger:parameters GetUploaderFilesID
func NewGetUploaderFilesIDParams ¶
func NewGetUploaderFilesIDParams() GetUploaderFilesIDParams
NewGetUploaderFilesIDParams creates a new GetUploaderFilesIDParams object
There are no default values defined in the spec.
func (*GetUploaderFilesIDParams) BindRequest ¶
func (o *GetUploaderFilesIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetUploaderFilesIDParams() beforehand.
type GetUploaderFilesIDURL ¶
type GetUploaderFilesIDURL struct { ID int64 // contains filtered or unexported fields }
GetUploaderFilesIDURL generates an URL for the get uploader files ID operation
func (*GetUploaderFilesIDURL) Build ¶
func (o *GetUploaderFilesIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUploaderFilesIDURL) BuildFull ¶
func (o *GetUploaderFilesIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUploaderFilesIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUploaderFilesIDURL) SetBasePath ¶
func (o *GetUploaderFilesIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetUploaderFilesIDURL) String ¶
func (o *GetUploaderFilesIDURL) String() string
String returns the string representation of the path with query string
func (*GetUploaderFilesIDURL) StringFull ¶
func (o *GetUploaderFilesIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUploaderFilesIDURL) WithBasePath ¶
func (o *GetUploaderFilesIDURL) WithBasePath(bp string) *GetUploaderFilesIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetUploaderFilesInternalServerError ¶
type GetUploaderFilesInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetUploaderFilesInternalServerError When some error occurs
swagger:response getUploaderFilesInternalServerError
func NewGetUploaderFilesInternalServerError ¶
func NewGetUploaderFilesInternalServerError() *GetUploaderFilesInternalServerError
NewGetUploaderFilesInternalServerError creates GetUploaderFilesInternalServerError with default headers values
func (*GetUploaderFilesInternalServerError) SetPayload ¶
func (o *GetUploaderFilesInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get uploader files internal server error response
func (*GetUploaderFilesInternalServerError) WithPayload ¶
func (o *GetUploaderFilesInternalServerError) WithPayload(payload *models.Error) *GetUploaderFilesInternalServerError
WithPayload adds the payload to the get uploader files internal server error response
func (*GetUploaderFilesInternalServerError) WriteResponse ¶
func (o *GetUploaderFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploaderFilesOK ¶
GetUploaderFilesOK An array of uploaded files
swagger:response getUploaderFilesOK
func NewGetUploaderFilesOK ¶
func NewGetUploaderFilesOK() *GetUploaderFilesOK
NewGetUploaderFilesOK creates GetUploaderFilesOK with default headers values
func (*GetUploaderFilesOK) SetPayload ¶
func (o *GetUploaderFilesOK) SetPayload(payload []*models.File)
SetPayload sets the payload to the get uploader files o k response
func (*GetUploaderFilesOK) WithPayload ¶
func (o *GetUploaderFilesOK) WithPayload(payload []*models.File) *GetUploaderFilesOK
WithPayload adds the payload to the get uploader files o k response
func (*GetUploaderFilesOK) WriteResponse ¶
func (o *GetUploaderFilesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploaderFilesParams ¶
type GetUploaderFilesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Name *string }
GetUploaderFilesParams contains all the bound params for the get uploader files operation typically these are obtained from a http.Request
swagger:parameters GetUploaderFiles
func NewGetUploaderFilesParams ¶
func NewGetUploaderFilesParams() GetUploaderFilesParams
NewGetUploaderFilesParams creates a new GetUploaderFilesParams object
There are no default values defined in the spec.
func (*GetUploaderFilesParams) BindRequest ¶
func (o *GetUploaderFilesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetUploaderFilesParams() beforehand.
type GetUploaderFilesServeID ¶
type GetUploaderFilesServeID struct { Context *middleware.Context Handler GetUploaderFilesServeIDHandler }
GetUploaderFilesServeID swagger:route GET /uploader/files/serve/{id} uploader getUploaderFilesServeId
get raw file version
func NewGetUploaderFilesServeID ¶
func NewGetUploaderFilesServeID(ctx *middleware.Context, handler GetUploaderFilesServeIDHandler) *GetUploaderFilesServeID
NewGetUploaderFilesServeID creates a new http.Handler for the get uploader files serve ID operation
func (*GetUploaderFilesServeID) ServeHTTP ¶
func (o *GetUploaderFilesServeID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUploaderFilesServeIDHandler ¶
type GetUploaderFilesServeIDHandler interface {
Handle(GetUploaderFilesServeIDParams, *models.Principal) middleware.Responder
}
GetUploaderFilesServeIDHandler interface for that can handle valid get uploader files serve ID params
type GetUploaderFilesServeIDHandlerFunc ¶
type GetUploaderFilesServeIDHandlerFunc func(GetUploaderFilesServeIDParams, *models.Principal) middleware.Responder
GetUploaderFilesServeIDHandlerFunc turns a function with the right signature into a get uploader files serve ID handler
func (GetUploaderFilesServeIDHandlerFunc) Handle ¶
func (fn GetUploaderFilesServeIDHandlerFunc) Handle(params GetUploaderFilesServeIDParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetUploaderFilesServeIDInternalServerError ¶
type GetUploaderFilesServeIDInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetUploaderFilesServeIDInternalServerError When some error occurs
swagger:response getUploaderFilesServeIdInternalServerError
func NewGetUploaderFilesServeIDInternalServerError ¶
func NewGetUploaderFilesServeIDInternalServerError() *GetUploaderFilesServeIDInternalServerError
NewGetUploaderFilesServeIDInternalServerError creates GetUploaderFilesServeIDInternalServerError with default headers values
func (*GetUploaderFilesServeIDInternalServerError) SetPayload ¶
func (o *GetUploaderFilesServeIDInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get uploader files serve Id internal server error response
func (*GetUploaderFilesServeIDInternalServerError) WithPayload ¶
func (o *GetUploaderFilesServeIDInternalServerError) WithPayload(payload *models.Error) *GetUploaderFilesServeIDInternalServerError
WithPayload adds the payload to the get uploader files serve Id internal server error response
func (*GetUploaderFilesServeIDInternalServerError) WriteResponse ¶
func (o *GetUploaderFilesServeIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploaderFilesServeIDOK ¶
type GetUploaderFilesServeIDOK struct { /* In: Body */ Payload *models.File `json:"body,omitempty"` }
GetUploaderFilesServeIDOK file
swagger:response getUploaderFilesServeIdOK
func NewGetUploaderFilesServeIDOK ¶
func NewGetUploaderFilesServeIDOK() *GetUploaderFilesServeIDOK
NewGetUploaderFilesServeIDOK creates GetUploaderFilesServeIDOK with default headers values
func (*GetUploaderFilesServeIDOK) SetPayload ¶
func (o *GetUploaderFilesServeIDOK) SetPayload(payload *models.File)
SetPayload sets the payload to the get uploader files serve Id o k response
func (*GetUploaderFilesServeIDOK) WithPayload ¶
func (o *GetUploaderFilesServeIDOK) WithPayload(payload *models.File) *GetUploaderFilesServeIDOK
WithPayload adds the payload to the get uploader files serve Id o k response
func (*GetUploaderFilesServeIDOK) WriteResponse ¶
func (o *GetUploaderFilesServeIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploaderFilesServeIDParams ¶
type GetUploaderFilesServeIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID int64 }
GetUploaderFilesServeIDParams contains all the bound params for the get uploader files serve ID operation typically these are obtained from a http.Request
swagger:parameters GetUploaderFilesServeID
func NewGetUploaderFilesServeIDParams ¶
func NewGetUploaderFilesServeIDParams() GetUploaderFilesServeIDParams
NewGetUploaderFilesServeIDParams creates a new GetUploaderFilesServeIDParams object
There are no default values defined in the spec.
func (*GetUploaderFilesServeIDParams) BindRequest ¶
func (o *GetUploaderFilesServeIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetUploaderFilesServeIDParams() beforehand.
type GetUploaderFilesServeIDURL ¶
type GetUploaderFilesServeIDURL struct { ID int64 // contains filtered or unexported fields }
GetUploaderFilesServeIDURL generates an URL for the get uploader files serve ID operation
func (*GetUploaderFilesServeIDURL) Build ¶
func (o *GetUploaderFilesServeIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUploaderFilesServeIDURL) BuildFull ¶
func (o *GetUploaderFilesServeIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUploaderFilesServeIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUploaderFilesServeIDURL) SetBasePath ¶
func (o *GetUploaderFilesServeIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetUploaderFilesServeIDURL) String ¶
func (o *GetUploaderFilesServeIDURL) String() string
String returns the string representation of the path with query string
func (*GetUploaderFilesServeIDURL) StringFull ¶
func (o *GetUploaderFilesServeIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUploaderFilesServeIDURL) WithBasePath ¶
func (o *GetUploaderFilesServeIDURL) WithBasePath(bp string) *GetUploaderFilesServeIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetUploaderFilesURL ¶
type GetUploaderFilesURL struct { Name *string // contains filtered or unexported fields }
GetUploaderFilesURL generates an URL for the get uploader files operation
func (*GetUploaderFilesURL) Build ¶
func (o *GetUploaderFilesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUploaderFilesURL) BuildFull ¶
func (o *GetUploaderFilesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUploaderFilesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUploaderFilesURL) SetBasePath ¶
func (o *GetUploaderFilesURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetUploaderFilesURL) String ¶
func (o *GetUploaderFilesURL) String() string
String returns the string representation of the path with query string
func (*GetUploaderFilesURL) StringFull ¶
func (o *GetUploaderFilesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUploaderFilesURL) WithBasePath ¶
func (o *GetUploaderFilesURL) WithBasePath(bp string) *GetUploaderFilesURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostUploaderFiles ¶
type PostUploaderFiles struct { Context *middleware.Context Handler PostUploaderFilesHandler }
PostUploaderFiles swagger:route POST /uploader/files uploader postUploaderFiles
Uploads a file.
func NewPostUploaderFiles ¶
func NewPostUploaderFiles(ctx *middleware.Context, handler PostUploaderFilesHandler) *PostUploaderFiles
NewPostUploaderFiles creates a new http.Handler for the post uploader files operation
func (*PostUploaderFiles) ServeHTTP ¶
func (o *PostUploaderFiles) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostUploaderFilesHandler ¶
type PostUploaderFilesHandler interface {
Handle(PostUploaderFilesParams, *models.Principal) middleware.Responder
}
PostUploaderFilesHandler interface for that can handle valid post uploader files params
type PostUploaderFilesHandlerFunc ¶
type PostUploaderFilesHandlerFunc func(PostUploaderFilesParams, *models.Principal) middleware.Responder
PostUploaderFilesHandlerFunc turns a function with the right signature into a post uploader files handler
func (PostUploaderFilesHandlerFunc) Handle ¶
func (fn PostUploaderFilesHandlerFunc) Handle(params PostUploaderFilesParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type PostUploaderFilesInternalServerError ¶
type PostUploaderFilesInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostUploaderFilesInternalServerError generic error response
swagger:response postUploaderFilesInternalServerError
func NewPostUploaderFilesInternalServerError ¶
func NewPostUploaderFilesInternalServerError() *PostUploaderFilesInternalServerError
NewPostUploaderFilesInternalServerError creates PostUploaderFilesInternalServerError with default headers values
func (*PostUploaderFilesInternalServerError) SetPayload ¶
func (o *PostUploaderFilesInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the post uploader files internal server error response
func (*PostUploaderFilesInternalServerError) WithPayload ¶
func (o *PostUploaderFilesInternalServerError) WithPayload(payload *models.Error) *PostUploaderFilesInternalServerError
WithPayload adds the payload to the post uploader files internal server error response
func (*PostUploaderFilesInternalServerError) WriteResponse ¶
func (o *PostUploaderFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostUploaderFilesOK ¶
type PostUploaderFilesOK struct { /* In: Body */ Payload *models.PublicFile `json:"body,omitempty"` }
PostUploaderFilesOK successful upload
swagger:response postUploaderFilesOK
func NewPostUploaderFilesOK ¶
func NewPostUploaderFilesOK() *PostUploaderFilesOK
NewPostUploaderFilesOK creates PostUploaderFilesOK with default headers values
func (*PostUploaderFilesOK) SetPayload ¶
func (o *PostUploaderFilesOK) SetPayload(payload *models.PublicFile)
SetPayload sets the payload to the post uploader files o k response
func (*PostUploaderFilesOK) WithPayload ¶
func (o *PostUploaderFilesOK) WithPayload(payload *models.PublicFile) *PostUploaderFilesOK
WithPayload adds the payload to the post uploader files o k response
func (*PostUploaderFilesOK) WriteResponse ¶
func (o *PostUploaderFilesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostUploaderFilesParams ¶
type PostUploaderFilesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*alternative text In: formData */ Alt *string /*image caption In: formData */ Caption *string /*The file to upload. In: formData */ File io.ReadCloser /*image height In: formData */ Height *float64 /*generated file id In: formData */ ID *string /*image name In: formData */ Name *string /*image chapter In: formData */ Provider *string /*image size in bytes In: formData */ Size *float64 /*mime type In: formData */ Type *string /*image width In: formData */ Width *float64 }
PostUploaderFilesParams contains all the bound params for the post uploader files operation typically these are obtained from a http.Request
swagger:parameters PostUploaderFiles
func NewPostUploaderFilesParams ¶
func NewPostUploaderFilesParams() PostUploaderFilesParams
NewPostUploaderFilesParams creates a new PostUploaderFilesParams object
There are no default values defined in the spec.
func (*PostUploaderFilesParams) BindRequest ¶
func (o *PostUploaderFilesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPostUploaderFilesParams() beforehand.
type PostUploaderFilesURL ¶
type PostUploaderFilesURL struct {
// contains filtered or unexported fields
}
PostUploaderFilesURL generates an URL for the post uploader files operation
func (*PostUploaderFilesURL) Build ¶
func (o *PostUploaderFilesURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostUploaderFilesURL) BuildFull ¶
func (o *PostUploaderFilesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostUploaderFilesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostUploaderFilesURL) SetBasePath ¶
func (o *PostUploaderFilesURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostUploaderFilesURL) String ¶
func (o *PostUploaderFilesURL) String() string
String returns the string representation of the path with query string
func (*PostUploaderFilesURL) StringFull ¶
func (o *PostUploaderFilesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostUploaderFilesURL) WithBasePath ¶
func (o *PostUploaderFilesURL) WithBasePath(bp string) *PostUploaderFilesURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PutUploaderFiles ¶
type PutUploaderFiles struct { Context *middleware.Context Handler PutUploaderFilesHandler }
PutUploaderFiles swagger:route PUT /uploader/files uploader putUploaderFiles
Edit uploaded file.
func NewPutUploaderFiles ¶
func NewPutUploaderFiles(ctx *middleware.Context, handler PutUploaderFilesHandler) *PutUploaderFiles
NewPutUploaderFiles creates a new http.Handler for the put uploader files operation
func (*PutUploaderFiles) ServeHTTP ¶
func (o *PutUploaderFiles) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutUploaderFilesHandler ¶
type PutUploaderFilesHandler interface {
Handle(PutUploaderFilesParams, *models.Principal) middleware.Responder
}
PutUploaderFilesHandler interface for that can handle valid put uploader files params
type PutUploaderFilesHandlerFunc ¶
type PutUploaderFilesHandlerFunc func(PutUploaderFilesParams, *models.Principal) middleware.Responder
PutUploaderFilesHandlerFunc turns a function with the right signature into a put uploader files handler
func (PutUploaderFilesHandlerFunc) Handle ¶
func (fn PutUploaderFilesHandlerFunc) Handle(params PutUploaderFilesParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type PutUploaderFilesInternalServerError ¶
type PutUploaderFilesInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PutUploaderFilesInternalServerError When some error occurs
swagger:response putUploaderFilesInternalServerError
func NewPutUploaderFilesInternalServerError ¶
func NewPutUploaderFilesInternalServerError() *PutUploaderFilesInternalServerError
NewPutUploaderFilesInternalServerError creates PutUploaderFilesInternalServerError with default headers values
func (*PutUploaderFilesInternalServerError) SetPayload ¶
func (o *PutUploaderFilesInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the put uploader files internal server error response
func (*PutUploaderFilesInternalServerError) WithPayload ¶
func (o *PutUploaderFilesInternalServerError) WithPayload(payload *models.Error) *PutUploaderFilesInternalServerError
WithPayload adds the payload to the put uploader files internal server error response
func (*PutUploaderFilesInternalServerError) WriteResponse ¶
func (o *PutUploaderFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutUploaderFilesOK ¶
PutUploaderFilesOK An array of files
swagger:response putUploaderFilesOK
func NewPutUploaderFilesOK ¶
func NewPutUploaderFilesOK() *PutUploaderFilesOK
NewPutUploaderFilesOK creates PutUploaderFilesOK with default headers values
func (*PutUploaderFilesOK) SetPayload ¶
func (o *PutUploaderFilesOK) SetPayload(payload []*models.File)
SetPayload sets the payload to the put uploader files o k response
func (*PutUploaderFilesOK) WithPayload ¶
func (o *PutUploaderFilesOK) WithPayload(payload []*models.File) *PutUploaderFilesOK
WithPayload adds the payload to the put uploader files o k response
func (*PutUploaderFilesOK) WriteResponse ¶
func (o *PutUploaderFilesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutUploaderFilesParams ¶
type PutUploaderFilesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*alternative text In: formData */ Alt *string /*image caption In: formData */ Caption *string /*The file to upload. In: formData */ File io.ReadCloser /*image height In: formData */ Height *float64 /*existing file id In: formData */ ID *string /*image name In: formData */ Name *string /*image chapter In: formData */ Provider *string /*image size in bytes In: formData */ Size *float64 /*mime type In: formData */ Type *string /*image width In: formData */ Width *float64 }
PutUploaderFilesParams contains all the bound params for the put uploader files operation typically these are obtained from a http.Request
swagger:parameters PutUploaderFiles
func NewPutUploaderFilesParams ¶
func NewPutUploaderFilesParams() PutUploaderFilesParams
NewPutUploaderFilesParams creates a new PutUploaderFilesParams object
There are no default values defined in the spec.
func (*PutUploaderFilesParams) BindRequest ¶
func (o *PutUploaderFilesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPutUploaderFilesParams() beforehand.
type PutUploaderFilesURL ¶
type PutUploaderFilesURL struct {
// contains filtered or unexported fields
}
PutUploaderFilesURL generates an URL for the put uploader files operation
func (*PutUploaderFilesURL) Build ¶
func (o *PutUploaderFilesURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutUploaderFilesURL) BuildFull ¶
func (o *PutUploaderFilesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutUploaderFilesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutUploaderFilesURL) SetBasePath ¶
func (o *PutUploaderFilesURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PutUploaderFilesURL) String ¶
func (o *PutUploaderFilesURL) String() string
String returns the string representation of the path with query string
func (*PutUploaderFilesURL) StringFull ¶
func (o *PutUploaderFilesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutUploaderFilesURL) WithBasePath ¶
func (o *PutUploaderFilesURL) WithBasePath(bp string) *PutUploaderFilesURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- get_uploader_files.go
- get_uploader_files_id.go
- get_uploader_files_id_parameters.go
- get_uploader_files_id_responses.go
- get_uploader_files_id_urlbuilder.go
- get_uploader_files_parameters.go
- get_uploader_files_responses.go
- get_uploader_files_serve_id.go
- get_uploader_files_serve_id_parameters.go
- get_uploader_files_serve_id_responses.go
- get_uploader_files_serve_id_urlbuilder.go
- get_uploader_files_urlbuilder.go
- post_uploader_files.go
- post_uploader_files_parameters.go
- post_uploader_files_responses.go
- post_uploader_files_urlbuilder.go
- put_uploader_files.go
- put_uploader_files_parameters.go
- put_uploader_files_responses.go
- put_uploader_files_urlbuilder.go