Documentation ¶
Overview ¶
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- type CastMember
- type ChiServerOptions
- type EpisodeMetadata
- type Error
- type ErrorType
- type GetRepoById200JSONResponse
- type GetRepoById400JSONResponse
- type GetRepoByIdRequestObject
- type GetRepoByIdResponseObject
- type GetRepoMedia200JSONResponse
- type GetRepoMedia400JSONResponse
- type GetRepoMediaById200JSONResponse
- type GetRepoMediaById400JSONResponse
- type GetRepoMediaByIdRequestObject
- type GetRepoMediaByIdResponseObject
- type GetRepoMediaDownload200ResponseHeaders
- type GetRepoMediaDownload200SchemaResponse
- type GetRepoMediaDownload400JSONResponse
- type GetRepoMediaDownloadRequestObject
- type GetRepoMediaDownloadResponseObject
- type GetRepoMediaRequestObject
- type GetRepoMediaResponseObject
- type GetRepoMediaStream200ResponseHeaders
- type GetRepoMediaStream200SchemaResponse
- type GetRepoMediaStream400JSONResponse
- type GetRepoMediaStreamRequestObject
- type GetRepoMediaStreamResponseObject
- type GetRepoMediaStreams200JSONResponse
- type GetRepoMediaStreams400JSONResponse
- type GetRepoMediaStreamsRequestObject
- type GetRepoMediaStreamsResponseObject
- type GetRepos200JSONResponse
- type GetReposRequestObject
- type GetReposResponseObject
- type Image
- type ImageType
- type InvalidParamFormatError
- type Media
- type MediaFormat
- type Media_Meta
- func (t Media_Meta) AsEpisodeMetadata() (EpisodeMetadata, error)
- func (t Media_Meta) AsMetadata() (Metadata, error)
- func (t Media_Meta) AsMovieMetadata() (MovieMetadata, error)
- func (t Media_Meta) AsSeriesMetadata() (SeriesMetadata, error)
- func (t Media_Meta) Discriminator() (string, error)
- func (t *Media_Meta) FromEpisodeMetadata(v EpisodeMetadata) error
- func (t *Media_Meta) FromMetadata(v Metadata) error
- func (t *Media_Meta) FromMovieMetadata(v MovieMetadata) error
- func (t *Media_Meta) FromSeriesMetadata(v SeriesMetadata) error
- func (t Media_Meta) MarshalJSON() ([]byte, error)
- func (t *Media_Meta) MergeEpisodeMetadata(v EpisodeMetadata) error
- func (t *Media_Meta) MergeMetadata(v Metadata) error
- func (t *Media_Meta) MergeMovieMetadata(v MovieMetadata) error
- func (t *Media_Meta) MergeSeriesMetadata(v SeriesMetadata) error
- func (t *Media_Meta) UnmarshalJSON(b []byte) error
- func (t Media_Meta) ValueByDiscriminator() (interface{}, error)
- type Metadata
- type MetadataType
- type MiddlewareFunc
- type MovieMetadata
- type Repository
- type RepositoryCapability
- type RequiredHeaderError
- type RequiredParamError
- type SeriesMetadata
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetRepoById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRepoMedia(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRepoMediaById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRepoMediaDownload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRepoMediaStream(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRepoMediaStreams(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRepos(w http.ResponseWriter, r *http.Request)
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) GetRepoById(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetRepoMedia(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetRepoMediaById(w http.ResponseWriter, r *http.Request, repoId string, mediaId string)
- func (_ Unimplemented) GetRepoMediaDownload(w http.ResponseWriter, r *http.Request, repoId string, mediaId string)
- func (_ Unimplemented) GetRepoMediaStream(w http.ResponseWriter, r *http.Request, repoId string, mediaId string, ...)
- func (_ Unimplemented) GetRepoMediaStreams(w http.ResponseWriter, r *http.Request, repoId string, mediaId string)
- func (_ Unimplemented) GetRepos(w http.ResponseWriter, r *http.Request)
- type UnmarshalingParamError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type CastMember ¶
type CastMember struct { Image *Image `json:"image,omitempty"` // Name The cast member name. Name string `json:"name"` // Role The cast character name or the member's position. Role string `json:"role"` }
CastMember defines model for CastMember.
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type EpisodeMetadata ¶
type EpisodeMetadata struct { // Episode The episode number. Episode int `json:"episode"` // Images The promotional images of the media. Images []Image `json:"images"` // OriginalTitle The media title as it was initially released (original language). OriginalTitle *string `json:"original_title"` // Overview The media plot overview. Overview *string `json:"overview"` // ReleaseDate The media initial release date and time. ReleaseDate time.Time `json:"release_date"` // Season The season containing the episode. Season int `json:"season"` Series SeriesMetadata `json:"series"` // Title The media title. Title string `json:"title"` Type MetadataType `json:"type"` // VoteRating The media like/dislike ratio. VoteRating float32 `json:"vote_rating"` }
EpisodeMetadata defines model for EpisodeMetadata.
type Error ¶
type Error struct { // Description The error description. Description string `json:"description"` Type ErrorType `json:"type"` }
Error defines model for Error.
type GetRepoById200JSONResponse ¶
type GetRepoById200JSONResponse Repository
func (GetRepoById200JSONResponse) VisitGetRepoByIdResponse ¶
func (response GetRepoById200JSONResponse) VisitGetRepoByIdResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoById400JSONResponse ¶
type GetRepoById400JSONResponse Error
func (GetRepoById400JSONResponse) VisitGetRepoByIdResponse ¶
func (response GetRepoById400JSONResponse) VisitGetRepoByIdResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoByIdRequestObject ¶
type GetRepoByIdRequestObject struct {
Id string `json:"id"`
}
type GetRepoByIdResponseObject ¶
type GetRepoByIdResponseObject interface {
VisitGetRepoByIdResponse(w http.ResponseWriter, r *http.Request) error
}
type GetRepoMedia200JSONResponse ¶
type GetRepoMedia200JSONResponse []Media
func (GetRepoMedia200JSONResponse) VisitGetRepoMediaResponse ¶
func (response GetRepoMedia200JSONResponse) VisitGetRepoMediaResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMedia400JSONResponse ¶
type GetRepoMedia400JSONResponse Error
func (GetRepoMedia400JSONResponse) VisitGetRepoMediaResponse ¶
func (response GetRepoMedia400JSONResponse) VisitGetRepoMediaResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaById200JSONResponse ¶
type GetRepoMediaById200JSONResponse Media
func (GetRepoMediaById200JSONResponse) VisitGetRepoMediaByIdResponse ¶
func (response GetRepoMediaById200JSONResponse) VisitGetRepoMediaByIdResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaById400JSONResponse ¶
type GetRepoMediaById400JSONResponse Error
func (GetRepoMediaById400JSONResponse) VisitGetRepoMediaByIdResponse ¶
func (response GetRepoMediaById400JSONResponse) VisitGetRepoMediaByIdResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaByIdResponseObject ¶
type GetRepoMediaByIdResponseObject interface {
VisitGetRepoMediaByIdResponse(w http.ResponseWriter, r *http.Request) error
}
type GetRepoMediaDownload200SchemaResponse ¶
type GetRepoMediaDownload200SchemaResponse struct { Body io.Reader Headers GetRepoMediaDownload200ResponseHeaders ContentLength int64 }
func (GetRepoMediaDownload200SchemaResponse) VisitGetRepoMediaDownloadResponse ¶
func (response GetRepoMediaDownload200SchemaResponse) VisitGetRepoMediaDownloadResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaDownload400JSONResponse ¶
type GetRepoMediaDownload400JSONResponse Error
func (GetRepoMediaDownload400JSONResponse) VisitGetRepoMediaDownloadResponse ¶
func (response GetRepoMediaDownload400JSONResponse) VisitGetRepoMediaDownloadResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaDownloadResponseObject ¶
type GetRepoMediaDownloadResponseObject interface {
VisitGetRepoMediaDownloadResponse(w http.ResponseWriter, r *http.Request) error
}
type GetRepoMediaRequestObject ¶
type GetRepoMediaRequestObject struct {
Id string `json:"id"`
}
type GetRepoMediaResponseObject ¶
type GetRepoMediaResponseObject interface {
VisitGetRepoMediaResponse(w http.ResponseWriter, r *http.Request) error
}
type GetRepoMediaStream200SchemaResponse ¶
type GetRepoMediaStream200SchemaResponse struct { Body io.Reader Headers GetRepoMediaStream200ResponseHeaders ContentLength int64 }
func (GetRepoMediaStream200SchemaResponse) VisitGetRepoMediaStreamResponse ¶
func (response GetRepoMediaStream200SchemaResponse) VisitGetRepoMediaStreamResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaStream400JSONResponse ¶
type GetRepoMediaStream400JSONResponse Error
func (GetRepoMediaStream400JSONResponse) VisitGetRepoMediaStreamResponse ¶
func (response GetRepoMediaStream400JSONResponse) VisitGetRepoMediaStreamResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaStreamResponseObject ¶
type GetRepoMediaStreamResponseObject interface {
VisitGetRepoMediaStreamResponse(w http.ResponseWriter, r *http.Request) error
}
type GetRepoMediaStreams200JSONResponse ¶
type GetRepoMediaStreams200JSONResponse []MediaFormat
func (GetRepoMediaStreams200JSONResponse) VisitGetRepoMediaStreamsResponse ¶
func (response GetRepoMediaStreams200JSONResponse) VisitGetRepoMediaStreamsResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaStreams400JSONResponse ¶
type GetRepoMediaStreams400JSONResponse Error
func (GetRepoMediaStreams400JSONResponse) VisitGetRepoMediaStreamsResponse ¶
func (response GetRepoMediaStreams400JSONResponse) VisitGetRepoMediaStreamsResponse(w http.ResponseWriter, _ *http.Request) error
type GetRepoMediaStreamsResponseObject ¶
type GetRepoMediaStreamsResponseObject interface {
VisitGetRepoMediaStreamsResponse(w http.ResponseWriter, r *http.Request) error
}
type GetRepos200JSONResponse ¶
type GetRepos200JSONResponse []Repository
func (GetRepos200JSONResponse) VisitGetReposResponse ¶
func (response GetRepos200JSONResponse) VisitGetReposResponse(w http.ResponseWriter, _ *http.Request) error
type GetReposRequestObject ¶
type GetReposRequestObject struct { }
type GetReposResponseObject ¶
type GetReposResponseObject interface {
VisitGetReposResponse(w http.ResponseWriter, r *http.Request) error
}
type Image ¶
type Image struct { // Description The image description. Description *string `json:"description"` // Path The image URL, a remote HTTP resource or raw data (data:image url). Path string `json:"path"` // Remote Whether the image path is a remote URL. Remote bool `json:"remote"` Type ImageType `json:"type"` }
Image defines model for Image.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type Media ¶
type Media struct { // Id The media ID, alphanumeric, lowercase, non-blank ([a-z0-9-_]). Id string `json:"id"` // Meta The media metadata. Meta *Media_Meta `json:"meta"` }
Media defines model for Media.
type MediaFormat ¶
type MediaFormat struct { // Extension The format's preferred file extension, *without leading dots*. Extension string `json:"extension"` // Mime The format MIME type. Mime string `json:"mime"` // Name The format name. Name string `json:"name"` }
MediaFormat defines model for MediaFormat.
type Media_Meta ¶
type Media_Meta struct {
// contains filtered or unexported fields
}
Media_Meta The media metadata.
func (Media_Meta) AsEpisodeMetadata ¶
func (t Media_Meta) AsEpisodeMetadata() (EpisodeMetadata, error)
AsEpisodeMetadata returns the union data inside the Media_Meta as a EpisodeMetadata
func (Media_Meta) AsMetadata ¶
func (t Media_Meta) AsMetadata() (Metadata, error)
AsMetadata returns the union data inside the Media_Meta as a Metadata
func (Media_Meta) AsMovieMetadata ¶
func (t Media_Meta) AsMovieMetadata() (MovieMetadata, error)
AsMovieMetadata returns the union data inside the Media_Meta as a MovieMetadata
func (Media_Meta) AsSeriesMetadata ¶
func (t Media_Meta) AsSeriesMetadata() (SeriesMetadata, error)
AsSeriesMetadata returns the union data inside the Media_Meta as a SeriesMetadata
func (Media_Meta) Discriminator ¶
func (t Media_Meta) Discriminator() (string, error)
func (*Media_Meta) FromEpisodeMetadata ¶
func (t *Media_Meta) FromEpisodeMetadata(v EpisodeMetadata) error
FromEpisodeMetadata overwrites any union data inside the Media_Meta as the provided EpisodeMetadata
func (*Media_Meta) FromMetadata ¶
func (t *Media_Meta) FromMetadata(v Metadata) error
FromMetadata overwrites any union data inside the Media_Meta as the provided Metadata
func (*Media_Meta) FromMovieMetadata ¶
func (t *Media_Meta) FromMovieMetadata(v MovieMetadata) error
FromMovieMetadata overwrites any union data inside the Media_Meta as the provided MovieMetadata
func (*Media_Meta) FromSeriesMetadata ¶
func (t *Media_Meta) FromSeriesMetadata(v SeriesMetadata) error
FromSeriesMetadata overwrites any union data inside the Media_Meta as the provided SeriesMetadata
func (Media_Meta) MarshalJSON ¶
func (t Media_Meta) MarshalJSON() ([]byte, error)
func (*Media_Meta) MergeEpisodeMetadata ¶
func (t *Media_Meta) MergeEpisodeMetadata(v EpisodeMetadata) error
MergeEpisodeMetadata performs a merge with any union data inside the Media_Meta, using the provided EpisodeMetadata
func (*Media_Meta) MergeMetadata ¶
func (t *Media_Meta) MergeMetadata(v Metadata) error
MergeMetadata performs a merge with any union data inside the Media_Meta, using the provided Metadata
func (*Media_Meta) MergeMovieMetadata ¶
func (t *Media_Meta) MergeMovieMetadata(v MovieMetadata) error
MergeMovieMetadata performs a merge with any union data inside the Media_Meta, using the provided MovieMetadata
func (*Media_Meta) MergeSeriesMetadata ¶
func (t *Media_Meta) MergeSeriesMetadata(v SeriesMetadata) error
MergeSeriesMetadata performs a merge with any union data inside the Media_Meta, using the provided SeriesMetadata
func (*Media_Meta) UnmarshalJSON ¶
func (t *Media_Meta) UnmarshalJSON(b []byte) error
func (Media_Meta) ValueByDiscriminator ¶
func (t Media_Meta) ValueByDiscriminator() (interface{}, error)
type Metadata ¶
type Metadata struct { // Images The promotional images of the media. Images []Image `json:"images"` // OriginalTitle The media title as it was initially released (original language). OriginalTitle *string `json:"original_title"` // Overview The media plot overview. Overview *string `json:"overview"` // ReleaseDate The media initial release date and time. ReleaseDate time.Time `json:"release_date"` // Title The media title. Title string `json:"title"` Type MetadataType `json:"type"` // VoteRating The media like/dislike ratio. VoteRating float32 `json:"vote_rating"` }
Metadata defines model for Metadata.
type MetadataType ¶
type MetadataType string
MetadataType defines model for MetadataType.
const ( MetadataTypeEpisode MetadataType = "episode" MetadataTypeMovie MetadataType = "movie" MetadataTypeSeries MetadataType = "series" MetadataTypeUnknown MetadataType = "unknown" )
Defines values for MetadataType.
type MovieMetadata ¶
type MovieMetadata struct { // Cast The people casted in the media. Cast []CastMember `json:"cast"` // Countries The countries that took part in producing the media. Countries []string `json:"countries"` // Genres The media's genres. Genres []string `json:"genres"` // Images The promotional images of the media. Images []Image `json:"images"` // Languages The languages originally spoken in the media. Languages []string `json:"languages"` // OriginalTitle The media title as it was initially released (original language). OriginalTitle *string `json:"original_title"` // Overview The media plot overview. Overview *string `json:"overview"` // ReleaseDate The media initial release date and time. ReleaseDate time.Time `json:"release_date"` // Title The media title. Title string `json:"title"` Type MetadataType `json:"type"` // VoteRating The media like/dislike ratio. VoteRating float32 `json:"vote_rating"` }
MovieMetadata defines model for MovieMetadata.
type Repository ¶
type Repository struct { // Capabilities The repository's capabilities. Capabilities []RepositoryCapability `json:"capabilities"` // Id The repository ID, alphanumeric, lowercase, non-blank ([a-z0-9-_]). Id string `json:"id"` // Name The repository name. Name string `json:"name"` }
Repository defines model for Repository.
type RepositoryCapability ¶
type RepositoryCapability string
RepositoryCapability defines model for RepositoryCapability.
const ( Index RepositoryCapability = "index" Remux RepositoryCapability = "remux" Transcode RepositoryCapability = "transcode" Watch RepositoryCapability = "watch" )
Defines values for RepositoryCapability.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type SeriesMetadata ¶
type SeriesMetadata struct { // Cast The people casted in the media. Cast []CastMember `json:"cast"` // Countries The countries that took part in producing the media. Countries []string `json:"countries"` // Genres The media's genres. Genres []string `json:"genres"` // Images The promotional images of the media. Images []Image `json:"images"` // Languages The languages originally spoken in the media. Languages []string `json:"languages"` // OriginalTitle The media title as it was initially released (original language). OriginalTitle *string `json:"original_title"` // Overview The media plot overview. Overview *string `json:"overview"` // ReleaseDate The media initial release date and time. ReleaseDate time.Time `json:"release_date"` // Title The media title. Title string `json:"title"` Type MetadataType `json:"type"` // VoteRating The media like/dislike ratio. VoteRating float32 `json:"vote_rating"` }
SeriesMetadata defines model for SeriesMetadata.
type ServerInterface ¶
type ServerInterface interface { // Lists repositories. // (GET /repos) GetRepos(w http.ResponseWriter, r *http.Request) // Gets a repository. // (GET /repos/{id}) GetRepoById(w http.ResponseWriter, r *http.Request, id string) // Lists a repository's media. // (GET /repos/{id}/media) GetRepoMedia(w http.ResponseWriter, r *http.Request, id string) // Gets a repository's media. // (GET /repos/{repoId}/media/{mediaId}) GetRepoMediaById(w http.ResponseWriter, r *http.Request, repoId string, mediaId string) // Downloads media. // (GET /repos/{repoId}/media/{mediaId}/download) GetRepoMediaDownload(w http.ResponseWriter, r *http.Request, repoId string, mediaId string) // Lists the available variants of a repository's media. // (GET /repos/{repoId}/media/{mediaId}/stream) GetRepoMediaStreams(w http.ResponseWriter, r *http.Request, repoId string, mediaId string) // Gets a HTTP media stream. // (GET /repos/{repoId}/media/{mediaId}/stream/{format}) GetRepoMediaStream(w http.ResponseWriter, r *http.Request, repoId string, mediaId string, format string) }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) GetRepoById ¶
func (siw *ServerInterfaceWrapper) GetRepoById(w http.ResponseWriter, r *http.Request)
GetRepoById operation middleware
func (*ServerInterfaceWrapper) GetRepoMedia ¶
func (siw *ServerInterfaceWrapper) GetRepoMedia(w http.ResponseWriter, r *http.Request)
GetRepoMedia operation middleware
func (*ServerInterfaceWrapper) GetRepoMediaById ¶
func (siw *ServerInterfaceWrapper) GetRepoMediaById(w http.ResponseWriter, r *http.Request)
GetRepoMediaById operation middleware
func (*ServerInterfaceWrapper) GetRepoMediaDownload ¶
func (siw *ServerInterfaceWrapper) GetRepoMediaDownload(w http.ResponseWriter, r *http.Request)
GetRepoMediaDownload operation middleware
func (*ServerInterfaceWrapper) GetRepoMediaStream ¶
func (siw *ServerInterfaceWrapper) GetRepoMediaStream(w http.ResponseWriter, r *http.Request)
GetRepoMediaStream operation middleware
func (*ServerInterfaceWrapper) GetRepoMediaStreams ¶
func (siw *ServerInterfaceWrapper) GetRepoMediaStreams(w http.ResponseWriter, r *http.Request)
GetRepoMediaStreams operation middleware
func (*ServerInterfaceWrapper) GetRepos ¶
func (siw *ServerInterfaceWrapper) GetRepos(w http.ResponseWriter, r *http.Request)
GetRepos operation middleware
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct { RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Lists repositories. // (GET /repos) GetRepos(ctx context.Context, request GetReposRequestObject) (GetReposResponseObject, error) // Gets a repository. // (GET /repos/{id}) GetRepoById(ctx context.Context, request GetRepoByIdRequestObject) (GetRepoByIdResponseObject, error) // Lists a repository's media. // (GET /repos/{id}/media) GetRepoMedia(ctx context.Context, request GetRepoMediaRequestObject) (GetRepoMediaResponseObject, error) // Gets a repository's media. // (GET /repos/{repoId}/media/{mediaId}) GetRepoMediaById(ctx context.Context, request GetRepoMediaByIdRequestObject) (GetRepoMediaByIdResponseObject, error) // Downloads media. // (GET /repos/{repoId}/media/{mediaId}/download) GetRepoMediaDownload(ctx context.Context, request GetRepoMediaDownloadRequestObject) (GetRepoMediaDownloadResponseObject, error) // Lists the available variants of a repository's media. // (GET /repos/{repoId}/media/{mediaId}/stream) GetRepoMediaStreams(ctx context.Context, request GetRepoMediaStreamsRequestObject) (GetRepoMediaStreamsResponseObject, error) // Gets a HTTP media stream. // (GET /repos/{repoId}/media/{mediaId}/stream/{format}) GetRepoMediaStream(ctx context.Context, request GetRepoMediaStreamRequestObject) (GetRepoMediaStreamResponseObject, error) }
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) GetRepoById ¶
func (_ Unimplemented) GetRepoById(w http.ResponseWriter, r *http.Request, id string)
Gets a repository. (GET /repos/{id})
func (Unimplemented) GetRepoMedia ¶
func (_ Unimplemented) GetRepoMedia(w http.ResponseWriter, r *http.Request, id string)
Lists a repository's media. (GET /repos/{id}/media)
func (Unimplemented) GetRepoMediaById ¶
func (_ Unimplemented) GetRepoMediaById(w http.ResponseWriter, r *http.Request, repoId string, mediaId string)
Gets a repository's media. (GET /repos/{repoId}/media/{mediaId})
func (Unimplemented) GetRepoMediaDownload ¶
func (_ Unimplemented) GetRepoMediaDownload(w http.ResponseWriter, r *http.Request, repoId string, mediaId string)
Downloads media. (GET /repos/{repoId}/media/{mediaId}/download)
func (Unimplemented) GetRepoMediaStream ¶
func (_ Unimplemented) GetRepoMediaStream(w http.ResponseWriter, r *http.Request, repoId string, mediaId string, format string)
Gets a HTTP media stream. (GET /repos/{repoId}/media/{mediaId}/stream/{format})
func (Unimplemented) GetRepoMediaStreams ¶
func (_ Unimplemented) GetRepoMediaStreams(w http.ResponseWriter, r *http.Request, repoId string, mediaId string)
Lists the available variants of a repository's media. (GET /repos/{repoId}/media/{mediaId}/stream)
func (Unimplemented) GetRepos ¶
func (_ Unimplemented) GetRepos(w http.ResponseWriter, r *http.Request)
Lists repositories. (GET /repos)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error