Documentation ¶
Overview ¶
Package rapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- 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
- func Middleware(s *openapi3.T, af openapi3filter.AuthenticationFunc) func(http.Handler) http.Handler
- func NewAPI(svc Service, oa OAuth, log logger.Logger) *api
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AddComicChapterFormdataRequestBody
- type AddComicChapterJSONRequestBody
- type AddComicChapterLinkFormdataRequestBody
- type AddComicChapterLinkJSONRequestBody
- type AddComicFormdataRequestBody
- type AddComicJSONRequestBody
- type AddComicLinkFormdataRequestBody
- type AddComicLinkJSONRequestBody
- type AddLanguageFormdataRequestBody
- type AddLanguageJSONRequestBody
- type AddLinkFormdataRequestBody
- type AddLinkJSONRequestBody
- type AddLinkTLLanguageFormdataRequestBody
- type AddLinkTLLanguageJSONRequestBody
- type AddWebsiteFormdataRequestBody
- type AddWebsiteJSONRequestBody
- type AddWebsiteTLLanguageFormdataRequestBody
- type AddWebsiteTLLanguageJSONRequestBody
- type ChiServerOptions
- type Comic
- type ComicChapter
- type ComicChapterLink
- type ComicLink
- type Default
- type Error
- type InvalidParamFormatError
- type Language
- type Link
- type LinkTLLanguage
- type ListComicChapterParams
- type ListComicParams
- type ListLanguageParams
- type ListLinkParams
- type ListWebsiteParams
- type MiddlewareFunc
- type NewComic
- type NewComicChapter
- type NewComicChapterLink
- type NewComicLink
- type NewLanguage
- type NewLink
- type NewLinkTLLanguage
- type NewWebsite
- type NewWebsiteTLLanguage
- type OAuth
- type Object
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AddComic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AddComicChapter(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AddComicChapterLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AddComicLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AddLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AddLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AddLinkTLLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AddWebsite(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AddWebsiteTLLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteComic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteComicChapter(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteComicChapterLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteComicLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteLinkTLLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteWebsite(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteWebsiteTLLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetComic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetComicChapter(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetComicChapterLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetComicLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLinkTLLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetWebsite(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetWebsiteTLLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListComic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListComicChapter(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListWebsite(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateComic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateComicChapter(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateComicChapterLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateComicLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateLink(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateLinkTLLanguage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateWebsite(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateWebsiteTLLanguage(w http.ResponseWriter, r *http.Request)
- type Service
- type SetComic
- type SetComicChapter
- type SetComicChapterLink
- type SetComicLink
- type SetLanguage
- type SetLink
- type SetLinkTLLanguage
- type SetWebsite
- type SetWebsiteTLLanguage
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) AddComic(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AddComicChapter(w http.ResponseWriter, r *http.Request, code string)
- func (_ Unimplemented) AddComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string)
- func (_ Unimplemented) AddComicLink(w http.ResponseWriter, r *http.Request, code string)
- func (_ Unimplemented) AddLanguage(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AddLink(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AddLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, ...)
- func (_ Unimplemented) AddWebsite(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AddWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string)
- func (_ Unimplemented) DeleteComic(w http.ResponseWriter, r *http.Request, code string)
- func (_ Unimplemented) DeleteComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string)
- func (_ Unimplemented) DeleteComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, ...)
- func (_ Unimplemented) DeleteComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, ...)
- func (_ Unimplemented) DeleteLanguage(w http.ResponseWriter, r *http.Request, ietf string)
- func (_ Unimplemented) DeleteLink(w http.ResponseWriter, r *http.Request, websiteDomain string, ...)
- func (_ Unimplemented) DeleteLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, ...)
- func (_ Unimplemented) DeleteWebsite(w http.ResponseWriter, r *http.Request, domain string)
- func (_ Unimplemented) DeleteWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string)
- func (_ Unimplemented) GetComic(w http.ResponseWriter, r *http.Request, code string)
- func (_ Unimplemented) GetComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string)
- func (_ Unimplemented) GetComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, ...)
- func (_ Unimplemented) GetComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, ...)
- func (_ Unimplemented) GetLanguage(w http.ResponseWriter, r *http.Request, ietf string)
- func (_ Unimplemented) GetLink(w http.ResponseWriter, r *http.Request, websiteDomain string, ...)
- func (_ Unimplemented) GetLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, ...)
- func (_ Unimplemented) GetWebsite(w http.ResponseWriter, r *http.Request, domain string)
- func (_ Unimplemented) GetWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string)
- func (_ Unimplemented) ListComic(w http.ResponseWriter, r *http.Request, params ListComicParams)
- func (_ Unimplemented) ListComicChapter(w http.ResponseWriter, r *http.Request, code string, ...)
- func (_ Unimplemented) ListLanguage(w http.ResponseWriter, r *http.Request, params ListLanguageParams)
- func (_ Unimplemented) ListLink(w http.ResponseWriter, r *http.Request, params ListLinkParams)
- func (_ Unimplemented) ListWebsite(w http.ResponseWriter, r *http.Request, params ListWebsiteParams)
- func (_ Unimplemented) UpdateComic(w http.ResponseWriter, r *http.Request, code string)
- func (_ Unimplemented) UpdateComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string)
- func (_ Unimplemented) UpdateComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, ...)
- func (_ Unimplemented) UpdateComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, ...)
- func (_ Unimplemented) UpdateLanguage(w http.ResponseWriter, r *http.Request, ietf string)
- func (_ Unimplemented) UpdateLink(w http.ResponseWriter, r *http.Request, websiteDomain string, ...)
- func (_ Unimplemented) UpdateLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, ...)
- func (_ Unimplemented) UpdateWebsite(w http.ResponseWriter, r *http.Request, domain string)
- func (_ Unimplemented) UpdateWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string)
- type UnmarshalingParamError
- type UpdateComicChapterFormdataRequestBody
- type UpdateComicChapterJSONRequestBody
- type UpdateComicChapterLinkFormdataRequestBody
- type UpdateComicChapterLinkJSONRequestBody
- type UpdateComicFormdataRequestBody
- type UpdateComicJSONRequestBody
- type UpdateComicLinkFormdataRequestBody
- type UpdateComicLinkJSONRequestBody
- type UpdateLanguageFormdataRequestBody
- type UpdateLanguageJSONRequestBody
- type UpdateLinkFormdataRequestBody
- type UpdateLinkJSONRequestBody
- type UpdateLinkTLLanguageFormdataRequestBody
- type UpdateLinkTLLanguageJSONRequestBody
- type UpdateWebsiteFormdataRequestBody
- type UpdateWebsiteJSONRequestBody
- type UpdateWebsiteTLLanguageFormdataRequestBody
- type UpdateWebsiteTLLanguageJSONRequestBody
- type Website
- type WebsiteTLLanguage
Constants ¶
const (
BearerAuthScopes contextKey = "BearerAuth.Scopes"
)
const SecuritySchemeBearerAuth = "BearerAuth"
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
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
func Middleware ¶
func Middleware(s *openapi3.T, af openapi3filter.AuthenticationFunc) func(http.Handler) http.Handler
Types ¶
type AddComicChapterFormdataRequestBody ¶
type AddComicChapterFormdataRequestBody = NewComicChapter
AddComicChapterFormdataRequestBody defines body for AddComicChapter for application/x-www-form-urlencoded ContentType.
type AddComicChapterJSONRequestBody ¶
type AddComicChapterJSONRequestBody = NewComicChapter
AddComicChapterJSONRequestBody defines body for AddComicChapter for application/json ContentType.
type AddComicChapterLinkFormdataRequestBody ¶
type AddComicChapterLinkFormdataRequestBody = NewComicChapterLink
AddComicChapterLinkFormdataRequestBody defines body for AddComicChapterLink for application/x-www-form-urlencoded ContentType.
type AddComicChapterLinkJSONRequestBody ¶
type AddComicChapterLinkJSONRequestBody = NewComicChapterLink
AddComicChapterLinkJSONRequestBody defines body for AddComicChapterLink for application/json ContentType.
type AddComicFormdataRequestBody ¶
type AddComicFormdataRequestBody = NewComic
AddComicFormdataRequestBody defines body for AddComic for application/x-www-form-urlencoded ContentType.
type AddComicJSONRequestBody ¶
type AddComicJSONRequestBody = NewComic
AddComicJSONRequestBody defines body for AddComic for application/json ContentType.
type AddComicLinkFormdataRequestBody ¶
type AddComicLinkFormdataRequestBody = NewComicLink
AddComicLinkFormdataRequestBody defines body for AddComicLink for application/x-www-form-urlencoded ContentType.
type AddComicLinkJSONRequestBody ¶
type AddComicLinkJSONRequestBody = NewComicLink
AddComicLinkJSONRequestBody defines body for AddComicLink for application/json ContentType.
type AddLanguageFormdataRequestBody ¶
type AddLanguageFormdataRequestBody = NewLanguage
AddLanguageFormdataRequestBody defines body for AddLanguage for application/x-www-form-urlencoded ContentType.
type AddLanguageJSONRequestBody ¶
type AddLanguageJSONRequestBody = NewLanguage
AddLanguageJSONRequestBody defines body for AddLanguage for application/json ContentType.
type AddLinkFormdataRequestBody ¶
type AddLinkFormdataRequestBody = NewLink
AddLinkFormdataRequestBody defines body for AddLink for application/x-www-form-urlencoded ContentType.
type AddLinkJSONRequestBody ¶
type AddLinkJSONRequestBody = NewLink
AddLinkJSONRequestBody defines body for AddLink for application/json ContentType.
type AddLinkTLLanguageFormdataRequestBody ¶
type AddLinkTLLanguageFormdataRequestBody = NewLinkTLLanguage
AddLinkTLLanguageFormdataRequestBody defines body for AddLinkTLLanguage for application/x-www-form-urlencoded ContentType.
type AddLinkTLLanguageJSONRequestBody ¶
type AddLinkTLLanguageJSONRequestBody = NewLinkTLLanguage
AddLinkTLLanguageJSONRequestBody defines body for AddLinkTLLanguage for application/json ContentType.
type AddWebsiteFormdataRequestBody ¶
type AddWebsiteFormdataRequestBody = NewWebsite
AddWebsiteFormdataRequestBody defines body for AddWebsite for application/x-www-form-urlencoded ContentType.
type AddWebsiteJSONRequestBody ¶
type AddWebsiteJSONRequestBody = NewWebsite
AddWebsiteJSONRequestBody defines body for AddWebsite for application/json ContentType.
type AddWebsiteTLLanguageFormdataRequestBody ¶
type AddWebsiteTLLanguageFormdataRequestBody = NewWebsiteTLLanguage
AddWebsiteTLLanguageFormdataRequestBody defines body for AddWebsiteTLLanguage for application/x-www-form-urlencoded ContentType.
type AddWebsiteTLLanguageJSONRequestBody ¶
type AddWebsiteTLLanguageJSONRequestBody = NewWebsiteTLLanguage
AddWebsiteTLLanguageJSONRequestBody defines body for AddWebsiteTLLanguage for application/json ContentType.
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type Comic ¶
type Comic struct { Chapters *[]ComicChapter `json:"chapters,omitempty"` Code string `json:"code"` CreatedAt time.Time `json:"createdAt"` ID uint `json:"id"` Links *[]Link `json:"links,omitempty"` UpdatedAt *time.Time `json:"updatedAt"` }
Comic defines model for Comic.
type ComicChapter ¶
type ComicChapter struct { Chapter string `json:"chapter"` CreatedAt time.Time `json:"createdAt"` ID uint `json:"id"` Links *[]Link `json:"links,omitempty"` ReleasedAt time.Time `json:"releasedAt"` UpdatedAt *time.Time `json:"updatedAt"` Version *string `json:"version"` }
ComicChapter defines model for ComicChapter.
type ComicChapterLink ¶
type ComicChapterLink struct { CreatedAt time.Time `json:"createdAt"` LinkID uint `json:"linkID"` LinkRelativeURL string `json:"linkRelativeURL"` LinkWebsiteDomain string `json:"linkWebsiteDomain"` UpdatedAt *time.Time `json:"updatedAt"` }
ComicChapterLink defines model for ComicChapterLink.
type ComicLink ¶
type ComicLink struct { CreatedAt time.Time `json:"createdAt"` LinkID uint `json:"linkID"` LinkRelativeURL string `json:"linkRelativeURL"` LinkWebsiteDomain string `json:"linkWebsiteDomain"` UpdatedAt *time.Time `json:"updatedAt"` }
ComicLink defines model for ComicLink.
type Error ¶
type Error struct { Error struct { Message string `json:"message"` Status string `json:"status"` } `json:"error"` }
Error defines model for Error.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type Language ¶
type Language struct { CreatedAt time.Time `json:"createdAt"` ID uint `json:"id"` IETF string `json:"ietf"` Name string `json:"name"` UpdatedAt *time.Time `json:"updatedAt"` }
Language defines model for Language.
type Link ¶
type Link struct { CreatedAt time.Time `json:"createdAt"` ID uint `json:"id"` MachineTL *bool `json:"machineTL"` RelativeURL string `json:"relativeURL"` TLLanguages *[]Language `json:"tlLanguages,omitempty"` UpdatedAt *time.Time `json:"updatedAt"` WebsiteDomain string `json:"websiteDomain"` WebsiteID uint `json:"websiteID"` }
Link defines model for Link.
type LinkTLLanguage ¶
type LinkTLLanguage struct { CreatedAt time.Time `json:"createdAt"` LanguageID uint `json:"languageID"` LanguageIETF string `json:"languageIETF"` UpdatedAt *time.Time `json:"updatedAt"` }
LinkTLLanguage defines model for LinkTLLanguage.
type ListComicChapterParams ¶
type ListComicChapterParams struct { // Page Page number of results. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Maximum number of results. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // OrderBy Sort results returned. OrderBy *[]string `form:"order_by,omitempty" json:"order_by,omitempty"` }
ListComicChapterParams defines parameters for ListComicChapter.
type ListComicParams ¶
type ListComicParams struct { // Page Page number of results. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Maximum number of results. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // OrderBy Sort results returned. OrderBy *[]string `form:"order_by,omitempty" json:"order_by,omitempty"` }
ListComicParams defines parameters for ListComic.
type ListLanguageParams ¶
type ListLanguageParams struct { // Page Page number of results. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Maximum number of results. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // OrderBy Sort results returned. OrderBy *[]string `form:"order_by,omitempty" json:"order_by,omitempty"` }
ListLanguageParams defines parameters for ListLanguage.
type ListLinkParams ¶
type ListLinkParams struct { // Page Page number of results. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Maximum number of results. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // OrderBy Sort results returned. OrderBy *[]string `form:"order_by,omitempty" json:"order_by,omitempty"` }
ListLinkParams defines parameters for ListLink.
type ListWebsiteParams ¶
type ListWebsiteParams struct { // Page Page number of results. Page *int `form:"page,omitempty" json:"page,omitempty"` // Limit Maximum number of results. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // OrderBy Sort results returned. OrderBy *[]string `form:"order_by,omitempty" json:"order_by,omitempty"` }
ListWebsiteParams defines parameters for ListWebsite.
type NewComic ¶
type NewComic struct {
Code string `form:"code" json:"code"`
}
NewComic defines model for NewComic.
type NewComicChapter ¶
type NewComicChapter struct { Chapter string `form:"chapter" json:"chapter"` ReleasedAt time.Time `form:"releasedAt" json:"releasedAt"` Version *string `form:"version" json:"version"` }
NewComicChapter defines model for NewComicChapter.
type NewComicChapterLink ¶
type NewComicChapterLink struct { LinkID *uint `form:"linkID" json:"linkID"` LinkRelativeURL *string `form:"linkRelativeURL" json:"linkRelativeURL"` LinkWebsiteDomain *string `form:"linkWebsiteDomain" json:"linkWebsiteDomain"` }
NewComicChapterLink defines model for NewComicChapterLink.
type NewComicLink ¶
type NewComicLink struct { LinkID *uint `form:"linkID" json:"linkID"` LinkRelativeURL *string `form:"linkRelativeURL" json:"linkRelativeURL"` LinkWebsiteDomain *string `form:"linkWebsiteDomain" json:"linkWebsiteDomain"` }
NewComicLink defines model for NewComicLink.
type NewLanguage ¶
type NewLanguage struct { IETF string `form:"ietf" json:"ietf"` Name string `form:"name" json:"name"` }
NewLanguage defines model for NewLanguage.
type NewLink ¶
type NewLink struct { MachineTL *bool `form:"machineTL" json:"machineTL"` RelativeURL string `form:"relativeURL" json:"relativeURL"` WebsiteDomain *string `form:"websiteDomain" json:"websiteDomain"` WebsiteID *uint `form:"websiteID" json:"websiteID"` }
NewLink defines model for NewLink.
type NewLinkTLLanguage ¶
type NewLinkTLLanguage struct { LanguageID *uint `form:"languageID" json:"languageID"` LanguageIETF *string `form:"languageIETF" json:"languageIETF"` }
NewLinkTLLanguage defines model for NewLinkTLLanguage.
type NewWebsite ¶
type NewWebsite struct { Domain string `form:"domain" json:"domain"` MachineTL *bool `form:"machineTL" json:"machineTL"` Name string `form:"name" json:"name"` }
NewWebsite defines model for NewWebsite.
type NewWebsiteTLLanguage ¶
type NewWebsiteTLLanguage struct { LanguageID *uint `form:"languageID" json:"languageID"` LanguageIETF *string `form:"languageIETF" json:"languageIETF"` }
NewWebsiteTLLanguage defines model for NewWebsiteTLLanguage.
type Object ¶
type Object struct { CreatedAt time.Time `json:"createdAt"` ID uint `json:"id"` UpdatedAt *time.Time `json:"updatedAt"` }
Object defines model for Object.
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 ServerInterface ¶
type ServerInterface interface { // List comic. // (GET /comics) ListComic(w http.ResponseWriter, r *http.Request, params ListComicParams) // Add comic. // (POST /comics) AddComic(w http.ResponseWriter, r *http.Request) // Delete comic. // (DELETE /comics/{code}) DeleteComic(w http.ResponseWriter, r *http.Request, code string) // Get comic. // (GET /comics/{code}) GetComic(w http.ResponseWriter, r *http.Request, code string) // Update comic. // (PATCH /comics/{code}) UpdateComic(w http.ResponseWriter, r *http.Request, code string) // List comic chapter. // (GET /comics/{code}/chapters) ListComicChapter(w http.ResponseWriter, r *http.Request, code string, params ListComicChapterParams) // Add comic chapter. // (POST /comics/{code}/chapters) AddComicChapter(w http.ResponseWriter, r *http.Request, code string) // Delete comic chapter. // (DELETE /comics/{code}/chapters/{cv}) DeleteComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string) // Get comic chapter. // (GET /comics/{code}/chapters/{cv}) GetComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string) // Update comic chapter. // (PATCH /comics/{code}/chapters/{cv}) UpdateComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string) // Add comic chapter link. // (POST /comics/{code}/chapters/{cv}/links) AddComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string) // Delete comic chapter link. // (DELETE /comics/{code}/chapters/{cv}/links/{websiteDomain}-{relativeURL}) DeleteComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, websiteDomain string, relativeURL string) // Get comic chapter link. // (GET /comics/{code}/chapters/{cv}/links/{websiteDomain}-{relativeURL}) GetComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, websiteDomain string, relativeURL string) // Update comic chapter link. // (PATCH /comics/{code}/chapters/{cv}/links/{websiteDomain}-{relativeURL}) UpdateComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, websiteDomain string, relativeURL string) // Add comic link. // (POST /comics/{code}/links) AddComicLink(w http.ResponseWriter, r *http.Request, code string) // Delete comic link. // (DELETE /comics/{code}/links/{websiteDomain}-{relativeURL}) DeleteComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, relativeURL string) // Get comic link. // (GET /comics/{code}/links/{websiteDomain}-{relativeURL}) GetComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, relativeURL string) // Update comic link. // (PATCH /comics/{code}/links/{websiteDomain}-{relativeURL}) UpdateComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, relativeURL string) // List language. // (GET /languages) ListLanguage(w http.ResponseWriter, r *http.Request, params ListLanguageParams) // Add language. // (POST /languages) AddLanguage(w http.ResponseWriter, r *http.Request) // Delete language. // (DELETE /languages/{ietf}) DeleteLanguage(w http.ResponseWriter, r *http.Request, ietf string) // Get language. // (GET /languages/{ietf}) GetLanguage(w http.ResponseWriter, r *http.Request, ietf string) // Update language. // (PATCH /languages/{ietf}) UpdateLanguage(w http.ResponseWriter, r *http.Request, ietf string) // List link. // (GET /links) ListLink(w http.ResponseWriter, r *http.Request, params ListLinkParams) // Add link. // (POST /links) AddLink(w http.ResponseWriter, r *http.Request) // Delete link. // (DELETE /links/{websiteDomain}-{relativeURL}) DeleteLink(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string) // Get link. // (GET /links/{websiteDomain}-{relativeURL}) GetLink(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string) // Update link. // (PATCH /links/{websiteDomain}-{relativeURL}) UpdateLink(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string) // Add link TL language. // (POST /links/{websiteDomain}-{relativeURL}/tl-languages) AddLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string) // Delete link TL language. // (DELETE /links/{websiteDomain}-{relativeURL}/tl-languages/{ietf}) DeleteLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string, ietf string) // Get link TL language. // (GET /links/{websiteDomain}-{relativeURL}/tl-languages/{ietf}) GetLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string, ietf string) // Update link TL language. // (PATCH /links/{websiteDomain}-{relativeURL}/tl-languages/{ietf}) UpdateLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string, ietf string) // List website. // (GET /websites) ListWebsite(w http.ResponseWriter, r *http.Request, params ListWebsiteParams) // Add website. // (POST /websites) AddWebsite(w http.ResponseWriter, r *http.Request) // Delete website. // (DELETE /websites/{domain}) DeleteWebsite(w http.ResponseWriter, r *http.Request, domain string) // Get website. // (GET /websites/{domain}) GetWebsite(w http.ResponseWriter, r *http.Request, domain string) // Update website. // (PATCH /websites/{domain}) UpdateWebsite(w http.ResponseWriter, r *http.Request, domain string) // Add website TL language. // (POST /websites/{domain}/tl-languages) AddWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string) // Delete website TL language. // (DELETE /websites/{domain}/tl-languages/{ietf}) DeleteWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string) // Get website TL language. // (GET /websites/{domain}/tl-languages/{ietf}) GetWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string) // Update website TL language. // (PATCH /websites/{domain}/tl-languages/{ietf}) UpdateWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string) }
ServerInterface represents all server handlers.
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) AddComic ¶
func (siw *ServerInterfaceWrapper) AddComic(w http.ResponseWriter, r *http.Request)
AddComic operation middleware
func (*ServerInterfaceWrapper) AddComicChapter ¶
func (siw *ServerInterfaceWrapper) AddComicChapter(w http.ResponseWriter, r *http.Request)
AddComicChapter operation middleware
func (*ServerInterfaceWrapper) AddComicChapterLink ¶
func (siw *ServerInterfaceWrapper) AddComicChapterLink(w http.ResponseWriter, r *http.Request)
AddComicChapterLink operation middleware
func (*ServerInterfaceWrapper) AddComicLink ¶
func (siw *ServerInterfaceWrapper) AddComicLink(w http.ResponseWriter, r *http.Request)
AddComicLink operation middleware
func (*ServerInterfaceWrapper) AddLanguage ¶
func (siw *ServerInterfaceWrapper) AddLanguage(w http.ResponseWriter, r *http.Request)
AddLanguage operation middleware
func (*ServerInterfaceWrapper) AddLink ¶
func (siw *ServerInterfaceWrapper) AddLink(w http.ResponseWriter, r *http.Request)
AddLink operation middleware
func (*ServerInterfaceWrapper) AddLinkTLLanguage ¶
func (siw *ServerInterfaceWrapper) AddLinkTLLanguage(w http.ResponseWriter, r *http.Request)
AddLinkTLLanguage operation middleware
func (*ServerInterfaceWrapper) AddWebsite ¶
func (siw *ServerInterfaceWrapper) AddWebsite(w http.ResponseWriter, r *http.Request)
AddWebsite operation middleware
func (*ServerInterfaceWrapper) AddWebsiteTLLanguage ¶
func (siw *ServerInterfaceWrapper) AddWebsiteTLLanguage(w http.ResponseWriter, r *http.Request)
AddWebsiteTLLanguage operation middleware
func (*ServerInterfaceWrapper) DeleteComic ¶
func (siw *ServerInterfaceWrapper) DeleteComic(w http.ResponseWriter, r *http.Request)
DeleteComic operation middleware
func (*ServerInterfaceWrapper) DeleteComicChapter ¶
func (siw *ServerInterfaceWrapper) DeleteComicChapter(w http.ResponseWriter, r *http.Request)
DeleteComicChapter operation middleware
func (*ServerInterfaceWrapper) DeleteComicChapterLink ¶
func (siw *ServerInterfaceWrapper) DeleteComicChapterLink(w http.ResponseWriter, r *http.Request)
DeleteComicChapterLink operation middleware
func (*ServerInterfaceWrapper) DeleteComicLink ¶
func (siw *ServerInterfaceWrapper) DeleteComicLink(w http.ResponseWriter, r *http.Request)
DeleteComicLink operation middleware
func (*ServerInterfaceWrapper) DeleteLanguage ¶
func (siw *ServerInterfaceWrapper) DeleteLanguage(w http.ResponseWriter, r *http.Request)
DeleteLanguage operation middleware
func (*ServerInterfaceWrapper) DeleteLink ¶
func (siw *ServerInterfaceWrapper) DeleteLink(w http.ResponseWriter, r *http.Request)
DeleteLink operation middleware
func (*ServerInterfaceWrapper) DeleteLinkTLLanguage ¶
func (siw *ServerInterfaceWrapper) DeleteLinkTLLanguage(w http.ResponseWriter, r *http.Request)
DeleteLinkTLLanguage operation middleware
func (*ServerInterfaceWrapper) DeleteWebsite ¶
func (siw *ServerInterfaceWrapper) DeleteWebsite(w http.ResponseWriter, r *http.Request)
DeleteWebsite operation middleware
func (*ServerInterfaceWrapper) DeleteWebsiteTLLanguage ¶
func (siw *ServerInterfaceWrapper) DeleteWebsiteTLLanguage(w http.ResponseWriter, r *http.Request)
DeleteWebsiteTLLanguage operation middleware
func (*ServerInterfaceWrapper) GetComic ¶
func (siw *ServerInterfaceWrapper) GetComic(w http.ResponseWriter, r *http.Request)
GetComic operation middleware
func (*ServerInterfaceWrapper) GetComicChapter ¶
func (siw *ServerInterfaceWrapper) GetComicChapter(w http.ResponseWriter, r *http.Request)
GetComicChapter operation middleware
func (*ServerInterfaceWrapper) GetComicChapterLink ¶
func (siw *ServerInterfaceWrapper) GetComicChapterLink(w http.ResponseWriter, r *http.Request)
GetComicChapterLink operation middleware
func (*ServerInterfaceWrapper) GetComicLink ¶
func (siw *ServerInterfaceWrapper) GetComicLink(w http.ResponseWriter, r *http.Request)
GetComicLink operation middleware
func (*ServerInterfaceWrapper) GetLanguage ¶
func (siw *ServerInterfaceWrapper) GetLanguage(w http.ResponseWriter, r *http.Request)
GetLanguage operation middleware
func (*ServerInterfaceWrapper) GetLink ¶
func (siw *ServerInterfaceWrapper) GetLink(w http.ResponseWriter, r *http.Request)
GetLink operation middleware
func (*ServerInterfaceWrapper) GetLinkTLLanguage ¶
func (siw *ServerInterfaceWrapper) GetLinkTLLanguage(w http.ResponseWriter, r *http.Request)
GetLinkTLLanguage operation middleware
func (*ServerInterfaceWrapper) GetWebsite ¶
func (siw *ServerInterfaceWrapper) GetWebsite(w http.ResponseWriter, r *http.Request)
GetWebsite operation middleware
func (*ServerInterfaceWrapper) GetWebsiteTLLanguage ¶
func (siw *ServerInterfaceWrapper) GetWebsiteTLLanguage(w http.ResponseWriter, r *http.Request)
GetWebsiteTLLanguage operation middleware
func (*ServerInterfaceWrapper) ListComic ¶
func (siw *ServerInterfaceWrapper) ListComic(w http.ResponseWriter, r *http.Request)
ListComic operation middleware
func (*ServerInterfaceWrapper) ListComicChapter ¶
func (siw *ServerInterfaceWrapper) ListComicChapter(w http.ResponseWriter, r *http.Request)
ListComicChapter operation middleware
func (*ServerInterfaceWrapper) ListLanguage ¶
func (siw *ServerInterfaceWrapper) ListLanguage(w http.ResponseWriter, r *http.Request)
ListLanguage operation middleware
func (*ServerInterfaceWrapper) ListLink ¶
func (siw *ServerInterfaceWrapper) ListLink(w http.ResponseWriter, r *http.Request)
ListLink operation middleware
func (*ServerInterfaceWrapper) ListWebsite ¶
func (siw *ServerInterfaceWrapper) ListWebsite(w http.ResponseWriter, r *http.Request)
ListWebsite operation middleware
func (*ServerInterfaceWrapper) UpdateComic ¶
func (siw *ServerInterfaceWrapper) UpdateComic(w http.ResponseWriter, r *http.Request)
UpdateComic operation middleware
func (*ServerInterfaceWrapper) UpdateComicChapter ¶
func (siw *ServerInterfaceWrapper) UpdateComicChapter(w http.ResponseWriter, r *http.Request)
UpdateComicChapter operation middleware
func (*ServerInterfaceWrapper) UpdateComicChapterLink ¶
func (siw *ServerInterfaceWrapper) UpdateComicChapterLink(w http.ResponseWriter, r *http.Request)
UpdateComicChapterLink operation middleware
func (*ServerInterfaceWrapper) UpdateComicLink ¶
func (siw *ServerInterfaceWrapper) UpdateComicLink(w http.ResponseWriter, r *http.Request)
UpdateComicLink operation middleware
func (*ServerInterfaceWrapper) UpdateLanguage ¶
func (siw *ServerInterfaceWrapper) UpdateLanguage(w http.ResponseWriter, r *http.Request)
UpdateLanguage operation middleware
func (*ServerInterfaceWrapper) UpdateLink ¶
func (siw *ServerInterfaceWrapper) UpdateLink(w http.ResponseWriter, r *http.Request)
UpdateLink operation middleware
func (*ServerInterfaceWrapper) UpdateLinkTLLanguage ¶
func (siw *ServerInterfaceWrapper) UpdateLinkTLLanguage(w http.ResponseWriter, r *http.Request)
UpdateLinkTLLanguage operation middleware
func (*ServerInterfaceWrapper) UpdateWebsite ¶
func (siw *ServerInterfaceWrapper) UpdateWebsite(w http.ResponseWriter, r *http.Request)
UpdateWebsite operation middleware
func (*ServerInterfaceWrapper) UpdateWebsiteTLLanguage ¶
func (siw *ServerInterfaceWrapper) UpdateWebsiteTLLanguage(w http.ResponseWriter, r *http.Request)
UpdateWebsiteTLLanguage operation middleware
type Service ¶
type Service interface { AddLanguage(ctx context.Context, data model.AddLanguage, v *model.Language) error GetLanguageByID(ctx context.Context, id uint) (*model.Language, error) GetLanguageByIETF(ctx context.Context, ietf string) (*model.Language, error) UpdateLanguageByIETF(ctx context.Context, ietf string, data model.SetLanguage, v *model.Language) error DeleteLanguageByIETF(ctx context.Context, ietf string) error ListLanguage(ctx context.Context, params model.ListParams) ([]*model.Language, error) CountLanguage(ctx context.Context, conds any) (int, error) AddWebsite(ctx context.Context, data model.AddWebsite, v *model.Website) error GetWebsiteByDomain(ctx context.Context, domain string) (*model.Website, error) UpdateWebsiteByDomain(ctx context.Context, domain string, data model.SetWebsite, v *model.Website) error DeleteWebsiteByDomain(ctx context.Context, domain string) error ListWebsite(ctx context.Context, params model.ListParams) ([]*model.Website, error) CountWebsite(ctx context.Context, conds any) (int, error) AddWebsiteTLLanguage(ctx context.Context, data model.AddWebsiteTLLanguage, v *model.WebsiteTLLanguage) error GetWebsiteTLLanguageBySID(ctx context.Context, sid model.WebsiteTLLanguageSID) (*model.WebsiteTLLanguage, error) UpdateWebsiteTLLanguageBySID(ctx context.Context, sid model.WebsiteTLLanguageSID, data model.SetWebsiteTLLanguage, v *model.WebsiteTLLanguage) error DeleteWebsiteTLLanguageBySID(ctx context.Context, sid model.WebsiteTLLanguageSID) error AddLink(ctx context.Context, data model.AddLink, v *model.Link) error GetLinkBySID(ctx context.Context, sid model.LinkSID) (*model.Link, error) UpdateLinkBySID(ctx context.Context, sid model.LinkSID, data model.SetLink, v *model.Link) error DeleteLinkBySID(ctx context.Context, sid model.LinkSID) error ListLink(ctx context.Context, params model.ListParams) ([]*model.Link, error) CountLink(ctx context.Context, conds any) (int, error) AddLinkTLLanguage(ctx context.Context, data model.AddLinkTLLanguage, v *model.LinkTLLanguage) error GetLinkTLLanguageBySID(ctx context.Context, sid model.LinkTLLanguageSID) (*model.LinkTLLanguage, error) UpdateLinkTLLanguageBySID(ctx context.Context, sid model.LinkTLLanguageSID, data model.SetLinkTLLanguage, v *model.LinkTLLanguage) error DeleteLinkTLLanguageBySID(ctx context.Context, sid model.LinkTLLanguageSID) error // Comic AddComic(ctx context.Context, data model.AddComic, v *model.Comic) error GetComicByCode(ctx context.Context, code string) (*model.Comic, error) UpdateComicByCode(ctx context.Context, code string, data model.SetComic, v *model.Comic) error DeleteComicByCode(ctx context.Context, code string) error ListComic(ctx context.Context, params model.ListParams) ([]*model.Comic, error) CountComic(ctx context.Context, conds any) (int, error) ExistsComicByCode(ctx context.Context, code string) (bool, error) AddComicLink(ctx context.Context, data model.AddComicLink, v *model.ComicLink) error GetComicLinkBySID(ctx context.Context, sid model.ComicLinkSID) (*model.ComicLink, error) UpdateComicLinkBySID(ctx context.Context, sid model.ComicLinkSID, data model.SetComicLink, v *model.ComicLink) error DeleteComicLinkBySID(ctx context.Context, sid model.ComicLinkSID) error // Comic Chapter AddComicChapter(ctx context.Context, data model.AddComicChapter, v *model.ComicChapter) error GetComicChapterBySID(ctx context.Context, sid model.ComicChapterSID) (*model.ComicChapter, error) UpdateComicChapterBySID(ctx context.Context, sid model.ComicChapterSID, data model.SetComicChapter, v *model.ComicChapter) error DeleteComicChapterBySID(ctx context.Context, sid model.ComicChapterSID) error ListComicChapter(ctx context.Context, params model.ListParams) ([]*model.ComicChapter, error) CountComicChapter(ctx context.Context, conds any) (int, error) ExistsComicChapterBySID(ctx context.Context, sid model.ComicChapterSID) (bool, error) AddComicChapterLink(ctx context.Context, data model.AddComicChapterLink, v *model.ComicChapterLink) error GetComicChapterLinkBySID(ctx context.Context, sid model.ComicChapterLinkSID) (*model.ComicChapterLink, error) UpdateComicChapterLinkBySID(ctx context.Context, sid model.ComicChapterLinkSID, data model.SetComicChapterLink, v *model.ComicChapterLink) error DeleteComicChapterLinkBySID(ctx context.Context, sid model.ComicChapterLinkSID) error }
type SetComic ¶
type SetComic struct {
Code *string `form:"code" json:"code"`
}
SetComic defines model for SetComic.
type SetComicChapter ¶
type SetComicChapter struct { Chapter *string `form:"chapter" json:"chapter"` ReleasedAt *time.Time `form:"releasedAt" json:"releasedAt"` SetNull []string `form:"setNull,omitempty" json:"setNull,omitempty"` Version *string `form:"version" json:"version"` }
SetComicChapter defines model for SetComicChapter.
type SetComicChapterLink ¶
type SetComicChapterLink struct { LinkID *uint `form:"linkID" json:"linkID"` LinkRelativeURL *string `form:"linkRelativeURL" json:"linkRelativeURL"` LinkWebsiteDomain *string `form:"linkWebsiteDomain" json:"linkWebsiteDomain"` }
SetComicChapterLink defines model for SetComicChapterLink.
type SetComicLink ¶
type SetComicLink struct { LinkID *uint `form:"linkID" json:"linkID"` LinkRelativeURL *string `form:"linkRelativeURL" json:"linkRelativeURL"` LinkWebsiteDomain *string `form:"linkWebsiteDomain" json:"linkWebsiteDomain"` }
SetComicLink defines model for SetComicLink.
type SetLanguage ¶
type SetLanguage struct { IETF *string `form:"ietf" json:"ietf"` Name *string `form:"name" json:"name"` }
SetLanguage defines model for SetLanguage.
type SetLink ¶
type SetLink struct { MachineTL *bool `form:"machineTL" json:"machineTL"` RelativeURL *string `form:"relativeURL" json:"relativeURL"` SetNull []string `form:"setNull,omitempty" json:"setNull,omitempty"` WebsiteDomain *string `form:"websiteDomain" json:"websiteDomain"` WebsiteID *uint `form:"websiteID" json:"websiteID"` }
SetLink defines model for SetLink.
type SetLinkTLLanguage ¶
type SetLinkTLLanguage struct { LanguageID *uint `form:"languageID" json:"languageID"` LanguageIETF *string `form:"languageIETF" json:"languageIETF"` }
SetLinkTLLanguage defines model for SetLinkTLLanguage.
type SetWebsite ¶
type SetWebsite struct { Domain *string `form:"domain" json:"domain"` MachineTL *bool `form:"machineTL" json:"machineTL"` Name *string `form:"name" json:"name"` }
SetWebsite defines model for SetWebsite.
type SetWebsiteTLLanguage ¶
type SetWebsiteTLLanguage struct { LanguageID *uint `form:"languageID" json:"languageID"` LanguageIETF *string `form:"languageIETF" json:"languageIETF"` }
SetWebsiteTLLanguage defines model for SetWebsiteTLLanguage.
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) AddComic ¶
func (_ Unimplemented) AddComic(w http.ResponseWriter, r *http.Request)
Add comic. (POST /comics)
func (Unimplemented) AddComicChapter ¶
func (_ Unimplemented) AddComicChapter(w http.ResponseWriter, r *http.Request, code string)
Add comic chapter. (POST /comics/{code}/chapters)
func (Unimplemented) AddComicChapterLink ¶
func (_ Unimplemented) AddComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string)
Add comic chapter link. (POST /comics/{code}/chapters/{cv}/links)
func (Unimplemented) AddComicLink ¶
func (_ Unimplemented) AddComicLink(w http.ResponseWriter, r *http.Request, code string)
Add comic link. (POST /comics/{code}/links)
func (Unimplemented) AddLanguage ¶
func (_ Unimplemented) AddLanguage(w http.ResponseWriter, r *http.Request)
Add language. (POST /languages)
func (Unimplemented) AddLink ¶
func (_ Unimplemented) AddLink(w http.ResponseWriter, r *http.Request)
Add link. (POST /links)
func (Unimplemented) AddLinkTLLanguage ¶
func (_ Unimplemented) AddLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string)
Add link TL language. (POST /links/{websiteDomain}-{relativeURL}/tl-languages)
func (Unimplemented) AddWebsite ¶
func (_ Unimplemented) AddWebsite(w http.ResponseWriter, r *http.Request)
Add website. (POST /websites)
func (Unimplemented) AddWebsiteTLLanguage ¶
func (_ Unimplemented) AddWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string)
Add website TL language. (POST /websites/{domain}/tl-languages)
func (Unimplemented) DeleteComic ¶
func (_ Unimplemented) DeleteComic(w http.ResponseWriter, r *http.Request, code string)
Delete comic. (DELETE /comics/{code})
func (Unimplemented) DeleteComicChapter ¶
func (_ Unimplemented) DeleteComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string)
Delete comic chapter. (DELETE /comics/{code}/chapters/{cv})
func (Unimplemented) DeleteComicChapterLink ¶
func (_ Unimplemented) DeleteComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, websiteDomain string, relativeURL string)
Delete comic chapter link. (DELETE /comics/{code}/chapters/{cv}/links/{websiteDomain}-{relativeURL})
func (Unimplemented) DeleteComicLink ¶
func (_ Unimplemented) DeleteComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, relativeURL string)
Delete comic link. (DELETE /comics/{code}/links/{websiteDomain}-{relativeURL})
func (Unimplemented) DeleteLanguage ¶
func (_ Unimplemented) DeleteLanguage(w http.ResponseWriter, r *http.Request, ietf string)
Delete language. (DELETE /languages/{ietf})
func (Unimplemented) DeleteLink ¶
func (_ Unimplemented) DeleteLink(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string)
Delete link. (DELETE /links/{websiteDomain}-{relativeURL})
func (Unimplemented) DeleteLinkTLLanguage ¶
func (_ Unimplemented) DeleteLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string, ietf string)
Delete link TL language. (DELETE /links/{websiteDomain}-{relativeURL}/tl-languages/{ietf})
func (Unimplemented) DeleteWebsite ¶
func (_ Unimplemented) DeleteWebsite(w http.ResponseWriter, r *http.Request, domain string)
Delete website. (DELETE /websites/{domain})
func (Unimplemented) DeleteWebsiteTLLanguage ¶
func (_ Unimplemented) DeleteWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string)
Delete website TL language. (DELETE /websites/{domain}/tl-languages/{ietf})
func (Unimplemented) GetComic ¶
func (_ Unimplemented) GetComic(w http.ResponseWriter, r *http.Request, code string)
Get comic. (GET /comics/{code})
func (Unimplemented) GetComicChapter ¶
func (_ Unimplemented) GetComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string)
Get comic chapter. (GET /comics/{code}/chapters/{cv})
func (Unimplemented) GetComicChapterLink ¶
func (_ Unimplemented) GetComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, websiteDomain string, relativeURL string)
Get comic chapter link. (GET /comics/{code}/chapters/{cv}/links/{websiteDomain}-{relativeURL})
func (Unimplemented) GetComicLink ¶
func (_ Unimplemented) GetComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, relativeURL string)
Get comic link. (GET /comics/{code}/links/{websiteDomain}-{relativeURL})
func (Unimplemented) GetLanguage ¶
func (_ Unimplemented) GetLanguage(w http.ResponseWriter, r *http.Request, ietf string)
Get language. (GET /languages/{ietf})
func (Unimplemented) GetLink ¶
func (_ Unimplemented) GetLink(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string)
Get link. (GET /links/{websiteDomain}-{relativeURL})
func (Unimplemented) GetLinkTLLanguage ¶
func (_ Unimplemented) GetLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string, ietf string)
Get link TL language. (GET /links/{websiteDomain}-{relativeURL}/tl-languages/{ietf})
func (Unimplemented) GetWebsite ¶
func (_ Unimplemented) GetWebsite(w http.ResponseWriter, r *http.Request, domain string)
Get website. (GET /websites/{domain})
func (Unimplemented) GetWebsiteTLLanguage ¶
func (_ Unimplemented) GetWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string)
Get website TL language. (GET /websites/{domain}/tl-languages/{ietf})
func (Unimplemented) ListComic ¶
func (_ Unimplemented) ListComic(w http.ResponseWriter, r *http.Request, params ListComicParams)
List comic. (GET /comics)
func (Unimplemented) ListComicChapter ¶
func (_ Unimplemented) ListComicChapter(w http.ResponseWriter, r *http.Request, code string, params ListComicChapterParams)
List comic chapter. (GET /comics/{code}/chapters)
func (Unimplemented) ListLanguage ¶
func (_ Unimplemented) ListLanguage(w http.ResponseWriter, r *http.Request, params ListLanguageParams)
List language. (GET /languages)
func (Unimplemented) ListLink ¶
func (_ Unimplemented) ListLink(w http.ResponseWriter, r *http.Request, params ListLinkParams)
List link. (GET /links)
func (Unimplemented) ListWebsite ¶
func (_ Unimplemented) ListWebsite(w http.ResponseWriter, r *http.Request, params ListWebsiteParams)
List website. (GET /websites)
func (Unimplemented) UpdateComic ¶
func (_ Unimplemented) UpdateComic(w http.ResponseWriter, r *http.Request, code string)
Update comic. (PATCH /comics/{code})
func (Unimplemented) UpdateComicChapter ¶
func (_ Unimplemented) UpdateComicChapter(w http.ResponseWriter, r *http.Request, code string, cv string)
Update comic chapter. (PATCH /comics/{code}/chapters/{cv})
func (Unimplemented) UpdateComicChapterLink ¶
func (_ Unimplemented) UpdateComicChapterLink(w http.ResponseWriter, r *http.Request, code string, cv string, websiteDomain string, relativeURL string)
Update comic chapter link. (PATCH /comics/{code}/chapters/{cv}/links/{websiteDomain}-{relativeURL})
func (Unimplemented) UpdateComicLink ¶
func (_ Unimplemented) UpdateComicLink(w http.ResponseWriter, r *http.Request, code string, websiteDomain string, relativeURL string)
Update comic link. (PATCH /comics/{code}/links/{websiteDomain}-{relativeURL})
func (Unimplemented) UpdateLanguage ¶
func (_ Unimplemented) UpdateLanguage(w http.ResponseWriter, r *http.Request, ietf string)
Update language. (PATCH /languages/{ietf})
func (Unimplemented) UpdateLink ¶
func (_ Unimplemented) UpdateLink(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string)
Update link. (PATCH /links/{websiteDomain}-{relativeURL})
func (Unimplemented) UpdateLinkTLLanguage ¶
func (_ Unimplemented) UpdateLinkTLLanguage(w http.ResponseWriter, r *http.Request, websiteDomain string, relativeURL string, ietf string)
Update link TL language. (PATCH /links/{websiteDomain}-{relativeURL}/tl-languages/{ietf})
func (Unimplemented) UpdateWebsite ¶
func (_ Unimplemented) UpdateWebsite(w http.ResponseWriter, r *http.Request, domain string)
Update website. (PATCH /websites/{domain})
func (Unimplemented) UpdateWebsiteTLLanguage ¶
func (_ Unimplemented) UpdateWebsiteTLLanguage(w http.ResponseWriter, r *http.Request, domain string, ietf string)
Update website TL language. (PATCH /websites/{domain}/tl-languages/{ietf})
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateComicChapterFormdataRequestBody ¶
type UpdateComicChapterFormdataRequestBody = SetComicChapter
UpdateComicChapterFormdataRequestBody defines body for UpdateComicChapter for application/x-www-form-urlencoded ContentType.
type UpdateComicChapterJSONRequestBody ¶
type UpdateComicChapterJSONRequestBody = SetComicChapter
UpdateComicChapterJSONRequestBody defines body for UpdateComicChapter for application/json ContentType.
type UpdateComicChapterLinkFormdataRequestBody ¶
type UpdateComicChapterLinkFormdataRequestBody = SetComicChapterLink
UpdateComicChapterLinkFormdataRequestBody defines body for UpdateComicChapterLink for application/x-www-form-urlencoded ContentType.
type UpdateComicChapterLinkJSONRequestBody ¶
type UpdateComicChapterLinkJSONRequestBody = SetComicChapterLink
UpdateComicChapterLinkJSONRequestBody defines body for UpdateComicChapterLink for application/json ContentType.
type UpdateComicFormdataRequestBody ¶
type UpdateComicFormdataRequestBody = SetComic
UpdateComicFormdataRequestBody defines body for UpdateComic for application/x-www-form-urlencoded ContentType.
type UpdateComicJSONRequestBody ¶
type UpdateComicJSONRequestBody = SetComic
UpdateComicJSONRequestBody defines body for UpdateComic for application/json ContentType.
type UpdateComicLinkFormdataRequestBody ¶
type UpdateComicLinkFormdataRequestBody = SetComicLink
UpdateComicLinkFormdataRequestBody defines body for UpdateComicLink for application/x-www-form-urlencoded ContentType.
type UpdateComicLinkJSONRequestBody ¶
type UpdateComicLinkJSONRequestBody = SetComicLink
UpdateComicLinkJSONRequestBody defines body for UpdateComicLink for application/json ContentType.
type UpdateLanguageFormdataRequestBody ¶
type UpdateLanguageFormdataRequestBody = SetLanguage
UpdateLanguageFormdataRequestBody defines body for UpdateLanguage for application/x-www-form-urlencoded ContentType.
type UpdateLanguageJSONRequestBody ¶
type UpdateLanguageJSONRequestBody = SetLanguage
UpdateLanguageJSONRequestBody defines body for UpdateLanguage for application/json ContentType.
type UpdateLinkFormdataRequestBody ¶
type UpdateLinkFormdataRequestBody = SetLink
UpdateLinkFormdataRequestBody defines body for UpdateLink for application/x-www-form-urlencoded ContentType.
type UpdateLinkJSONRequestBody ¶
type UpdateLinkJSONRequestBody = SetLink
UpdateLinkJSONRequestBody defines body for UpdateLink for application/json ContentType.
type UpdateLinkTLLanguageFormdataRequestBody ¶
type UpdateLinkTLLanguageFormdataRequestBody = SetLinkTLLanguage
UpdateLinkTLLanguageFormdataRequestBody defines body for UpdateLinkTLLanguage for application/x-www-form-urlencoded ContentType.
type UpdateLinkTLLanguageJSONRequestBody ¶
type UpdateLinkTLLanguageJSONRequestBody = SetLinkTLLanguage
UpdateLinkTLLanguageJSONRequestBody defines body for UpdateLinkTLLanguage for application/json ContentType.
type UpdateWebsiteFormdataRequestBody ¶
type UpdateWebsiteFormdataRequestBody = SetWebsite
UpdateWebsiteFormdataRequestBody defines body for UpdateWebsite for application/x-www-form-urlencoded ContentType.
type UpdateWebsiteJSONRequestBody ¶
type UpdateWebsiteJSONRequestBody = SetWebsite
UpdateWebsiteJSONRequestBody defines body for UpdateWebsite for application/json ContentType.
type UpdateWebsiteTLLanguageFormdataRequestBody ¶
type UpdateWebsiteTLLanguageFormdataRequestBody = SetWebsiteTLLanguage
UpdateWebsiteTLLanguageFormdataRequestBody defines body for UpdateWebsiteTLLanguage for application/x-www-form-urlencoded ContentType.
type UpdateWebsiteTLLanguageJSONRequestBody ¶
type UpdateWebsiteTLLanguageJSONRequestBody = SetWebsiteTLLanguage
UpdateWebsiteTLLanguageJSONRequestBody defines body for UpdateWebsiteTLLanguage for application/json ContentType.
type Website ¶
type Website struct { CreatedAt time.Time `json:"createdAt"` Domain string `json:"domain"` ID uint `json:"id"` MachineTL *bool `json:"machineTL"` Name string `json:"name"` TLLanguages *[]Language `json:"tlLanguages,omitempty"` UpdatedAt *time.Time `json:"updatedAt"` }
Website defines model for Website.