Documentation
¶
Index ¶
- Constants
- type ArchiveURL
- type ArchiveURLCreated
- type ArchiveURLHandler
- type ArchiveURLHandlerFunc
- type ArchiveURLInternalServerError
- type ArchiveURLParams
- type ArchiveURLURL
- func (o *ArchiveURLURL) Build() (*url.URL, error)
- func (o *ArchiveURLURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ArchiveURLURL) Must(u *url.URL, err error) *url.URL
- func (o *ArchiveURLURL) SetBasePath(bp string)
- func (o *ArchiveURLURL) String() string
- func (o *ArchiveURLURL) StringFull(scheme, host string) string
- func (o *ArchiveURLURL) WithBasePath(bp string) *ArchiveURLURL
Constants ¶
const ArchiveURLCreatedCode int = 201
ArchiveURLCreatedCode is the HTTP code returned for type ArchiveURLCreated
const ArchiveURLInternalServerErrorCode int = 500
ArchiveURLInternalServerErrorCode is the HTTP code returned for type ArchiveURLInternalServerError
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveURL ¶
type ArchiveURL struct { Context *middleware.Context Handler ArchiveURLHandler }
ArchiveURL swagger:route POST /archive ipfs archiveUrl
Archive a URL
func NewArchiveURL ¶
func NewArchiveURL(ctx *middleware.Context, handler ArchiveURLHandler) *ArchiveURL
NewArchiveURL creates a new http.Handler for the archive Url operation
func (*ArchiveURL) ServeHTTP ¶
func (o *ArchiveURL) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ArchiveURLCreated ¶
type ArchiveURLCreated struct { /* In: Body */ Payload *models.ArchiveResponse `json:"body,omitempty"` }
ArchiveURLCreated Archive Response
swagger:response archiveUrlCreated
func NewArchiveURLCreated ¶
func NewArchiveURLCreated() *ArchiveURLCreated
NewArchiveURLCreated creates ArchiveURLCreated with default headers values
func (*ArchiveURLCreated) SetPayload ¶
func (o *ArchiveURLCreated) SetPayload(payload *models.ArchiveResponse)
SetPayload sets the payload to the archive Url created response
func (*ArchiveURLCreated) WithPayload ¶
func (o *ArchiveURLCreated) WithPayload(payload *models.ArchiveResponse) *ArchiveURLCreated
WithPayload adds the payload to the archive Url created response
func (*ArchiveURLCreated) WriteResponse ¶
func (o *ArchiveURLCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ArchiveURLHandler ¶
type ArchiveURLHandler interface {
Handle(ArchiveURLParams) middleware.Responder
}
ArchiveURLHandler interface for that can handle valid archive Url params
type ArchiveURLHandlerFunc ¶
type ArchiveURLHandlerFunc func(ArchiveURLParams) middleware.Responder
ArchiveURLHandlerFunc turns a function with the right signature into a archive Url handler
func (ArchiveURLHandlerFunc) Handle ¶
func (fn ArchiveURLHandlerFunc) Handle(params ArchiveURLParams) middleware.Responder
Handle executing the request and returning a response
type ArchiveURLInternalServerError ¶
type ArchiveURLInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ArchiveURLInternalServerError Archive Error
swagger:response archiveUrlInternalServerError
func NewArchiveURLInternalServerError ¶
func NewArchiveURLInternalServerError() *ArchiveURLInternalServerError
NewArchiveURLInternalServerError creates ArchiveURLInternalServerError with default headers values
func (*ArchiveURLInternalServerError) SetPayload ¶
func (o *ArchiveURLInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the archive Url internal server error response
func (*ArchiveURLInternalServerError) WithPayload ¶
func (o *ArchiveURLInternalServerError) WithPayload(payload *models.Error) *ArchiveURLInternalServerError
WithPayload adds the payload to the archive Url internal server error response
func (*ArchiveURLInternalServerError) WriteResponse ¶
func (o *ArchiveURLInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ArchiveURLParams ¶
type ArchiveURLParams struct { // HTTP Request Object HTTPRequest *http.Request /*The URL to archive Required: true In: body */ Body *models.ArchiveRequest }
ArchiveURLParams contains all the bound params for the archive Url operation typically these are obtained from a http.Request
swagger:parameters archiveUrl
func NewArchiveURLParams ¶
func NewArchiveURLParams() ArchiveURLParams
NewArchiveURLParams creates a new ArchiveURLParams object with the default values initialized.
func (*ArchiveURLParams) BindRequest ¶
func (o *ArchiveURLParams) 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
type ArchiveURLURL ¶
type ArchiveURLURL struct {
// contains filtered or unexported fields
}
ArchiveURLURL generates an URL for the archive Url operation
func (*ArchiveURLURL) Build ¶
func (o *ArchiveURLURL) Build() (*url.URL, error)
Build a url path and query string
func (*ArchiveURLURL) BuildFull ¶
func (o *ArchiveURLURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ArchiveURLURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ArchiveURLURL) SetBasePath ¶
func (o *ArchiveURLURL) 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 (*ArchiveURLURL) String ¶
func (o *ArchiveURLURL) String() string
String returns the string representation of the path with query string
func (*ArchiveURLURL) StringFull ¶
func (o *ArchiveURLURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ArchiveURLURL) WithBasePath ¶
func (o *ArchiveURLURL) WithBasePath(bp string) *ArchiveURLURL
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