Documentation
¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- Constants
- 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 NewV1APIVersionRequest(server string) (*http.Request, error)
- func NewV1AuthRefreshRequest(server string, params *V1AuthRefreshParams) (*http.Request, error)
- func NewV1AuthResignRequest(server string, body V1AuthResignJSONRequestBody) (*http.Request, error)
- func NewV1AuthResignRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewV1AuthSignInRequest(server string, body V1AuthSignInJSONRequestBody) (*http.Request, error)
- func NewV1AuthSignInRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewV1AuthSignOutRequest(server string) (*http.Request, error)
- func NewV1AuthSignUpRequest(server string, body V1AuthSignUpJSONRequestBody) (*http.Request, error)
- func NewV1AuthSignUpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewV1AuthVerifyRequest(server string) (*http.Request, error)
- func NewV1CoreVersionRequest(server string) (*http.Request, error)
- func NewV1HealthRequest(server string) (*http.Request, error)
- func NewV1ListArticlesRequest(server string, params *V1ListArticlesParams) (*http.Request, error)
- func NewV1SignRequest(server string, params *V1SignParams) (*http.Request, error)
- type Article
- type ChiServerOptions
- type Client
- func (c *Client) V1APIVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1AuthRefresh(ctx context.Context, params *V1AuthRefreshParams, ...) (*http.Response, error)
- func (c *Client) V1AuthResign(ctx context.Context, body V1AuthResignJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) V1AuthResignWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) V1AuthSignIn(ctx context.Context, body V1AuthSignInJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) V1AuthSignInWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) V1AuthSignOut(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1AuthSignUp(ctx context.Context, body V1AuthSignUpJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) V1AuthSignUpWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) V1AuthVerify(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1CoreVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1ListArticles(ctx context.Context, params *V1ListArticlesParams, ...) (*http.Response, error)
- func (c *Client) V1Sign(ctx context.Context, params *V1SignParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) V1APIVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1APIVersionResponse, error)
- func (c *ClientWithResponses) V1AuthRefreshWithResponse(ctx context.Context, params *V1AuthRefreshParams, ...) (*V1AuthRefreshResponse, error)
- func (c *ClientWithResponses) V1AuthResignWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*V1AuthResignResponse, error)
- func (c *ClientWithResponses) V1AuthResignWithResponse(ctx context.Context, body V1AuthResignJSONRequestBody, ...) (*V1AuthResignResponse, error)
- func (c *ClientWithResponses) V1AuthSignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*V1AuthSignInResponse, error)
- func (c *ClientWithResponses) V1AuthSignInWithResponse(ctx context.Context, body V1AuthSignInJSONRequestBody, ...) (*V1AuthSignInResponse, error)
- func (c *ClientWithResponses) V1AuthSignOutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1AuthSignOutResponse, error)
- func (c *ClientWithResponses) V1AuthSignUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*V1AuthSignUpResponse, error)
- func (c *ClientWithResponses) V1AuthSignUpWithResponse(ctx context.Context, body V1AuthSignUpJSONRequestBody, ...) (*V1AuthSignUpResponse, error)
- func (c *ClientWithResponses) V1AuthVerifyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1AuthVerifyResponse, error)
- func (c *ClientWithResponses) V1CoreVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1CoreVersionResponse, error)
- func (c *ClientWithResponses) V1HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1HealthResponse, error)
- func (c *ClientWithResponses) V1ListArticlesWithResponse(ctx context.Context, params *V1ListArticlesParams, ...) (*V1ListArticlesResponse, error)
- func (c *ClientWithResponses) V1SignWithResponse(ctx context.Context, params *V1SignParams, reqEditors ...RequestEditorFn) (*V1SignResponse, error)
- type ClientWithResponsesInterface
- type HttpRequestDoer
- type InvalidParamFormatError
- type MiddlewareFunc
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) V1APIVersion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1AuthRefresh(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1AuthResign(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1AuthSignIn(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1AuthSignOut(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1AuthSignUp(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1AuthVerify(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1CoreVersion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1Health(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1ListArticles(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) V1Sign(w http.ResponseWriter, r *http.Request)
- type TooManyValuesForParamError
- type UnauthorizedResponseSchema
- type UnescapedCookieParamError
- type UnmarshallingParamError
- type V1APIVersionResponse
- type V1ArticleListResponseSchema
- type V1AuthRefreshParams
- type V1AuthRefreshResponse
- type V1AuthRefreshResponseSchema
- type V1AuthResignJSONBody
- type V1AuthResignJSONRequestBody
- type V1AuthResignResponse
- type V1AuthSignInJSONRequestBody
- type V1AuthSignInRequestSchema
- type V1AuthSignInResponse
- type V1AuthSignInResponseSchema
- type V1AuthSignOutResponse
- type V1AuthSignUpJSONRequestBody
- type V1AuthSignUpRequestSchema
- type V1AuthSignUpResponse
- type V1AuthVerifyResponse
- type V1CoreVersionResponse
- type V1HealthResponse
- type V1ListArticlesParams
- type V1ListArticlesResponse
- type V1SignParams
- type V1SignResponse
Constants ¶
const ( ApiKeyScopes = "apiKey.Scopes" IdTokenScopes = "idToken.Scopes" SessionTokenScopes = "sessionToken.Scopes" )
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
func NewV1APIVersionRequest ¶
NewV1APIVersionRequest generates requests for V1APIVersion
func NewV1AuthRefreshRequest ¶
func NewV1AuthRefreshRequest(server string, params *V1AuthRefreshParams) (*http.Request, error)
NewV1AuthRefreshRequest generates requests for V1AuthRefresh
func NewV1AuthResignRequest ¶
func NewV1AuthResignRequest(server string, body V1AuthResignJSONRequestBody) (*http.Request, error)
NewV1AuthResignRequest calls the generic V1AuthResign builder with application/json body
func NewV1AuthResignRequestWithBody ¶
func NewV1AuthResignRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewV1AuthResignRequestWithBody generates requests for V1AuthResign with any type of body
func NewV1AuthSignInRequest ¶
func NewV1AuthSignInRequest(server string, body V1AuthSignInJSONRequestBody) (*http.Request, error)
NewV1AuthSignInRequest calls the generic V1AuthSignIn builder with application/json body
func NewV1AuthSignInRequestWithBody ¶
func NewV1AuthSignInRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewV1AuthSignInRequestWithBody generates requests for V1AuthSignIn with any type of body
func NewV1AuthSignOutRequest ¶
NewV1AuthSignOutRequest generates requests for V1AuthSignOut
func NewV1AuthSignUpRequest ¶
func NewV1AuthSignUpRequest(server string, body V1AuthSignUpJSONRequestBody) (*http.Request, error)
NewV1AuthSignUpRequest calls the generic V1AuthSignUp builder with application/json body
func NewV1AuthSignUpRequestWithBody ¶
func NewV1AuthSignUpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewV1AuthSignUpRequestWithBody generates requests for V1AuthSignUp with any type of body
func NewV1AuthVerifyRequest ¶
NewV1AuthVerifyRequest generates requests for V1AuthVerify
func NewV1CoreVersionRequest ¶
NewV1CoreVersionRequest generates requests for V1CoreVersion
func NewV1HealthRequest ¶
NewV1HealthRequest generates requests for V1Health
func NewV1ListArticlesRequest ¶
func NewV1ListArticlesRequest(server string, params *V1ListArticlesParams) (*http.Request, error)
NewV1ListArticlesRequest generates requests for V1ListArticles
func NewV1SignRequest ¶
func NewV1SignRequest(server string, params *V1SignParams) (*http.Request, error)
NewV1SignRequest generates requests for V1Sign
Types ¶
type Article ¶
type Article struct { // Description description Description *string `json:"description,omitempty"` // Id id Id openapi_types.UUID `json:"id"` // Tags タグ Tags *[]string `json:"tags,omitempty"` // Thumbnail サムネイルのURL Thumbnail *string `json:"thumbnail,omitempty"` // Title タイトル Title *string `json:"title,omitempty"` // Url 記事のURL Url string `json:"url"` }
Article defines model for Article.
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) V1APIVersion ¶
func (*Client) V1AuthRefresh ¶
func (c *Client) V1AuthRefresh(ctx context.Context, params *V1AuthRefreshParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) V1AuthResign ¶
func (c *Client) V1AuthResign(ctx context.Context, body V1AuthResignJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) V1AuthResignWithBody ¶
func (*Client) V1AuthSignIn ¶
func (c *Client) V1AuthSignIn(ctx context.Context, body V1AuthSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) V1AuthSignInWithBody ¶
func (*Client) V1AuthSignOut ¶
func (*Client) V1AuthSignUp ¶
func (c *Client) V1AuthSignUp(ctx context.Context, body V1AuthSignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) V1AuthSignUpWithBody ¶
func (*Client) V1AuthVerify ¶
func (*Client) V1CoreVersion ¶
func (*Client) V1ListArticles ¶
func (c *Client) V1ListArticles(ctx context.Context, params *V1ListArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) V1Sign ¶
func (c *Client) V1Sign(ctx context.Context, params *V1SignParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // V1ListArticles request V1ListArticles(ctx context.Context, params *V1ListArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // V1AuthResign request with any body V1AuthResignWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) V1AuthResign(ctx context.Context, body V1AuthResignJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // V1AuthRefresh request V1AuthRefresh(ctx context.Context, params *V1AuthRefreshParams, reqEditors ...RequestEditorFn) (*http.Response, error) // V1AuthSignIn request with any body V1AuthSignInWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) V1AuthSignIn(ctx context.Context, body V1AuthSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // V1AuthSignOut request V1AuthSignOut(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // V1AuthSignUp request with any body V1AuthSignUpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) V1AuthSignUp(ctx context.Context, body V1AuthSignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // V1AuthVerify request V1AuthVerify(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // V1Health request V1Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // V1Sign request V1Sign(ctx context.Context, params *V1SignParams, reqEditors ...RequestEditorFn) (*http.Response, error) // V1APIVersion request V1APIVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // V1CoreVersion request V1CoreVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) V1APIVersionWithResponse ¶
func (c *ClientWithResponses) V1APIVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1APIVersionResponse, error)
V1APIVersionWithResponse request returning *V1APIVersionResponse
func (*ClientWithResponses) V1AuthRefreshWithResponse ¶
func (c *ClientWithResponses) V1AuthRefreshWithResponse(ctx context.Context, params *V1AuthRefreshParams, reqEditors ...RequestEditorFn) (*V1AuthRefreshResponse, error)
V1AuthRefreshWithResponse request returning *V1AuthRefreshResponse
func (*ClientWithResponses) V1AuthResignWithBodyWithResponse ¶
func (c *ClientWithResponses) V1AuthResignWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthResignResponse, error)
V1AuthResignWithBodyWithResponse request with arbitrary body returning *V1AuthResignResponse
func (*ClientWithResponses) V1AuthResignWithResponse ¶
func (c *ClientWithResponses) V1AuthResignWithResponse(ctx context.Context, body V1AuthResignJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthResignResponse, error)
func (*ClientWithResponses) V1AuthSignInWithBodyWithResponse ¶
func (c *ClientWithResponses) V1AuthSignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthSignInResponse, error)
V1AuthSignInWithBodyWithResponse request with arbitrary body returning *V1AuthSignInResponse
func (*ClientWithResponses) V1AuthSignInWithResponse ¶
func (c *ClientWithResponses) V1AuthSignInWithResponse(ctx context.Context, body V1AuthSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthSignInResponse, error)
func (*ClientWithResponses) V1AuthSignOutWithResponse ¶
func (c *ClientWithResponses) V1AuthSignOutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1AuthSignOutResponse, error)
V1AuthSignOutWithResponse request returning *V1AuthSignOutResponse
func (*ClientWithResponses) V1AuthSignUpWithBodyWithResponse ¶
func (c *ClientWithResponses) V1AuthSignUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthSignUpResponse, error)
V1AuthSignUpWithBodyWithResponse request with arbitrary body returning *V1AuthSignUpResponse
func (*ClientWithResponses) V1AuthSignUpWithResponse ¶
func (c *ClientWithResponses) V1AuthSignUpWithResponse(ctx context.Context, body V1AuthSignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthSignUpResponse, error)
func (*ClientWithResponses) V1AuthVerifyWithResponse ¶
func (c *ClientWithResponses) V1AuthVerifyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1AuthVerifyResponse, error)
V1AuthVerifyWithResponse request returning *V1AuthVerifyResponse
func (*ClientWithResponses) V1CoreVersionWithResponse ¶
func (c *ClientWithResponses) V1CoreVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1CoreVersionResponse, error)
V1CoreVersionWithResponse request returning *V1CoreVersionResponse
func (*ClientWithResponses) V1HealthWithResponse ¶
func (c *ClientWithResponses) V1HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1HealthResponse, error)
V1HealthWithResponse request returning *V1HealthResponse
func (*ClientWithResponses) V1ListArticlesWithResponse ¶
func (c *ClientWithResponses) V1ListArticlesWithResponse(ctx context.Context, params *V1ListArticlesParams, reqEditors ...RequestEditorFn) (*V1ListArticlesResponse, error)
V1ListArticlesWithResponse request returning *V1ListArticlesResponse
func (*ClientWithResponses) V1SignWithResponse ¶
func (c *ClientWithResponses) V1SignWithResponse(ctx context.Context, params *V1SignParams, reqEditors ...RequestEditorFn) (*V1SignResponse, error)
V1SignWithResponse request returning *V1SignResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // V1ListArticles request V1ListArticlesWithResponse(ctx context.Context, params *V1ListArticlesParams, reqEditors ...RequestEditorFn) (*V1ListArticlesResponse, error) // V1AuthResign request with any body V1AuthResignWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthResignResponse, error) V1AuthResignWithResponse(ctx context.Context, body V1AuthResignJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthResignResponse, error) // V1AuthRefresh request V1AuthRefreshWithResponse(ctx context.Context, params *V1AuthRefreshParams, reqEditors ...RequestEditorFn) (*V1AuthRefreshResponse, error) // V1AuthSignIn request with any body V1AuthSignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthSignInResponse, error) V1AuthSignInWithResponse(ctx context.Context, body V1AuthSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthSignInResponse, error) // V1AuthSignOut request V1AuthSignOutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1AuthSignOutResponse, error) // V1AuthSignUp request with any body V1AuthSignUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthSignUpResponse, error) V1AuthSignUpWithResponse(ctx context.Context, body V1AuthSignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthSignUpResponse, error) // V1AuthVerify request V1AuthVerifyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1AuthVerifyResponse, error) // V1Health request V1HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1HealthResponse, error) // V1Sign request V1SignWithResponse(ctx context.Context, params *V1SignParams, reqEditors ...RequestEditorFn) (*V1SignResponse, error) // V1APIVersion request V1APIVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1APIVersionResponse, error) // V1CoreVersion request V1CoreVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1CoreVersionResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
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 articles // (GET /v1/article) V1ListArticles(w http.ResponseWriter, r *http.Request, params V1ListArticlesParams) // リサイン(退会) // (DELETE /v1/auth) V1AuthResign(w http.ResponseWriter, r *http.Request) // リフレッシュ // (GET /v1/auth/refresh) V1AuthRefresh(w http.ResponseWriter, r *http.Request, params V1AuthRefreshParams) // サインイン // (POST /v1/auth/signin) V1AuthSignIn(w http.ResponseWriter, r *http.Request) // サインアウト // (GET /v1/auth/signout) V1AuthSignOut(w http.ResponseWriter, r *http.Request) // サインアップ // (POST /v1/auth/signup) V1AuthSignUp(w http.ResponseWriter, r *http.Request) // 検証 // (GET /v1/auth/verify) V1AuthVerify(w http.ResponseWriter, r *http.Request) // ヘルスチェック // (GET /v1/health) V1Health(w http.ResponseWriter, r *http.Request) // 署名検証 // (GET /v1/sign) V1Sign(w http.ResponseWriter, r *http.Request, params V1SignParams) // APIバージョン // (GET /v1/version/api) V1APIVersion(w http.ResponseWriter, r *http.Request) // Coreバージョン // (GET /v1/version/core) V1CoreVersion(w http.ResponseWriter, r *http.Request) }
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) V1APIVersion ¶
func (siw *ServerInterfaceWrapper) V1APIVersion(w http.ResponseWriter, r *http.Request)
V1APIVersion operation middleware
func (*ServerInterfaceWrapper) V1AuthRefresh ¶
func (siw *ServerInterfaceWrapper) V1AuthRefresh(w http.ResponseWriter, r *http.Request)
V1AuthRefresh operation middleware
func (*ServerInterfaceWrapper) V1AuthResign ¶
func (siw *ServerInterfaceWrapper) V1AuthResign(w http.ResponseWriter, r *http.Request)
V1AuthResign operation middleware
func (*ServerInterfaceWrapper) V1AuthSignIn ¶
func (siw *ServerInterfaceWrapper) V1AuthSignIn(w http.ResponseWriter, r *http.Request)
V1AuthSignIn operation middleware
func (*ServerInterfaceWrapper) V1AuthSignOut ¶
func (siw *ServerInterfaceWrapper) V1AuthSignOut(w http.ResponseWriter, r *http.Request)
V1AuthSignOut operation middleware
func (*ServerInterfaceWrapper) V1AuthSignUp ¶
func (siw *ServerInterfaceWrapper) V1AuthSignUp(w http.ResponseWriter, r *http.Request)
V1AuthSignUp operation middleware
func (*ServerInterfaceWrapper) V1AuthVerify ¶
func (siw *ServerInterfaceWrapper) V1AuthVerify(w http.ResponseWriter, r *http.Request)
V1AuthVerify operation middleware
func (*ServerInterfaceWrapper) V1CoreVersion ¶
func (siw *ServerInterfaceWrapper) V1CoreVersion(w http.ResponseWriter, r *http.Request)
V1CoreVersion operation middleware
func (*ServerInterfaceWrapper) V1Health ¶
func (siw *ServerInterfaceWrapper) V1Health(w http.ResponseWriter, r *http.Request)
V1Health operation middleware
func (*ServerInterfaceWrapper) V1ListArticles ¶
func (siw *ServerInterfaceWrapper) V1ListArticles(w http.ResponseWriter, r *http.Request)
V1ListArticles operation middleware
func (*ServerInterfaceWrapper) V1Sign ¶
func (siw *ServerInterfaceWrapper) V1Sign(w http.ResponseWriter, r *http.Request)
V1Sign operation middleware
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnauthorizedResponseSchema ¶
type UnauthorizedResponseSchema struct { openapi_types.UUID `json:"code"` }Code
UnauthorizedResponseSchema defines model for UnauthorizedResponseSchema.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshallingParamError ¶
func (*UnmarshallingParamError) Error ¶
func (e *UnmarshallingParamError) Error() string
func (*UnmarshallingParamError) Unwrap ¶
func (e *UnmarshallingParamError) Unwrap() error
type V1APIVersionResponse ¶
func ParseV1APIVersionResponse ¶
func ParseV1APIVersionResponse(rsp *http.Response) (*V1APIVersionResponse, error)
ParseV1APIVersionResponse parses an HTTP response from a V1APIVersionWithResponse call
func (V1APIVersionResponse) Status ¶
func (r V1APIVersionResponse) Status() string
Status returns HTTPResponse.Status
func (V1APIVersionResponse) StatusCode ¶
func (r V1APIVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1ArticleListResponseSchema ¶
type V1ArticleListResponseSchema struct { Articles *[]Article `json:"articles,omitempty"` // NextPageToken 次回リクエスト時に指定するページトークン NextPageToken *string `json:"nextPageToken,omitempty"` }
V1ArticleListResponseSchema defines model for V1ArticleListResponseSchema.
type V1AuthRefreshParams ¶
type V1AuthRefreshParams struct { // Code 署名付きコード Code string `form:"code" json:"code"` // Signature 署名 Signature string `form:"signature" json:"signature"` ExpiresIn *int `form:"expiresIn,omitempty" json:"expiresIn,omitempty"` }
V1AuthRefreshParams defines parameters for V1AuthRefresh.
type V1AuthRefreshResponse ¶
type V1AuthRefreshResponse struct { Body []byte HTTPResponse *http.Response JSON200 *V1AuthRefreshResponseSchema }
func ParseV1AuthRefreshResponse ¶
func ParseV1AuthRefreshResponse(rsp *http.Response) (*V1AuthRefreshResponse, error)
ParseV1AuthRefreshResponse parses an HTTP response from a V1AuthRefreshWithResponse call
func (V1AuthRefreshResponse) Status ¶
func (r V1AuthRefreshResponse) Status() string
Status returns HTTPResponse.Status
func (V1AuthRefreshResponse) StatusCode ¶
func (r V1AuthRefreshResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1AuthRefreshResponseSchema ¶
type V1AuthRefreshResponseSchema struct { // IdToken IDトークン IdToken string `json:"idToken"` }
V1AuthRefreshResponseSchema defines model for V1AuthRefreshResponseSchema.
type V1AuthResignJSONBody ¶
type V1AuthResignJSONBody struct { // Password パスワード Password string `json:"password"` }
V1AuthResignJSONBody defines parameters for V1AuthResign.
type V1AuthResignJSONRequestBody ¶
type V1AuthResignJSONRequestBody V1AuthResignJSONBody
V1AuthResignJSONRequestBody defines body for V1AuthResign for application/json ContentType.
type V1AuthResignResponse ¶
func ParseV1AuthResignResponse ¶
func ParseV1AuthResignResponse(rsp *http.Response) (*V1AuthResignResponse, error)
ParseV1AuthResignResponse parses an HTTP response from a V1AuthResignWithResponse call
func (V1AuthResignResponse) Status ¶
func (r V1AuthResignResponse) Status() string
Status returns HTTPResponse.Status
func (V1AuthResignResponse) StatusCode ¶
func (r V1AuthResignResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1AuthSignInJSONRequestBody ¶
type V1AuthSignInJSONRequestBody = V1AuthSignInRequestSchema
V1AuthSignInJSONRequestBody defines body for V1AuthSignIn for application/json ContentType.
type V1AuthSignInRequestSchema ¶
type V1AuthSignInRequestSchema struct { // Email メールアドレス Email openapi_types.Email `json:"email"` // ExpiresIn トークン有効期限(秒) ExpiresIn *int `json:"expiresIn,omitempty"` // Password パスワード Password string `json:"password"` // PublicKey 公開鍵 PublicKey string `json:"publicKey"` }
V1AuthSignInRequestSchema defines model for V1AuthSignInRequestSchema.
type V1AuthSignInResponse ¶
type V1AuthSignInResponse struct { Body []byte HTTPResponse *http.Response JSON200 *V1AuthSignInResponseSchema }
func ParseV1AuthSignInResponse ¶
func ParseV1AuthSignInResponse(rsp *http.Response) (*V1AuthSignInResponse, error)
ParseV1AuthSignInResponse parses an HTTP response from a V1AuthSignInWithResponse call
func (V1AuthSignInResponse) Status ¶
func (r V1AuthSignInResponse) Status() string
Status returns HTTPResponse.Status
func (V1AuthSignInResponse) StatusCode ¶
func (r V1AuthSignInResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1AuthSignInResponseSchema ¶
type V1AuthSignInResponseSchema struct { // IdToken IDトークン IdToken string `json:"idToken"` // SessionToken セッショントークン SessionToken string `json:"sessionToken"` }
V1AuthSignInResponseSchema defines model for V1AuthSignInResponseSchema.
type V1AuthSignOutResponse ¶
func ParseV1AuthSignOutResponse ¶
func ParseV1AuthSignOutResponse(rsp *http.Response) (*V1AuthSignOutResponse, error)
ParseV1AuthSignOutResponse parses an HTTP response from a V1AuthSignOutWithResponse call
func (V1AuthSignOutResponse) Status ¶
func (r V1AuthSignOutResponse) Status() string
Status returns HTTPResponse.Status
func (V1AuthSignOutResponse) StatusCode ¶
func (r V1AuthSignOutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1AuthSignUpJSONRequestBody ¶
type V1AuthSignUpJSONRequestBody = V1AuthSignUpRequestSchema
V1AuthSignUpJSONRequestBody defines body for V1AuthSignUp for application/json ContentType.
type V1AuthSignUpRequestSchema ¶
type V1AuthSignUpRequestSchema struct { // Email メールアドレス Email openapi_types.Email `json:"email"` // Password パスワード Password string `json:"password"` }
V1AuthSignUpRequestSchema defines model for V1AuthSignUpRequestSchema.
type V1AuthSignUpResponse ¶
func ParseV1AuthSignUpResponse ¶
func ParseV1AuthSignUpResponse(rsp *http.Response) (*V1AuthSignUpResponse, error)
ParseV1AuthSignUpResponse parses an HTTP response from a V1AuthSignUpWithResponse call
func (V1AuthSignUpResponse) Status ¶
func (r V1AuthSignUpResponse) Status() string
Status returns HTTPResponse.Status
func (V1AuthSignUpResponse) StatusCode ¶
func (r V1AuthSignUpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1AuthVerifyResponse ¶
type V1AuthVerifyResponse struct { Body []byte HTTPResponse *http.Response JSON401 *UnauthorizedResponseSchema }
func ParseV1AuthVerifyResponse ¶
func ParseV1AuthVerifyResponse(rsp *http.Response) (*V1AuthVerifyResponse, error)
ParseV1AuthVerifyResponse parses an HTTP response from a V1AuthVerifyWithResponse call
func (V1AuthVerifyResponse) Status ¶
func (r V1AuthVerifyResponse) Status() string
Status returns HTTPResponse.Status
func (V1AuthVerifyResponse) StatusCode ¶
func (r V1AuthVerifyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1CoreVersionResponse ¶
func ParseV1CoreVersionResponse ¶
func ParseV1CoreVersionResponse(rsp *http.Response) (*V1CoreVersionResponse, error)
ParseV1CoreVersionResponse parses an HTTP response from a V1CoreVersionWithResponse call
func (V1CoreVersionResponse) Status ¶
func (r V1CoreVersionResponse) Status() string
Status returns HTTPResponse.Status
func (V1CoreVersionResponse) StatusCode ¶
func (r V1CoreVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1HealthResponse ¶
func ParseV1HealthResponse ¶
func ParseV1HealthResponse(rsp *http.Response) (*V1HealthResponse, error)
ParseV1HealthResponse parses an HTTP response from a V1HealthWithResponse call
func (V1HealthResponse) Status ¶
func (r V1HealthResponse) Status() string
Status returns HTTPResponse.Status
func (V1HealthResponse) StatusCode ¶
func (r V1HealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1ListArticlesParams ¶
type V1ListArticlesParams struct { // PageToken トークン PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"` // MaxPageSize ページサイズ MaxPageSize int `form:"maxPageSize" json:"maxPageSize"` }
V1ListArticlesParams defines parameters for V1ListArticles.
type V1ListArticlesResponse ¶
type V1ListArticlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *V1ArticleListResponseSchema }
func ParseV1ListArticlesResponse ¶
func ParseV1ListArticlesResponse(rsp *http.Response) (*V1ListArticlesResponse, error)
ParseV1ListArticlesResponse parses an HTTP response from a V1ListArticlesWithResponse call
func (V1ListArticlesResponse) Status ¶
func (r V1ListArticlesResponse) Status() string
Status returns HTTPResponse.Status
func (V1ListArticlesResponse) StatusCode ¶
func (r V1ListArticlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1SignParams ¶
type V1SignParams struct { // Code 署名付きコード Code string `form:"code" json:"code"` // Signature 署名 Signature string `form:"signature" json:"signature"` }
V1SignParams defines parameters for V1Sign.
type V1SignResponse ¶
func ParseV1SignResponse ¶
func ParseV1SignResponse(rsp *http.Response) (*V1SignResponse, error)
ParseV1SignResponse parses an HTTP response from a V1SignWithResponse call
func (V1SignResponse) Status ¶
func (r V1SignResponse) Status() string
Status returns HTTPResponse.Status
func (V1SignResponse) StatusCode ¶
func (r V1SignResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode