openapi

package
v0.0.0-...-6f95374 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package openapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.

Package openapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.

Package openapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyScopes             = "apiKey.Scopes"
	AuthTokenCookieScopes    = "authTokenCookie.Scopes"
	SessionTokenCookieScopes = "sessionTokenCookie.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 NewV1ArticleAddOwnRequest

func NewV1ArticleAddOwnRequest(server string, articleId openapi_types.UUID) (*http.Request, error)

NewV1ArticleAddOwnRequest generates requests for V1ArticleAddOwn

func NewV1ArticleListRequest

func NewV1ArticleListRequest(server string, params *V1ArticleListParams) (*http.Request, error)

NewV1ArticleListRequest generates requests for V1ArticleList

func NewV1ArticleRemoveOwnRequest

func NewV1ArticleRemoveOwnRequest(server string, articleId openapi_types.UUID) (*http.Request, error)

NewV1ArticleRemoveOwnRequest generates requests for V1ArticleRemoveOwn

func NewV1ArticleShareRequest

func NewV1ArticleShareRequest(server string, body V1ArticleShareJSONRequestBody) (*http.Request, error)

NewV1ArticleShareRequest calls the generic V1ArticleShare builder with application/json body

func NewV1ArticleShareRequestWithBody

func NewV1ArticleShareRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewV1ArticleShareRequestWithBody generates requests for V1ArticleShare with any type of body

func NewV1AuthChangePasswordRequest

func NewV1AuthChangePasswordRequest(server string, body V1AuthChangePasswordJSONRequestBody) (*http.Request, error)

NewV1AuthChangePasswordRequest calls the generic V1AuthChangePassword builder with application/json body

func NewV1AuthChangePasswordRequestWithBody

func NewV1AuthChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewV1AuthChangePasswordRequestWithBody generates requests for V1AuthChangePassword with any type of body

func NewV1AuthInviteRequest

func NewV1AuthInviteRequest(server string, body V1AuthInviteJSONRequestBody) (*http.Request, error)

NewV1AuthInviteRequest calls the generic V1AuthInvite builder with application/json body

func NewV1AuthInviteRequestWithBody

func NewV1AuthInviteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewV1AuthInviteRequestWithBody generates requests for V1AuthInvite with any type of body

func NewV1AuthJoinRequest

func NewV1AuthJoinRequest(server string, body V1AuthJoinJSONRequestBody) (*http.Request, error)

NewV1AuthJoinRequest calls the generic V1AuthJoin builder with application/json body

func NewV1AuthJoinRequestWithBody

func NewV1AuthJoinRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewV1AuthJoinRequestWithBody generates requests for V1AuthJoin with any type of body

func NewV1AuthRefreshRequest

func NewV1AuthRefreshRequest(server string, params *V1AuthRefreshParams) (*http.Request, error)

NewV1AuthRefreshRequest generates requests for V1AuthRefresh

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 NewV1AuthSignOutAllRequest

func NewV1AuthSignOutAllRequest(server string) (*http.Request, error)

NewV1AuthSignOutAllRequest generates requests for V1AuthSignOutAll

func NewV1AuthSignOutRequest

func NewV1AuthSignOutRequest(server string) (*http.Request, error)

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

func NewV1AuthVerifyRequest(server string) (*http.Request, error)

NewV1AuthVerifyRequest generates requests for V1AuthVerify

func NewV1HealthAPIRequest

func NewV1HealthAPIRequest(server string) (*http.Request, error)

NewV1HealthAPIRequest generates requests for V1HealthAPI

func NewV1HealthCoreRequest

func NewV1HealthCoreRequest(server string) (*http.Request, error)

NewV1HealthCoreRequest generates requests for V1HealthCore

func NewV1InternalArticleDeleteRequest

func NewV1InternalArticleDeleteRequest(server string, articleId openapi_types.UUID) (*http.Request, error)

NewV1InternalArticleDeleteRequest generates requests for V1InternalArticleDelete

func NewV1InternalArticleShareRequest

func NewV1InternalArticleShareRequest(server string, body V1InternalArticleShareJSONRequestBody) (*http.Request, error)

NewV1InternalArticleShareRequest calls the generic V1InternalArticleShare builder with application/json body

func NewV1InternalArticleShareRequestWithBody

func NewV1InternalArticleShareRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewV1InternalArticleShareRequestWithBody generates requests for V1InternalArticleShare with any type of body

Types

type ArticleSchema

type ArticleSchema struct {
	// Description description
	Description *string `json:"description,omitempty"`

	// Id id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// 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,omitempty"`
}

ArticleSchema defines model for ArticleSchema.

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) V1ArticleAddOwn

func (c *Client) V1ArticleAddOwn(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1ArticleList

func (c *Client) V1ArticleList(ctx context.Context, params *V1ArticleListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1ArticleRemoveOwn

func (c *Client) V1ArticleRemoveOwn(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1ArticleShare

func (c *Client) V1ArticleShare(ctx context.Context, body V1ArticleShareJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1ArticleShareWithBody

func (c *Client) V1ArticleShareWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthChangePassword

func (c *Client) V1AuthChangePassword(ctx context.Context, body V1AuthChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthChangePasswordWithBody

func (c *Client) V1AuthChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthInvite

func (c *Client) V1AuthInvite(ctx context.Context, body V1AuthInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthInviteWithBody

func (c *Client) V1AuthInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthJoin

func (c *Client) V1AuthJoin(ctx context.Context, body V1AuthJoinJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthJoinWithBody

func (c *Client) V1AuthJoinWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthRefresh

func (c *Client) V1AuthRefresh(ctx context.Context, params *V1AuthRefreshParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthSignIn

func (c *Client) V1AuthSignIn(ctx context.Context, body V1AuthSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthSignInWithBody

func (c *Client) V1AuthSignInWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthSignOut

func (c *Client) V1AuthSignOut(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthSignOutAll

func (c *Client) V1AuthSignOutAll(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthSignUp

func (c *Client) V1AuthSignUp(ctx context.Context, body V1AuthSignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthSignUpWithBody

func (c *Client) V1AuthSignUpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1AuthVerify

func (c *Client) V1AuthVerify(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1HealthAPI

func (c *Client) V1HealthAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1HealthCore

func (c *Client) V1HealthCore(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1InternalArticleDelete

func (c *Client) V1InternalArticleDelete(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1InternalArticleShare

func (c *Client) V1InternalArticleShare(ctx context.Context, body V1InternalArticleShareJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1InternalArticleShareWithBody

func (c *Client) V1InternalArticleShareWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// V1ArticleList request
	V1ArticleList(ctx context.Context, params *V1ArticleListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1ArticleShare request with any body
	V1ArticleShareWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	V1ArticleShare(ctx context.Context, body V1ArticleShareJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1ArticleRemoveOwn request
	V1ArticleRemoveOwn(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1ArticleAddOwn request
	V1ArticleAddOwn(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1AuthInvite request with any body
	V1AuthInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	V1AuthInvite(ctx context.Context, body V1AuthInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1AuthJoin request with any body
	V1AuthJoinWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	V1AuthJoin(ctx context.Context, body V1AuthJoinJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1AuthChangePassword request with any body
	V1AuthChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	V1AuthChangePassword(ctx context.Context, body V1AuthChangePasswordJSONRequestBody, 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)

	// V1AuthSignOutAll request
	V1AuthSignOutAll(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)

	// V1HealthAPI request
	V1HealthAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1HealthCore request
	V1HealthCore(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1InternalArticleShare request with any body
	V1InternalArticleShareWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	V1InternalArticleShare(ctx context.Context, body V1InternalArticleShareJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1InternalArticleDelete request
	V1InternalArticleDelete(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) V1ArticleAddOwnWithResponse

func (c *ClientWithResponses) V1ArticleAddOwnWithResponse(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*V1ArticleAddOwnResponse, error)

V1ArticleAddOwnWithResponse request returning *V1ArticleAddOwnResponse

func (*ClientWithResponses) V1ArticleListWithResponse

func (c *ClientWithResponses) V1ArticleListWithResponse(ctx context.Context, params *V1ArticleListParams, reqEditors ...RequestEditorFn) (*V1ArticleListResponse, error)

V1ArticleListWithResponse request returning *V1ArticleListResponse

func (*ClientWithResponses) V1ArticleRemoveOwnWithResponse

func (c *ClientWithResponses) V1ArticleRemoveOwnWithResponse(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*V1ArticleRemoveOwnResponse, error)

V1ArticleRemoveOwnWithResponse request returning *V1ArticleRemoveOwnResponse

func (*ClientWithResponses) V1ArticleShareWithBodyWithResponse

func (c *ClientWithResponses) V1ArticleShareWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1ArticleShareResponse, error)

V1ArticleShareWithBodyWithResponse request with arbitrary body returning *V1ArticleShareResponse

func (*ClientWithResponses) V1ArticleShareWithResponse

func (c *ClientWithResponses) V1ArticleShareWithResponse(ctx context.Context, body V1ArticleShareJSONRequestBody, reqEditors ...RequestEditorFn) (*V1ArticleShareResponse, error)

func (*ClientWithResponses) V1AuthChangePasswordWithBodyWithResponse

func (c *ClientWithResponses) V1AuthChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthChangePasswordResponse, error)

V1AuthChangePasswordWithBodyWithResponse request with arbitrary body returning *V1AuthChangePasswordResponse

func (*ClientWithResponses) V1AuthChangePasswordWithResponse

func (c *ClientWithResponses) V1AuthChangePasswordWithResponse(ctx context.Context, body V1AuthChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthChangePasswordResponse, error)

func (*ClientWithResponses) V1AuthInviteWithBodyWithResponse

func (c *ClientWithResponses) V1AuthInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthInviteResponse, error)

V1AuthInviteWithBodyWithResponse request with arbitrary body returning *V1AuthInviteResponse

func (*ClientWithResponses) V1AuthInviteWithResponse

func (c *ClientWithResponses) V1AuthInviteWithResponse(ctx context.Context, body V1AuthInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthInviteResponse, error)

func (*ClientWithResponses) V1AuthJoinWithBodyWithResponse

func (c *ClientWithResponses) V1AuthJoinWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthJoinResponse, error)

V1AuthJoinWithBodyWithResponse request with arbitrary body returning *V1AuthJoinResponse

func (*ClientWithResponses) V1AuthJoinWithResponse

func (c *ClientWithResponses) V1AuthJoinWithResponse(ctx context.Context, body V1AuthJoinJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthJoinResponse, error)

func (*ClientWithResponses) V1AuthRefreshWithResponse

func (c *ClientWithResponses) V1AuthRefreshWithResponse(ctx context.Context, params *V1AuthRefreshParams, reqEditors ...RequestEditorFn) (*V1AuthRefreshResponse, error)

V1AuthRefreshWithResponse request returning *V1AuthRefreshResponse

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) V1AuthSignOutAllWithResponse

func (c *ClientWithResponses) V1AuthSignOutAllWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1AuthSignOutAllResponse, error)

V1AuthSignOutAllWithResponse request returning *V1AuthSignOutAllResponse

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) V1HealthAPIWithResponse

func (c *ClientWithResponses) V1HealthAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1HealthAPIResponse, error)

V1HealthAPIWithResponse request returning *V1HealthAPIResponse

func (*ClientWithResponses) V1HealthCoreWithResponse

func (c *ClientWithResponses) V1HealthCoreWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1HealthCoreResponse, error)

V1HealthCoreWithResponse request returning *V1HealthCoreResponse

func (*ClientWithResponses) V1InternalArticleDeleteWithResponse

func (c *ClientWithResponses) V1InternalArticleDeleteWithResponse(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*V1InternalArticleDeleteResponse, error)

V1InternalArticleDeleteWithResponse request returning *V1InternalArticleDeleteResponse

func (*ClientWithResponses) V1InternalArticleShareWithBodyWithResponse

func (c *ClientWithResponses) V1InternalArticleShareWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1InternalArticleShareResponse, error)

V1InternalArticleShareWithBodyWithResponse request with arbitrary body returning *V1InternalArticleShareResponse

func (*ClientWithResponses) V1InternalArticleShareWithResponse

func (c *ClientWithResponses) V1InternalArticleShareWithResponse(ctx context.Context, body V1InternalArticleShareJSONRequestBody, reqEditors ...RequestEditorFn) (*V1InternalArticleShareResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// V1ArticleList request
	V1ArticleListWithResponse(ctx context.Context, params *V1ArticleListParams, reqEditors ...RequestEditorFn) (*V1ArticleListResponse, error)

	// V1ArticleShare request with any body
	V1ArticleShareWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1ArticleShareResponse, error)

	V1ArticleShareWithResponse(ctx context.Context, body V1ArticleShareJSONRequestBody, reqEditors ...RequestEditorFn) (*V1ArticleShareResponse, error)

	// V1ArticleRemoveOwn request
	V1ArticleRemoveOwnWithResponse(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*V1ArticleRemoveOwnResponse, error)

	// V1ArticleAddOwn request
	V1ArticleAddOwnWithResponse(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*V1ArticleAddOwnResponse, error)

	// V1AuthInvite request with any body
	V1AuthInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthInviteResponse, error)

	V1AuthInviteWithResponse(ctx context.Context, body V1AuthInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthInviteResponse, error)

	// V1AuthJoin request with any body
	V1AuthJoinWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthJoinResponse, error)

	V1AuthJoinWithResponse(ctx context.Context, body V1AuthJoinJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthJoinResponse, error)

	// V1AuthChangePassword request with any body
	V1AuthChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1AuthChangePasswordResponse, error)

	V1AuthChangePasswordWithResponse(ctx context.Context, body V1AuthChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*V1AuthChangePasswordResponse, 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)

	// V1AuthSignOutAll request
	V1AuthSignOutAllWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1AuthSignOutAllResponse, 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)

	// V1HealthAPI request
	V1HealthAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1HealthAPIResponse, error)

	// V1HealthCore request
	V1HealthCoreWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1HealthCoreResponse, error)

	// V1InternalArticleShare request with any body
	V1InternalArticleShareWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1InternalArticleShareResponse, error)

	V1InternalArticleShareWithResponse(ctx context.Context, body V1InternalArticleShareJSONRequestBody, reqEditors ...RequestEditorFn) (*V1InternalArticleShareResponse, error)

	// V1InternalArticleDelete request
	V1InternalArticleDeleteWithResponse(ctx context.Context, articleId openapi_types.UUID, reqEditors ...RequestEditorFn) (*V1InternalArticleDeleteResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

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 {
	// 記事一覧
	// (GET /v1/articles)
	V1ArticleList(w http.ResponseWriter, r *http.Request, params V1ArticleListParams)
	// 記事共有
	// (POST /v1/articles)
	V1ArticleShare(w http.ResponseWriter, r *http.Request)
	// 記事削除
	// (DELETE /v1/articles/{articleId})
	V1ArticleRemoveOwn(w http.ResponseWriter, r *http.Request, articleId openapi_types.UUID)
	// 記事追加
	// (POST /v1/articles/{articleId})
	V1ArticleAddOwn(w http.ResponseWriter, r *http.Request, articleId openapi_types.UUID)
	// 招待
	// (POST /v1/auth/invite)
	V1AuthInvite(w http.ResponseWriter, r *http.Request)
	// 参加
	// (POST /v1/auth/join)
	V1AuthJoin(w http.ResponseWriter, r *http.Request)
	// パスワード変更
	// (PUT /v1/auth/password)
	V1AuthChangePassword(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)
	// サインアウトオール
	// (GET /v1/auth/signout/all)
	V1AuthSignOutAll(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)
	// apiヘルスチェック
	// (GET /v1/health/api)
	V1HealthAPI(w http.ResponseWriter, r *http.Request)
	// coreヘルスチェック
	// (GET /v1/health/core)
	V1HealthCore(w http.ResponseWriter, r *http.Request)
	// 記事共有
	// (POST /v1/internal/articles)
	V1InternalArticleShare(w http.ResponseWriter, r *http.Request)
	// 記事削除
	// (DELETE /v1/internal/articles/{articleId})
	V1InternalArticleDelete(w http.ResponseWriter, r *http.Request, articleId openapi_types.UUID)
}

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) V1ArticleAddOwn

func (siw *ServerInterfaceWrapper) V1ArticleAddOwn(w http.ResponseWriter, r *http.Request)

V1ArticleAddOwn operation middleware

func (*ServerInterfaceWrapper) V1ArticleList

func (siw *ServerInterfaceWrapper) V1ArticleList(w http.ResponseWriter, r *http.Request)

V1ArticleList operation middleware

func (*ServerInterfaceWrapper) V1ArticleRemoveOwn

func (siw *ServerInterfaceWrapper) V1ArticleRemoveOwn(w http.ResponseWriter, r *http.Request)

V1ArticleRemoveOwn operation middleware

func (*ServerInterfaceWrapper) V1ArticleShare

func (siw *ServerInterfaceWrapper) V1ArticleShare(w http.ResponseWriter, r *http.Request)

V1ArticleShare operation middleware

func (*ServerInterfaceWrapper) V1AuthChangePassword

func (siw *ServerInterfaceWrapper) V1AuthChangePassword(w http.ResponseWriter, r *http.Request)

V1AuthChangePassword operation middleware

func (*ServerInterfaceWrapper) V1AuthInvite

func (siw *ServerInterfaceWrapper) V1AuthInvite(w http.ResponseWriter, r *http.Request)

V1AuthInvite operation middleware

func (*ServerInterfaceWrapper) V1AuthJoin

func (siw *ServerInterfaceWrapper) V1AuthJoin(w http.ResponseWriter, r *http.Request)

V1AuthJoin operation middleware

func (*ServerInterfaceWrapper) V1AuthRefresh

func (siw *ServerInterfaceWrapper) V1AuthRefresh(w http.ResponseWriter, r *http.Request)

V1AuthRefresh 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) V1AuthSignOutAll

func (siw *ServerInterfaceWrapper) V1AuthSignOutAll(w http.ResponseWriter, r *http.Request)

V1AuthSignOutAll 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) V1HealthAPI

func (siw *ServerInterfaceWrapper) V1HealthAPI(w http.ResponseWriter, r *http.Request)

V1HealthAPI operation middleware

func (*ServerInterfaceWrapper) V1HealthCore

func (siw *ServerInterfaceWrapper) V1HealthCore(w http.ResponseWriter, r *http.Request)

V1HealthCore operation middleware

func (*ServerInterfaceWrapper) V1InternalArticleDelete

func (siw *ServerInterfaceWrapper) V1InternalArticleDelete(w http.ResponseWriter, r *http.Request)

V1InternalArticleDelete operation middleware

func (*ServerInterfaceWrapper) V1InternalArticleShare

func (siw *ServerInterfaceWrapper) V1InternalArticleShare(w http.ResponseWriter, r *http.Request)

V1InternalArticleShare operation middleware

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshallingParamError

type UnmarshallingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshallingParamError) Error

func (e *UnmarshallingParamError) Error() string

func (*UnmarshallingParamError) Unwrap

func (e *UnmarshallingParamError) Unwrap() error

type V1ArticleAddOwnResponse

type V1ArticleAddOwnResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1ArticleAddOwnResponse

func ParseV1ArticleAddOwnResponse(rsp *http.Response) (*V1ArticleAddOwnResponse, error)

ParseV1ArticleAddOwnResponse parses an HTTP response from a V1ArticleAddOwnWithResponse call

func (V1ArticleAddOwnResponse) Status

func (r V1ArticleAddOwnResponse) Status() string

Status returns HTTPResponse.Status

func (V1ArticleAddOwnResponse) StatusCode

func (r V1ArticleAddOwnResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1ArticleListParams

type V1ArticleListParams struct {
	// Scope 取得範囲
	Scope *V1ArticleListParamsScope `form:"scope,omitempty" json:"scope,omitempty"`

	// MaxPageSize ページサイズ
	MaxPageSize *int `form:"maxPageSize,omitempty" json:"maxPageSize,omitempty"`

	// PageToken トークン
	PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`

	// Title タイトルによる部分一致検索
	Title *string `form:"title,omitempty" json:"title,omitempty"`
}

V1ArticleListParams defines parameters for V1ArticleList.

type V1ArticleListParamsScope

type V1ArticleListParamsScope string

V1ArticleListParamsScope defines parameters for V1ArticleList.

const (
	All V1ArticleListParamsScope = "all"
	Own V1ArticleListParamsScope = "own"
)

Defines values for V1ArticleListParamsScope.

type V1ArticleListResponse

type V1ArticleListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *V1ArticleListResponseSchema
}

func ParseV1ArticleListResponse

func ParseV1ArticleListResponse(rsp *http.Response) (*V1ArticleListResponse, error)

ParseV1ArticleListResponse parses an HTTP response from a V1ArticleListWithResponse call

func (V1ArticleListResponse) Status

func (r V1ArticleListResponse) Status() string

Status returns HTTPResponse.Status

func (V1ArticleListResponse) StatusCode

func (r V1ArticleListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1ArticleListResponseSchema

type V1ArticleListResponseSchema struct {
	Articles *[]ArticleSchema `json:"articles,omitempty"`

	// NextPageToken 次回リクエスト時に指定するページトークン
	NextPageToken *string `json:"nextPageToken,omitempty"`
}

V1ArticleListResponseSchema defines model for V1ArticleListResponseSchema.

type V1ArticleRemoveOwnResponse

type V1ArticleRemoveOwnResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1ArticleRemoveOwnResponse

func ParseV1ArticleRemoveOwnResponse(rsp *http.Response) (*V1ArticleRemoveOwnResponse, error)

ParseV1ArticleRemoveOwnResponse parses an HTTP response from a V1ArticleRemoveOwnWithResponse call

func (V1ArticleRemoveOwnResponse) Status

Status returns HTTPResponse.Status

func (V1ArticleRemoveOwnResponse) StatusCode

func (r V1ArticleRemoveOwnResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1ArticleShareJSONRequestBody

type V1ArticleShareJSONRequestBody = V1ArticleShareRequestSchema

V1ArticleShareJSONRequestBody defines body for V1ArticleShare for application/json ContentType.

type V1ArticleShareRequestSchema

type V1ArticleShareRequestSchema struct {
	// Description description
	Description *string `json:"description,omitempty"`

	// Thumbnail サムネイルのURL
	Thumbnail *string `json:"thumbnail,omitempty"`

	// Title タイトル
	Title *string `json:"title,omitempty"`

	// Url 記事のURL
	Url string `json:"url"`
}

V1ArticleShareRequestSchema defines model for V1ArticleShareRequestSchema.

type V1ArticleShareResponse

type V1ArticleShareResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1ArticleShareResponse

func ParseV1ArticleShareResponse(rsp *http.Response) (*V1ArticleShareResponse, error)

ParseV1ArticleShareResponse parses an HTTP response from a V1ArticleShareWithResponse call

func (V1ArticleShareResponse) Status

func (r V1ArticleShareResponse) Status() string

Status returns HTTPResponse.Status

func (V1ArticleShareResponse) StatusCode

func (r V1ArticleShareResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1AuthChangePasswordJSONRequestBody

type V1AuthChangePasswordJSONRequestBody = V1AuthChangePasswordRequestSchema

V1AuthChangePasswordJSONRequestBody defines body for V1AuthChangePassword for application/json ContentType.

type V1AuthChangePasswordRequestSchema

type V1AuthChangePasswordRequestSchema struct {
	// ExpiresIn トークン有効期限(秒)
	ExpiresIn *int `json:"expiresIn,omitempty"`

	// NewPassword 新パスワード
	NewPassword string `json:"newPassword"`

	// OldPassword 旧パスワード
	OldPassword string `json:"oldPassword"`

	// PublicKey 公開鍵
	PublicKey string `json:"publicKey"`
}

V1AuthChangePasswordRequestSchema defines model for V1AuthChangePasswordRequestSchema.

type V1AuthChangePasswordResponse

type V1AuthChangePasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1AuthChangePasswordResponse

func ParseV1AuthChangePasswordResponse(rsp *http.Response) (*V1AuthChangePasswordResponse, error)

ParseV1AuthChangePasswordResponse parses an HTTP response from a V1AuthChangePasswordWithResponse call

func (V1AuthChangePasswordResponse) Status

Status returns HTTPResponse.Status

func (V1AuthChangePasswordResponse) StatusCode

func (r V1AuthChangePasswordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1AuthInviteJSONRequestBody

type V1AuthInviteJSONRequestBody = V1AuthInviteRequestSchema

V1AuthInviteJSONRequestBody defines body for V1AuthInvite for application/json ContentType.

type V1AuthInviteRequestSchema

type V1AuthInviteRequestSchema struct {
	// Email メールアドレス
	Email openapi_types.Email `json:"email"`
}

V1AuthInviteRequestSchema defines model for V1AuthInviteRequestSchema.

type V1AuthInviteResponse

type V1AuthInviteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *V1AuthInviteResponseSchema
}

func ParseV1AuthInviteResponse

func ParseV1AuthInviteResponse(rsp *http.Response) (*V1AuthInviteResponse, error)

ParseV1AuthInviteResponse parses an HTTP response from a V1AuthInviteWithResponse call

func (V1AuthInviteResponse) Status

func (r V1AuthInviteResponse) Status() string

Status returns HTTPResponse.Status

func (V1AuthInviteResponse) StatusCode

func (r V1AuthInviteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1AuthInviteResponseSchema

type V1AuthInviteResponseSchema struct {
	// Code 招待コード
	Code string `json:"code"`
}

V1AuthInviteResponseSchema defines model for V1AuthInviteResponseSchema.

type V1AuthJoinJSONRequestBody

type V1AuthJoinJSONRequestBody = V1AuthJoinRequestSchema

V1AuthJoinJSONRequestBody defines body for V1AuthJoin for application/json ContentType.

type V1AuthJoinRequestSchema

type V1AuthJoinRequestSchema struct {
	// Code 招待コード
	Code string `json:"code"`

	// Password パスワード
	Password string `json:"password"`
}

V1AuthJoinRequestSchema defines model for V1AuthJoinRequestSchema.

type V1AuthJoinResponse

type V1AuthJoinResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *V1ArticleListResponseSchema
}

func ParseV1AuthJoinResponse

func ParseV1AuthJoinResponse(rsp *http.Response) (*V1AuthJoinResponse, error)

ParseV1AuthJoinResponse parses an HTTP response from a V1AuthJoinWithResponse call

func (V1AuthJoinResponse) Status

func (r V1AuthJoinResponse) Status() string

Status returns HTTPResponse.Status

func (V1AuthJoinResponse) StatusCode

func (r V1AuthJoinResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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
}

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 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
}

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 V1AuthSignOutAllResponse

type V1AuthSignOutAllResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1AuthSignOutAllResponse

func ParseV1AuthSignOutAllResponse(rsp *http.Response) (*V1AuthSignOutAllResponse, error)

ParseV1AuthSignOutAllResponse parses an HTTP response from a V1AuthSignOutAllWithResponse call

func (V1AuthSignOutAllResponse) Status

func (r V1AuthSignOutAllResponse) Status() string

Status returns HTTPResponse.Status

func (V1AuthSignOutAllResponse) StatusCode

func (r V1AuthSignOutAllResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1AuthSignOutResponse

type V1AuthSignOutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type V1AuthSignUpResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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      *V1AuthVerifyUnauthorizedResponseSchema
}

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 V1AuthVerifyUnauthorizedResponseSchema

type V1AuthVerifyUnauthorizedResponseSchema struct {
	// Code リフレッシュコード
	// このコードを使用してトークンを新たに取得することができます。
	// リフレッシュできる見込みがない場合(セッショントークンがない状態でのリクエスト)ではリフレッシュ用コードは払い出しません。
	Code openapi_types.UUID `json:"code"`
}

V1AuthVerifyUnauthorizedResponseSchema defines model for V1AuthVerifyUnauthorizedResponseSchema.

type V1HealthAPIResponse

type V1HealthAPIResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1HealthAPIResponse

func ParseV1HealthAPIResponse(rsp *http.Response) (*V1HealthAPIResponse, error)

ParseV1HealthAPIResponse parses an HTTP response from a V1HealthAPIWithResponse call

func (V1HealthAPIResponse) Status

func (r V1HealthAPIResponse) Status() string

Status returns HTTPResponse.Status

func (V1HealthAPIResponse) StatusCode

func (r V1HealthAPIResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1HealthCoreResponse

type V1HealthCoreResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1HealthCoreResponse

func ParseV1HealthCoreResponse(rsp *http.Response) (*V1HealthCoreResponse, error)

ParseV1HealthCoreResponse parses an HTTP response from a V1HealthCoreWithResponse call

func (V1HealthCoreResponse) Status

func (r V1HealthCoreResponse) Status() string

Status returns HTTPResponse.Status

func (V1HealthCoreResponse) StatusCode

func (r V1HealthCoreResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1InternalArticleDeleteResponse

type V1InternalArticleDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1InternalArticleDeleteResponse

func ParseV1InternalArticleDeleteResponse(rsp *http.Response) (*V1InternalArticleDeleteResponse, error)

ParseV1InternalArticleDeleteResponse parses an HTTP response from a V1InternalArticleDeleteWithResponse call

func (V1InternalArticleDeleteResponse) Status

Status returns HTTPResponse.Status

func (V1InternalArticleDeleteResponse) StatusCode

func (r V1InternalArticleDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1InternalArticleShareJSONRequestBody

type V1InternalArticleShareJSONRequestBody = V1ArticleShareRequestSchema

V1InternalArticleShareJSONRequestBody defines body for V1InternalArticleShare for application/json ContentType.

type V1InternalArticleShareResponse

type V1InternalArticleShareResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1InternalArticleShareResponse

func ParseV1InternalArticleShareResponse(rsp *http.Response) (*V1InternalArticleShareResponse, error)

ParseV1InternalArticleShareResponse parses an HTTP response from a V1InternalArticleShareWithResponse call

func (V1InternalArticleShareResponse) Status

Status returns HTTPResponse.Status

func (V1InternalArticleShareResponse) StatusCode

func (r V1InternalArticleShareResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL