Documentation ¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.1-0.20220906181851-9c600dddea33 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type APIError
- type Account
- type AccountHandle
- type AccountID
- type AccountName
- type AccountsGet200JSONResponse
- type AccountsGet401Response
- type AccountsGet404Response
- type AccountsGetRequestObject
- type AccountsGetResponseObject
- type AccountsGetSuccess
- type AccountsGetSuccessJSONResponse
- type AccountsGetdefaultJSONResponse
- type AuthOAuthProvider
- type AuthOAuthProviderCallback
- type AuthOAuthProviderCallback200JSONResponse
- type AuthOAuthProviderCallback401Response
- type AuthOAuthProviderCallback404Response
- type AuthOAuthProviderCallbackBody
- type AuthOAuthProviderCallbackJSONRequestBody
- type AuthOAuthProviderCallbackRequestObject
- type AuthOAuthProviderCallbackResponseObject
- type AuthOAuthProviderCallbackdefaultJSONResponse
- type AuthOAuthProviderList
- type AuthOAuthProviderList200JSONResponse
- type AuthOAuthProviderList400Response
- type AuthOAuthProviderListBody
- type AuthOAuthProviderListJSONResponse
- type AuthOAuthProviderListRequestObject
- type AuthOAuthProviderListResponseObject
- type AuthOAuthProviderListdefaultJSONResponse
- type AuthPassword
- type AuthPasswordBody
- type AuthPasswordSignin200JSONResponse
- type AuthPasswordSignin401Response
- type AuthPasswordSignin404Response
- type AuthPasswordSigninFormdataRequestBody
- type AuthPasswordSigninJSONRequestBody
- type AuthPasswordSigninRequestObject
- type AuthPasswordSigninResponseObject
- type AuthPasswordSignindefaultJSONResponse
- type AuthPasswordSignup200JSONResponse
- type AuthPasswordSignup400Response
- type AuthPasswordSignupFormdataRequestBody
- type AuthPasswordSignupJSONRequestBody
- type AuthPasswordSignupRequestObject
- type AuthPasswordSignupResponseObject
- type AuthPasswordSignupdefaultJSONResponse
- type AuthSuccess
- type AuthSuccessJSONResponse
- type AuthSuccessResponseHeaders
- type BadRequestResponse
- type Category
- type CommonProperties
- type EchoRouter
- type GetSpec200TextResponse
- type GetSpecRequestObject
- type GetSpecResponseObject
- type GetVersion200TextResponse
- type GetVersionRequestObject
- type GetVersionResponseObject
- type Identifier
- type InternalServerError
- type InternalServerErrorJSONResponse
- type NotFoundResponse
- type OAuthProvider
- type Post
- type PostBodyMarkdown
- type PostSubmission
- type PostsCreate
- type PostsCreate200JSONResponse
- type PostsCreate401Response
- type PostsCreate404Response
- type PostsCreateFormdataRequestBody
- type PostsCreateJSONRequestBody
- type PostsCreateRequestObject
- type PostsCreateResponseObject
- type PostsCreateSuccess
- type PostsCreateSuccessJSONResponse
- type PostsCreatedefaultJSONResponse
- type ProfileReference
- type ProfilesGet200JSONResponse
- type ProfilesGet401Response
- type ProfilesGet404Response
- type ProfilesGetRequestObject
- type ProfilesGetResponseObject
- type ProfilesGetSuccess
- type ProfilesGetSuccessJSONResponse
- type ProfilesGetdefaultJSONResponse
- type PublicProfile
- type React
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) AccountsGet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) AuthOAuthProviderCallback(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) AuthOAuthProviderList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) AuthPasswordSignin(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) AuthPasswordSignup(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSpec(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetVersion(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostsCreate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProfilesGet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ThreadsCreate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ThreadsGet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ThreadsList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WebAuthnGetAssertion(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WebAuthnMakeAssertion(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WebAuthnMakeCredential(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WebAuthnRequestCredential(ctx echo.Context) error
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TagList
- type TagName
- type Thread
- type ThreadID
- type ThreadReference
- type ThreadTitle
- type ThreadsCreate
- type ThreadsCreate200JSONResponse
- type ThreadsCreate401Response
- type ThreadsCreate404Response
- type ThreadsCreateBody
- type ThreadsCreateFormdataRequestBody
- type ThreadsCreateJSONRequestBody
- type ThreadsCreateRequestObject
- type ThreadsCreateResponseObject
- type ThreadsCreateSuccess
- type ThreadsCreateSuccessJSONResponse
- type ThreadsCreatedefaultJSONResponse
- type ThreadsGet
- type ThreadsGet200JSONResponse
- type ThreadsGet401Response
- type ThreadsGet404Response
- type ThreadsGetJSONResponse
- type ThreadsGetRequestObject
- type ThreadsGetResponseObject
- type ThreadsGetdefaultJSONResponse
- type ThreadsList
- type ThreadsList200JSONResponse
- type ThreadsList401Response
- type ThreadsList404Response
- type ThreadsListJSONResponse
- type ThreadsListRequestObject
- type ThreadsListResponseObject
- type ThreadsListdefaultJSONResponse
- type UnauthorisedResponse
- type WebAuthnGetAssertion200JSONResponse
- type WebAuthnGetAssertion401Response
- type WebAuthnGetAssertion404Response
- type WebAuthnGetAssertionFormdataRequestBody
- type WebAuthnGetAssertionJSONRequestBody
- type WebAuthnGetAssertionRequestObject
- type WebAuthnGetAssertionResponseObject
- type WebAuthnGetAssertiondefaultJSONResponse
- type WebAuthnMakeAssertion200JSONResponse
- type WebAuthnMakeAssertion401Response
- type WebAuthnMakeAssertion404Response
- type WebAuthnMakeAssertionFormdataRequestBody
- type WebAuthnMakeAssertionJSONRequestBody
- type WebAuthnMakeAssertionRequestObject
- type WebAuthnMakeAssertionResponseObject
- type WebAuthnMakeAssertiondefaultJSONResponse
- type WebAuthnMakeCredential200JSONResponse
- type WebAuthnMakeCredential400Response
- type WebAuthnMakeCredentialJSONBody
- type WebAuthnMakeCredentialJSONRequestBody
- type WebAuthnMakeCredentialRequestObject
- type WebAuthnMakeCredentialResponseObject
- type WebAuthnMakeCredentialdefaultJSONResponse
- type WebAuthnPublicKeyCreationOptions
- type WebAuthnPublicKeyCreationOptionsJSONResponse
- type WebAuthnPublicKeyCreationOptionsResponseHeaders
- type WebAuthnRequestCredential200JSONResponse
- type WebAuthnRequestCredential400Response
- type WebAuthnRequestCredentialRequestObject
- type WebAuthnRequestCredentialResponseObject
- type WebAuthnRequestCredentialdefaultJSONResponse
Constants ¶
const ( BrowserScopes = "browser.Scopes" WebauthnScopes = "webauthn.Scopes" )
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 PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type APIError ¶
type APIError struct { // Error The internal error, not intended for end-user display. Error string `json:"error"` // Message A human-readable message intended for end-user display. Message *string `json:"message,omitempty"` // Metadata Any additional metadata related to the error. Metadata *map[string]interface{} `json:"metadata,omitempty"` // Suggested A suggested action for the user. Suggested *string `json:"suggested,omitempty"` }
APIError A description of an error including a human readable message and any related metadata from the request and associated services.
type Account ¶
type Account struct { Bio *string `json:"bio,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` DeletedAt *string `json:"deletedAt,omitempty"` Email *string `json:"email,omitempty"` // Id A unique identifier for this resource. Id Identifier `json:"id"` Name *string `json:"name,omitempty"` UpdatedAt *string `json:"updatedAt,omitempty"` }
Account defines model for Account.
type AccountsGet200JSONResponse ¶
type AccountsGet200JSONResponse = AccountsGetSuccessJSONResponse
func (AccountsGet200JSONResponse) VisitAccountsGetResponse ¶
func (response AccountsGet200JSONResponse) VisitAccountsGetResponse(w http.ResponseWriter) error
type AccountsGet401Response ¶
type AccountsGet401Response = UnauthorisedResponse
func (AccountsGet401Response) VisitAccountsGetResponse ¶
func (response AccountsGet401Response) VisitAccountsGetResponse(w http.ResponseWriter) error
type AccountsGet404Response ¶
type AccountsGet404Response = NotFoundResponse
func (AccountsGet404Response) VisitAccountsGetResponse ¶
func (response AccountsGet404Response) VisitAccountsGetResponse(w http.ResponseWriter) error
type AccountsGetRequestObject ¶
type AccountsGetRequestObject struct { }
type AccountsGetResponseObject ¶
type AccountsGetResponseObject interface {
VisitAccountsGetResponse(w http.ResponseWriter) error
}
type AccountsGetSuccess ¶
type AccountsGetSuccess = Account
AccountsGetSuccess defines model for AccountsGetSuccess.
type AccountsGetSuccessJSONResponse ¶
type AccountsGetSuccessJSONResponse Account
type AccountsGetdefaultJSONResponse ¶
func (AccountsGetdefaultJSONResponse) VisitAccountsGetResponse ¶
func (response AccountsGetdefaultJSONResponse) VisitAccountsGetResponse(w http.ResponseWriter) error
type AuthOAuthProvider ¶
type AuthOAuthProvider struct { // Link The hyperlink to render for the user. Link string `json:"link"` // LogoUrl The logo to display for the provider. LogoUrl string `json:"logo_url"` // Name The human-readable name of the provider. Name string `json:"name"` // Provider The slug name of the provider. Provider string `json:"provider"` }
AuthOAuthProvider defines model for AuthOAuthProvider.
type AuthOAuthProviderCallback ¶
type AuthOAuthProviderCallback = AuthOAuthProviderCallbackBody
AuthOAuthProviderCallback defines model for AuthOAuthProviderCallback.
type AuthOAuthProviderCallback200JSONResponse ¶
type AuthOAuthProviderCallback200JSONResponse = AuthSuccessJSONResponse
func (AuthOAuthProviderCallback200JSONResponse) VisitAuthOAuthProviderCallbackResponse ¶
func (response AuthOAuthProviderCallback200JSONResponse) VisitAuthOAuthProviderCallbackResponse(w http.ResponseWriter) error
type AuthOAuthProviderCallback401Response ¶
type AuthOAuthProviderCallback401Response = UnauthorisedResponse
func (AuthOAuthProviderCallback401Response) VisitAuthOAuthProviderCallbackResponse ¶
func (response AuthOAuthProviderCallback401Response) VisitAuthOAuthProviderCallbackResponse(w http.ResponseWriter) error
type AuthOAuthProviderCallback404Response ¶
type AuthOAuthProviderCallback404Response = NotFoundResponse
func (AuthOAuthProviderCallback404Response) VisitAuthOAuthProviderCallbackResponse ¶
func (response AuthOAuthProviderCallback404Response) VisitAuthOAuthProviderCallbackResponse(w http.ResponseWriter) error
type AuthOAuthProviderCallbackBody ¶
AuthOAuthProviderCallbackBody defines model for AuthOAuthProviderCallbackBody.
type AuthOAuthProviderCallbackJSONRequestBody ¶
type AuthOAuthProviderCallbackJSONRequestBody = AuthOAuthProviderCallbackBody
AuthOAuthProviderCallbackJSONRequestBody defines body for AuthOAuthProviderCallback for application/json ContentType.
type AuthOAuthProviderCallbackRequestObject ¶
type AuthOAuthProviderCallbackRequestObject struct { OauthProvider OAuthProvider `json:"oauth_provider"` Body *AuthOAuthProviderCallbackJSONRequestBody }
type AuthOAuthProviderCallbackResponseObject ¶
type AuthOAuthProviderCallbackResponseObject interface {
VisitAuthOAuthProviderCallbackResponse(w http.ResponseWriter) error
}
type AuthOAuthProviderCallbackdefaultJSONResponse ¶
func (AuthOAuthProviderCallbackdefaultJSONResponse) VisitAuthOAuthProviderCallbackResponse ¶
func (response AuthOAuthProviderCallbackdefaultJSONResponse) VisitAuthOAuthProviderCallbackResponse(w http.ResponseWriter) error
type AuthOAuthProviderList ¶
type AuthOAuthProviderList = AuthOAuthProviderListBody
AuthOAuthProviderList defines model for AuthOAuthProviderList.
type AuthOAuthProviderList200JSONResponse ¶
type AuthOAuthProviderList200JSONResponse = AuthOAuthProviderListJSONResponse
func (AuthOAuthProviderList200JSONResponse) VisitAuthOAuthProviderListResponse ¶
func (response AuthOAuthProviderList200JSONResponse) VisitAuthOAuthProviderListResponse(w http.ResponseWriter) error
type AuthOAuthProviderList400Response ¶
type AuthOAuthProviderList400Response = BadRequestResponse
func (AuthOAuthProviderList400Response) VisitAuthOAuthProviderListResponse ¶
func (response AuthOAuthProviderList400Response) VisitAuthOAuthProviderListResponse(w http.ResponseWriter) error
type AuthOAuthProviderListBody ¶
type AuthOAuthProviderListBody = []AuthOAuthProvider
AuthOAuthProviderListBody defines model for AuthOAuthProviderListBody.
type AuthOAuthProviderListJSONResponse ¶
type AuthOAuthProviderListJSONResponse AuthOAuthProviderListBody
type AuthOAuthProviderListRequestObject ¶
type AuthOAuthProviderListRequestObject struct { }
type AuthOAuthProviderListResponseObject ¶
type AuthOAuthProviderListResponseObject interface {
VisitAuthOAuthProviderListResponse(w http.ResponseWriter) error
}
type AuthOAuthProviderListdefaultJSONResponse ¶
func (AuthOAuthProviderListdefaultJSONResponse) VisitAuthOAuthProviderListResponse ¶
func (response AuthOAuthProviderListdefaultJSONResponse) VisitAuthOAuthProviderListResponse(w http.ResponseWriter) error
type AuthPassword ¶
type AuthPassword = AuthPasswordBody
AuthPassword defines model for AuthPassword.
type AuthPasswordBody ¶
AuthPasswordBody defines model for AuthPasswordBody.
type AuthPasswordSignin200JSONResponse ¶
type AuthPasswordSignin200JSONResponse = AuthSuccessJSONResponse
func (AuthPasswordSignin200JSONResponse) VisitAuthPasswordSigninResponse ¶
func (response AuthPasswordSignin200JSONResponse) VisitAuthPasswordSigninResponse(w http.ResponseWriter) error
type AuthPasswordSignin401Response ¶
type AuthPasswordSignin401Response = UnauthorisedResponse
func (AuthPasswordSignin401Response) VisitAuthPasswordSigninResponse ¶
func (response AuthPasswordSignin401Response) VisitAuthPasswordSigninResponse(w http.ResponseWriter) error
type AuthPasswordSignin404Response ¶
type AuthPasswordSignin404Response = NotFoundResponse
func (AuthPasswordSignin404Response) VisitAuthPasswordSigninResponse ¶
func (response AuthPasswordSignin404Response) VisitAuthPasswordSigninResponse(w http.ResponseWriter) error
type AuthPasswordSigninFormdataRequestBody ¶
type AuthPasswordSigninFormdataRequestBody = AuthPasswordBody
AuthPasswordSigninFormdataRequestBody defines body for AuthPasswordSignin for application/x-www-form-urlencoded ContentType.
type AuthPasswordSigninJSONRequestBody ¶
type AuthPasswordSigninJSONRequestBody = AuthPasswordBody
AuthPasswordSigninJSONRequestBody defines body for AuthPasswordSignin for application/json ContentType.
type AuthPasswordSigninRequestObject ¶
type AuthPasswordSigninRequestObject struct { JSONBody *AuthPasswordSigninJSONRequestBody FormdataBody *AuthPasswordSigninFormdataRequestBody }
type AuthPasswordSigninResponseObject ¶
type AuthPasswordSigninResponseObject interface {
VisitAuthPasswordSigninResponse(w http.ResponseWriter) error
}
type AuthPasswordSignindefaultJSONResponse ¶
func (AuthPasswordSignindefaultJSONResponse) VisitAuthPasswordSigninResponse ¶
func (response AuthPasswordSignindefaultJSONResponse) VisitAuthPasswordSigninResponse(w http.ResponseWriter) error
type AuthPasswordSignup200JSONResponse ¶
type AuthPasswordSignup200JSONResponse = AuthSuccessJSONResponse
func (AuthPasswordSignup200JSONResponse) VisitAuthPasswordSignupResponse ¶
func (response AuthPasswordSignup200JSONResponse) VisitAuthPasswordSignupResponse(w http.ResponseWriter) error
type AuthPasswordSignup400Response ¶
type AuthPasswordSignup400Response = BadRequestResponse
func (AuthPasswordSignup400Response) VisitAuthPasswordSignupResponse ¶
func (response AuthPasswordSignup400Response) VisitAuthPasswordSignupResponse(w http.ResponseWriter) error
type AuthPasswordSignupFormdataRequestBody ¶
type AuthPasswordSignupFormdataRequestBody = AuthPasswordBody
AuthPasswordSignupFormdataRequestBody defines body for AuthPasswordSignup for application/x-www-form-urlencoded ContentType.
type AuthPasswordSignupJSONRequestBody ¶
type AuthPasswordSignupJSONRequestBody = AuthPasswordBody
AuthPasswordSignupJSONRequestBody defines body for AuthPasswordSignup for application/json ContentType.
type AuthPasswordSignupRequestObject ¶
type AuthPasswordSignupRequestObject struct { JSONBody *AuthPasswordSignupJSONRequestBody FormdataBody *AuthPasswordSignupFormdataRequestBody }
type AuthPasswordSignupResponseObject ¶
type AuthPasswordSignupResponseObject interface {
VisitAuthPasswordSignupResponse(w http.ResponseWriter) error
}
type AuthPasswordSignupdefaultJSONResponse ¶
func (AuthPasswordSignupdefaultJSONResponse) VisitAuthPasswordSignupResponse ¶
func (response AuthPasswordSignupdefaultJSONResponse) VisitAuthPasswordSignupResponse(w http.ResponseWriter) error
type AuthSuccess ¶
type AuthSuccess struct {
Id string `json:"id"`
}
AuthSuccess defines model for AuthSuccess.
type AuthSuccessJSONResponse ¶
type AuthSuccessJSONResponse struct { Body AuthSuccess Headers AuthSuccessResponseHeaders }
type AuthSuccessResponseHeaders ¶
type AuthSuccessResponseHeaders struct {
SetCookie string
}
type BadRequestResponse ¶
type BadRequestResponse struct { }
type Category ¶
type Category struct { Admin *bool `json:"admin,omitempty"` Colour *string `json:"colour,omitempty"` Description *string `json:"description,omitempty"` // Id A unique identifier for this resource. Id *Identifier `json:"id,omitempty"` Name *string `json:"name,omitempty"` PostCount *int `json:"postCount,omitempty"` Sort *int `json:"sort,omitempty"` }
Category defines model for Category.
type CommonProperties ¶
type CommonProperties struct { // CreatedAt The time the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt The time the resource was soft-deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Id A unique identifier for this resource. Id Identifier `json:"id"` // UpdatedAt The time the resource was updated. UpdatedAt time.Time `json:"updatedAt"` }
CommonProperties defines model for CommonProperties.
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type GetSpec200TextResponse ¶
type GetSpec200TextResponse string
func (GetSpec200TextResponse) VisitGetSpecResponse ¶
func (response GetSpec200TextResponse) VisitGetSpecResponse(w http.ResponseWriter) error
type GetSpecRequestObject ¶
type GetSpecRequestObject struct { }
type GetSpecResponseObject ¶
type GetSpecResponseObject interface {
VisitGetSpecResponse(w http.ResponseWriter) error
}
type GetVersion200TextResponse ¶
type GetVersion200TextResponse string
func (GetVersion200TextResponse) VisitGetVersionResponse ¶
func (response GetVersion200TextResponse) VisitGetVersionResponse(w http.ResponseWriter) error
type GetVersionRequestObject ¶
type GetVersionRequestObject struct { }
type GetVersionResponseObject ¶
type GetVersionResponseObject interface {
VisitGetVersionResponse(w http.ResponseWriter) error
}
type Identifier ¶
type Identifier string
Identifier A unique identifier for this resource.
func IdentifierFrom ¶
func IdentifierFrom(id xid.ID) *Identifier
id converts any arbitrary xid.ID derivative to an *openapi.Identifier type.
func (Identifier) XID ¶
func (i Identifier) XID() xid.ID
XID converts an openapi identifier to an xid. This is to work around an issue with the oapi-codegen generated code which generates the identifier as a new type instead of an alias which results in the marshal functions being hidden.
type InternalServerError ¶
type InternalServerError = APIError
InternalServerError A description of an error including a human readable message and any related metadata from the request and associated services.
type InternalServerErrorJSONResponse ¶
type InternalServerErrorJSONResponse APIError
type NotFoundResponse ¶
type NotFoundResponse struct { }
type Post ¶
type Post struct { // Body The body text of a post within a thread. Body PostBodyMarkdown `json:"body"` // CreatedAt The time the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt The time the resource was soft-deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Id A unique identifier for this resource. Id Identifier `json:"id"` // ReplyTo A unique identifier for this resource. ReplyTo *Identifier `json:"reply_to,omitempty"` // UpdatedAt The time the resource was updated. UpdatedAt time.Time `json:"updatedAt"` }
Post defines model for Post.
type PostBodyMarkdown ¶
type PostBodyMarkdown = string
PostBodyMarkdown The body text of a post within a thread.
type PostsCreate200JSONResponse ¶
type PostsCreate200JSONResponse = PostsCreateSuccessJSONResponse
func (PostsCreate200JSONResponse) VisitPostsCreateResponse ¶
func (response PostsCreate200JSONResponse) VisitPostsCreateResponse(w http.ResponseWriter) error
type PostsCreate401Response ¶
type PostsCreate401Response = UnauthorisedResponse
func (PostsCreate401Response) VisitPostsCreateResponse ¶
func (response PostsCreate401Response) VisitPostsCreateResponse(w http.ResponseWriter) error
type PostsCreate404Response ¶
type PostsCreate404Response = NotFoundResponse
func (PostsCreate404Response) VisitPostsCreateResponse ¶
func (response PostsCreate404Response) VisitPostsCreateResponse(w http.ResponseWriter) error
type PostsCreateFormdataRequestBody ¶
type PostsCreateFormdataRequestBody = PostSubmission
PostsCreateFormdataRequestBody defines body for PostsCreate for application/x-www-form-urlencoded ContentType.
type PostsCreateJSONRequestBody ¶
type PostsCreateJSONRequestBody = PostSubmission
PostsCreateJSONRequestBody defines body for PostsCreate for application/json ContentType.
type PostsCreateRequestObject ¶
type PostsCreateRequestObject struct { ThreadId ThreadID `json:"thread_id"` JSONBody *PostsCreateJSONRequestBody FormdataBody *PostsCreateFormdataRequestBody }
type PostsCreateResponseObject ¶
type PostsCreateResponseObject interface {
VisitPostsCreateResponse(w http.ResponseWriter) error
}
type PostsCreateSuccess ¶
type PostsCreateSuccess = Post
PostsCreateSuccess A post within a thread of posts.
type PostsCreateSuccessJSONResponse ¶
type PostsCreateSuccessJSONResponse Post
type PostsCreatedefaultJSONResponse ¶
func (PostsCreatedefaultJSONResponse) VisitPostsCreateResponse ¶
func (response PostsCreatedefaultJSONResponse) VisitPostsCreateResponse(w http.ResponseWriter) error
type ProfileReference ¶
type ProfileReference struct { // Id A unique identifier for this resource. Id *Identifier `json:"id,omitempty"` // Name The username of an account. Name *AccountName `json:"name,omitempty"` }
ProfileReference A minimal reference to an account.
type ProfilesGet200JSONResponse ¶
type ProfilesGet200JSONResponse = ProfilesGetSuccessJSONResponse
func (ProfilesGet200JSONResponse) VisitProfilesGetResponse ¶
func (response ProfilesGet200JSONResponse) VisitProfilesGetResponse(w http.ResponseWriter) error
type ProfilesGet401Response ¶
type ProfilesGet401Response = UnauthorisedResponse
func (ProfilesGet401Response) VisitProfilesGetResponse ¶
func (response ProfilesGet401Response) VisitProfilesGetResponse(w http.ResponseWriter) error
type ProfilesGet404Response ¶
type ProfilesGet404Response = NotFoundResponse
func (ProfilesGet404Response) VisitProfilesGetResponse ¶
func (response ProfilesGet404Response) VisitProfilesGetResponse(w http.ResponseWriter) error
type ProfilesGetRequestObject ¶
type ProfilesGetRequestObject struct {
AccountId AccountID `json:"account_id"`
}
type ProfilesGetResponseObject ¶
type ProfilesGetResponseObject interface {
VisitProfilesGetResponse(w http.ResponseWriter) error
}
type ProfilesGetSuccess ¶
type ProfilesGetSuccess = PublicProfile
ProfilesGetSuccess defines model for ProfilesGetSuccess.
type ProfilesGetSuccessJSONResponse ¶
type ProfilesGetSuccessJSONResponse PublicProfile
type ProfilesGetdefaultJSONResponse ¶
func (ProfilesGetdefaultJSONResponse) VisitProfilesGetResponse ¶
func (response ProfilesGetdefaultJSONResponse) VisitProfilesGetResponse(w http.ResponseWriter) error
type PublicProfile ¶
type PublicProfile struct { Bio *string `json:"bio,omitempty"` CreatedAt string `json:"createdAt"` // Id A unique identifier for this resource. Id Identifier `json:"id"` // Interests A list of tags. Interests TagList `json:"interests"` Name string `json:"name"` }
PublicProfile defines model for PublicProfile.
type React ¶
type React struct { Emoji *string `json:"emoji,omitempty"` // Id A unique identifier for this resource. Id *Identifier `json:"id,omitempty"` }
React defines model for React.
type ServerInterface ¶
type ServerInterface interface { // Get the OpenAPI 3.0 specification as JSON. // (GET /openapi.json) GetSpec(ctx echo.Context) error // Get the information for the currently authenticated account. // (GET /v1/accounts) AccountsGet(ctx echo.Context) error // Retrieve a list of OAuth2 providers and their links. // (GET /v1/auth/oauth) AuthOAuthProviderList(ctx echo.Context) error // Sign in to an existing account with a username and password. // (POST /v1/auth/oauth/{oauth_provider}/callback) AuthOAuthProviderCallback(ctx echo.Context, oauthProvider OAuthProvider) error // Sign in to an existing account with a username and password. // (POST /v1/auth/password/signin) AuthPasswordSignin(ctx echo.Context) error // Register a new account with a username and password. // (POST /v1/auth/password/signup) AuthPasswordSignup(ctx echo.Context) error // Complete the credential assertion and sign in to an account. // (GET /v1/auth/webauthn/assert) WebAuthnMakeAssertion(ctx echo.Context) error // Start the WebAuthn assertion for an existing account. // (POST /v1/auth/webauthn/assert/{account_handle}) WebAuthnGetAssertion(ctx echo.Context, accountHandle AccountHandle) error // Complete WebAuthn registration by creating a new credential. // (GET /v1/auth/webauthn/make) WebAuthnMakeCredential(ctx echo.Context) error // Start the WebAuthn registration process by requesting a credential. // (POST /v1/auth/webauthn/make/{account_handle}) WebAuthnRequestCredential(ctx echo.Context, accountHandle AccountHandle) error // Get a public profile by ID. // (GET /v1/profiles/{account_id}) ProfilesGet(ctx echo.Context, accountId AccountID) error // Get a list of all threads. // (GET /v1/threads) ThreadsList(ctx echo.Context) error // Create a new thread within the specified category. // (POST /v1/threads) ThreadsCreate(ctx echo.Context) error // Get information about a thread and the posts within the thread. // (GET /v1/threads/{thread_id}) ThreadsGet(ctx echo.Context, threadId ThreadID) error // Create a new post within a thread. // (POST /v1/threads/{thread_id}/posts) PostsCreate(ctx echo.Context, threadId ThreadID) error // Get the software version string. // (GET /version) GetVersion(ctx echo.Context) error }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) AccountsGet ¶
func (w *ServerInterfaceWrapper) AccountsGet(ctx echo.Context) error
AccountsGet converts echo context to params.
func (*ServerInterfaceWrapper) AuthOAuthProviderCallback ¶
func (w *ServerInterfaceWrapper) AuthOAuthProviderCallback(ctx echo.Context) error
AuthOAuthProviderCallback converts echo context to params.
func (*ServerInterfaceWrapper) AuthOAuthProviderList ¶
func (w *ServerInterfaceWrapper) AuthOAuthProviderList(ctx echo.Context) error
AuthOAuthProviderList converts echo context to params.
func (*ServerInterfaceWrapper) AuthPasswordSignin ¶
func (w *ServerInterfaceWrapper) AuthPasswordSignin(ctx echo.Context) error
AuthPasswordSignin converts echo context to params.
func (*ServerInterfaceWrapper) AuthPasswordSignup ¶
func (w *ServerInterfaceWrapper) AuthPasswordSignup(ctx echo.Context) error
AuthPasswordSignup converts echo context to params.
func (*ServerInterfaceWrapper) GetSpec ¶
func (w *ServerInterfaceWrapper) GetSpec(ctx echo.Context) error
GetSpec converts echo context to params.
func (*ServerInterfaceWrapper) GetVersion ¶
func (w *ServerInterfaceWrapper) GetVersion(ctx echo.Context) error
GetVersion converts echo context to params.
func (*ServerInterfaceWrapper) PostsCreate ¶
func (w *ServerInterfaceWrapper) PostsCreate(ctx echo.Context) error
PostsCreate converts echo context to params.
func (*ServerInterfaceWrapper) ProfilesGet ¶
func (w *ServerInterfaceWrapper) ProfilesGet(ctx echo.Context) error
ProfilesGet converts echo context to params.
func (*ServerInterfaceWrapper) ThreadsCreate ¶
func (w *ServerInterfaceWrapper) ThreadsCreate(ctx echo.Context) error
ThreadsCreate converts echo context to params.
func (*ServerInterfaceWrapper) ThreadsGet ¶
func (w *ServerInterfaceWrapper) ThreadsGet(ctx echo.Context) error
ThreadsGet converts echo context to params.
func (*ServerInterfaceWrapper) ThreadsList ¶
func (w *ServerInterfaceWrapper) ThreadsList(ctx echo.Context) error
ThreadsList converts echo context to params.
func (*ServerInterfaceWrapper) WebAuthnGetAssertion ¶
func (w *ServerInterfaceWrapper) WebAuthnGetAssertion(ctx echo.Context) error
WebAuthnGetAssertion converts echo context to params.
func (*ServerInterfaceWrapper) WebAuthnMakeAssertion ¶
func (w *ServerInterfaceWrapper) WebAuthnMakeAssertion(ctx echo.Context) error
WebAuthnMakeAssertion converts echo context to params.
func (*ServerInterfaceWrapper) WebAuthnMakeCredential ¶
func (w *ServerInterfaceWrapper) WebAuthnMakeCredential(ctx echo.Context) error
WebAuthnMakeCredential converts echo context to params.
func (*ServerInterfaceWrapper) WebAuthnRequestCredential ¶
func (w *ServerInterfaceWrapper) WebAuthnRequestCredential(ctx echo.Context) error
WebAuthnRequestCredential converts echo context to params.
type StrictHandlerFunc ¶
type StrictHandlerFunc func(ctx echo.Context, args interface{}) (interface{}, error)
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Get the OpenAPI 3.0 specification as JSON. // (GET /openapi.json) GetSpec(ctx context.Context, request GetSpecRequestObject) (GetSpecResponseObject, error) // Get the information for the currently authenticated account. // (GET /v1/accounts) AccountsGet(ctx context.Context, request AccountsGetRequestObject) (AccountsGetResponseObject, error) // Retrieve a list of OAuth2 providers and their links. // (GET /v1/auth/oauth) AuthOAuthProviderList(ctx context.Context, request AuthOAuthProviderListRequestObject) (AuthOAuthProviderListResponseObject, error) // Sign in to an existing account with a username and password. // (POST /v1/auth/oauth/{oauth_provider}/callback) AuthOAuthProviderCallback(ctx context.Context, request AuthOAuthProviderCallbackRequestObject) (AuthOAuthProviderCallbackResponseObject, error) // Sign in to an existing account with a username and password. // (POST /v1/auth/password/signin) AuthPasswordSignin(ctx context.Context, request AuthPasswordSigninRequestObject) (AuthPasswordSigninResponseObject, error) // Register a new account with a username and password. // (POST /v1/auth/password/signup) AuthPasswordSignup(ctx context.Context, request AuthPasswordSignupRequestObject) (AuthPasswordSignupResponseObject, error) // Complete the credential assertion and sign in to an account. // (GET /v1/auth/webauthn/assert) WebAuthnMakeAssertion(ctx context.Context, request WebAuthnMakeAssertionRequestObject) (WebAuthnMakeAssertionResponseObject, error) // Start the WebAuthn assertion for an existing account. // (POST /v1/auth/webauthn/assert/{account_handle}) WebAuthnGetAssertion(ctx context.Context, request WebAuthnGetAssertionRequestObject) (WebAuthnGetAssertionResponseObject, error) // Complete WebAuthn registration by creating a new credential. // (GET /v1/auth/webauthn/make) WebAuthnMakeCredential(ctx context.Context, request WebAuthnMakeCredentialRequestObject) (WebAuthnMakeCredentialResponseObject, error) // Start the WebAuthn registration process by requesting a credential. // (POST /v1/auth/webauthn/make/{account_handle}) WebAuthnRequestCredential(ctx context.Context, request WebAuthnRequestCredentialRequestObject) (WebAuthnRequestCredentialResponseObject, error) // Get a public profile by ID. // (GET /v1/profiles/{account_id}) ProfilesGet(ctx context.Context, request ProfilesGetRequestObject) (ProfilesGetResponseObject, error) // Get a list of all threads. // (GET /v1/threads) ThreadsList(ctx context.Context, request ThreadsListRequestObject) (ThreadsListResponseObject, error) // Create a new thread within the specified category. // (POST /v1/threads) ThreadsCreate(ctx context.Context, request ThreadsCreateRequestObject) (ThreadsCreateResponseObject, error) // Get information about a thread and the posts within the thread. // (GET /v1/threads/{thread_id}) ThreadsGet(ctx context.Context, request ThreadsGetRequestObject) (ThreadsGetResponseObject, error) // Create a new post within a thread. // (POST /v1/threads/{thread_id}/posts) PostsCreate(ctx context.Context, request PostsCreateRequestObject) (PostsCreateResponseObject, error) // Get the software version string. // (GET /version) GetVersion(ctx context.Context, request GetVersionRequestObject) (GetVersionResponseObject, error) }
StrictServerInterface represents all server handlers.
type Thread ¶
type Thread struct { // Author A minimal reference to an account. Author ProfileReference `json:"author"` Category Category `json:"category"` // CreatedAt The time the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt The time the resource was soft-deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Id A unique identifier for this resource. Id Identifier `json:"id"` // Pinned Whether the thread is pinned in this category. Pinned bool `json:"pinned"` Posts []Post `json:"posts"` // Reacts A list of reactions this post has had from people. Reacts []React `json:"reacts"` // Short A short version of the thread's body text for use in previews. Short *string `json:"short,omitempty"` // Slug A URL friendly slug which is prepended with the post ID // for uniqueness and sortability. Slug *string `json:"slug,omitempty"` // Tags A list of tags associated with the thread. Tags []string `json:"tags"` // Title The title of the thread. Title string `json:"title"` // UpdatedAt The time the resource was updated. UpdatedAt time.Time `json:"updatedAt"` }
Thread defines model for Thread.
type ThreadReference ¶
type ThreadReference struct { // Author A minimal reference to an account. Author ProfileReference `json:"author"` Category Category `json:"category"` // CreatedAt The time the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt The time the resource was soft-deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Id A unique identifier for this resource. Id Identifier `json:"id"` // Pinned Whether the thread is pinned in this category. Pinned bool `json:"pinned"` // Posts The number of posts under this thread. Posts *int `json:"posts,omitempty"` // Reacts A list of reactions this post has had from people. Reacts []React `json:"reacts"` // Short A short version of the thread's body text for use in previews. Short *string `json:"short,omitempty"` // Slug A URL friendly slug which is prepended with the post ID // for uniqueness and sortability. Slug *string `json:"slug,omitempty"` // Tags A list of tags associated with the thread. Tags []string `json:"tags"` // Title The title of the thread. Title string `json:"title"` // UpdatedAt The time the resource was updated. UpdatedAt time.Time `json:"updatedAt"` }
ThreadReference defines model for ThreadReference.
type ThreadsCreate ¶
type ThreadsCreate = ThreadsCreateBody
ThreadsCreate defines model for ThreadsCreate.
type ThreadsCreate200JSONResponse ¶
type ThreadsCreate200JSONResponse = ThreadsCreateSuccessJSONResponse
func (ThreadsCreate200JSONResponse) VisitThreadsCreateResponse ¶
func (response ThreadsCreate200JSONResponse) VisitThreadsCreateResponse(w http.ResponseWriter) error
type ThreadsCreate401Response ¶
type ThreadsCreate401Response = UnauthorisedResponse
func (ThreadsCreate401Response) VisitThreadsCreateResponse ¶
func (response ThreadsCreate401Response) VisitThreadsCreateResponse(w http.ResponseWriter) error
type ThreadsCreate404Response ¶
type ThreadsCreate404Response = NotFoundResponse
func (ThreadsCreate404Response) VisitThreadsCreateResponse ¶
func (response ThreadsCreate404Response) VisitThreadsCreateResponse(w http.ResponseWriter) error
type ThreadsCreateBody ¶
type ThreadsCreateBody struct { // Body The body text of a post within a thread. Body PostBodyMarkdown `json:"body"` // Category A unique identifier for this resource. Category Identifier `json:"category"` // Tags A list of tags. Tags TagList `json:"tags"` // Title The title of a thread. Title ThreadTitle `json:"title"` }
ThreadsCreateBody defines model for ThreadsCreateBody.
type ThreadsCreateFormdataRequestBody ¶
type ThreadsCreateFormdataRequestBody = ThreadsCreateBody
ThreadsCreateFormdataRequestBody defines body for ThreadsCreate for application/x-www-form-urlencoded ContentType.
type ThreadsCreateJSONRequestBody ¶
type ThreadsCreateJSONRequestBody = ThreadsCreateBody
ThreadsCreateJSONRequestBody defines body for ThreadsCreate for application/json ContentType.
type ThreadsCreateRequestObject ¶
type ThreadsCreateRequestObject struct { JSONBody *ThreadsCreateJSONRequestBody FormdataBody *ThreadsCreateFormdataRequestBody }
type ThreadsCreateResponseObject ¶
type ThreadsCreateResponseObject interface {
VisitThreadsCreateResponse(w http.ResponseWriter) error
}
type ThreadsCreateSuccess ¶
type ThreadsCreateSuccess = Thread
ThreadsCreateSuccess defines model for ThreadsCreateSuccess.
type ThreadsCreateSuccessJSONResponse ¶
type ThreadsCreateSuccessJSONResponse Thread
type ThreadsCreatedefaultJSONResponse ¶
func (ThreadsCreatedefaultJSONResponse) VisitThreadsCreateResponse ¶
func (response ThreadsCreatedefaultJSONResponse) VisitThreadsCreateResponse(w http.ResponseWriter) error
type ThreadsGet200JSONResponse ¶
type ThreadsGet200JSONResponse = ThreadsGetJSONResponse
func (ThreadsGet200JSONResponse) VisitThreadsGetResponse ¶
func (response ThreadsGet200JSONResponse) VisitThreadsGetResponse(w http.ResponseWriter) error
type ThreadsGet401Response ¶
type ThreadsGet401Response = UnauthorisedResponse
func (ThreadsGet401Response) VisitThreadsGetResponse ¶
func (response ThreadsGet401Response) VisitThreadsGetResponse(w http.ResponseWriter) error
type ThreadsGet404Response ¶
type ThreadsGet404Response = NotFoundResponse
func (ThreadsGet404Response) VisitThreadsGetResponse ¶
func (response ThreadsGet404Response) VisitThreadsGetResponse(w http.ResponseWriter) error
type ThreadsGetJSONResponse ¶
type ThreadsGetJSONResponse Thread
type ThreadsGetRequestObject ¶
type ThreadsGetRequestObject struct {
ThreadId ThreadID `json:"thread_id"`
}
type ThreadsGetResponseObject ¶
type ThreadsGetResponseObject interface {
VisitThreadsGetResponse(w http.ResponseWriter) error
}
type ThreadsGetdefaultJSONResponse ¶
func (ThreadsGetdefaultJSONResponse) VisitThreadsGetResponse ¶
func (response ThreadsGetdefaultJSONResponse) VisitThreadsGetResponse(w http.ResponseWriter) error
type ThreadsList200JSONResponse ¶
type ThreadsList200JSONResponse = ThreadsListJSONResponse
func (ThreadsList200JSONResponse) VisitThreadsListResponse ¶
func (response ThreadsList200JSONResponse) VisitThreadsListResponse(w http.ResponseWriter) error
type ThreadsList401Response ¶
type ThreadsList401Response = UnauthorisedResponse
func (ThreadsList401Response) VisitThreadsListResponse ¶
func (response ThreadsList401Response) VisitThreadsListResponse(w http.ResponseWriter) error
type ThreadsList404Response ¶
type ThreadsList404Response = NotFoundResponse
func (ThreadsList404Response) VisitThreadsListResponse ¶
func (response ThreadsList404Response) VisitThreadsListResponse(w http.ResponseWriter) error
type ThreadsListJSONResponse ¶
type ThreadsListJSONResponse []ThreadReference
type ThreadsListRequestObject ¶
type ThreadsListRequestObject struct { }
type ThreadsListResponseObject ¶
type ThreadsListResponseObject interface {
VisitThreadsListResponse(w http.ResponseWriter) error
}
type ThreadsListdefaultJSONResponse ¶
func (ThreadsListdefaultJSONResponse) VisitThreadsListResponse ¶
func (response ThreadsListdefaultJSONResponse) VisitThreadsListResponse(w http.ResponseWriter) error
type UnauthorisedResponse ¶
type UnauthorisedResponse struct { }
type WebAuthnGetAssertion200JSONResponse ¶
type WebAuthnGetAssertion200JSONResponse = AuthSuccessJSONResponse
func (WebAuthnGetAssertion200JSONResponse) VisitWebAuthnGetAssertionResponse ¶
func (response WebAuthnGetAssertion200JSONResponse) VisitWebAuthnGetAssertionResponse(w http.ResponseWriter) error
type WebAuthnGetAssertion401Response ¶
type WebAuthnGetAssertion401Response = UnauthorisedResponse
func (WebAuthnGetAssertion401Response) VisitWebAuthnGetAssertionResponse ¶
func (response WebAuthnGetAssertion401Response) VisitWebAuthnGetAssertionResponse(w http.ResponseWriter) error
type WebAuthnGetAssertion404Response ¶
type WebAuthnGetAssertion404Response = NotFoundResponse
func (WebAuthnGetAssertion404Response) VisitWebAuthnGetAssertionResponse ¶
func (response WebAuthnGetAssertion404Response) VisitWebAuthnGetAssertionResponse(w http.ResponseWriter) error
type WebAuthnGetAssertionFormdataRequestBody ¶
type WebAuthnGetAssertionFormdataRequestBody = AuthPasswordBody
WebAuthnGetAssertionFormdataRequestBody defines body for WebAuthnGetAssertion for application/x-www-form-urlencoded ContentType.
type WebAuthnGetAssertionJSONRequestBody ¶
type WebAuthnGetAssertionJSONRequestBody = AuthPasswordBody
WebAuthnGetAssertionJSONRequestBody defines body for WebAuthnGetAssertion for application/json ContentType.
type WebAuthnGetAssertionRequestObject ¶
type WebAuthnGetAssertionRequestObject struct { AccountHandle AccountHandle `json:"account_handle"` JSONBody *WebAuthnGetAssertionJSONRequestBody FormdataBody *WebAuthnGetAssertionFormdataRequestBody }
type WebAuthnGetAssertionResponseObject ¶
type WebAuthnGetAssertionResponseObject interface {
VisitWebAuthnGetAssertionResponse(w http.ResponseWriter) error
}
type WebAuthnGetAssertiondefaultJSONResponse ¶
func (WebAuthnGetAssertiondefaultJSONResponse) VisitWebAuthnGetAssertionResponse ¶
func (response WebAuthnGetAssertiondefaultJSONResponse) VisitWebAuthnGetAssertionResponse(w http.ResponseWriter) error
type WebAuthnMakeAssertion200JSONResponse ¶
type WebAuthnMakeAssertion200JSONResponse = AuthSuccessJSONResponse
func (WebAuthnMakeAssertion200JSONResponse) VisitWebAuthnMakeAssertionResponse ¶
func (response WebAuthnMakeAssertion200JSONResponse) VisitWebAuthnMakeAssertionResponse(w http.ResponseWriter) error
type WebAuthnMakeAssertion401Response ¶
type WebAuthnMakeAssertion401Response = UnauthorisedResponse
func (WebAuthnMakeAssertion401Response) VisitWebAuthnMakeAssertionResponse ¶
func (response WebAuthnMakeAssertion401Response) VisitWebAuthnMakeAssertionResponse(w http.ResponseWriter) error
type WebAuthnMakeAssertion404Response ¶
type WebAuthnMakeAssertion404Response = NotFoundResponse
func (WebAuthnMakeAssertion404Response) VisitWebAuthnMakeAssertionResponse ¶
func (response WebAuthnMakeAssertion404Response) VisitWebAuthnMakeAssertionResponse(w http.ResponseWriter) error
type WebAuthnMakeAssertionFormdataRequestBody ¶
type WebAuthnMakeAssertionFormdataRequestBody = AuthPasswordBody
WebAuthnMakeAssertionFormdataRequestBody defines body for WebAuthnMakeAssertion for application/x-www-form-urlencoded ContentType.
type WebAuthnMakeAssertionJSONRequestBody ¶
type WebAuthnMakeAssertionJSONRequestBody = AuthPasswordBody
WebAuthnMakeAssertionJSONRequestBody defines body for WebAuthnMakeAssertion for application/json ContentType.
type WebAuthnMakeAssertionRequestObject ¶
type WebAuthnMakeAssertionRequestObject struct { JSONBody *WebAuthnMakeAssertionJSONRequestBody FormdataBody *WebAuthnMakeAssertionFormdataRequestBody }
type WebAuthnMakeAssertionResponseObject ¶
type WebAuthnMakeAssertionResponseObject interface {
VisitWebAuthnMakeAssertionResponse(w http.ResponseWriter) error
}
type WebAuthnMakeAssertiondefaultJSONResponse ¶
func (WebAuthnMakeAssertiondefaultJSONResponse) VisitWebAuthnMakeAssertionResponse ¶
func (response WebAuthnMakeAssertiondefaultJSONResponse) VisitWebAuthnMakeAssertionResponse(w http.ResponseWriter) error
type WebAuthnMakeCredential200JSONResponse ¶
type WebAuthnMakeCredential200JSONResponse = AuthSuccessJSONResponse
func (WebAuthnMakeCredential200JSONResponse) VisitWebAuthnMakeCredentialResponse ¶
func (response WebAuthnMakeCredential200JSONResponse) VisitWebAuthnMakeCredentialResponse(w http.ResponseWriter) error
type WebAuthnMakeCredential400Response ¶
type WebAuthnMakeCredential400Response = BadRequestResponse
func (WebAuthnMakeCredential400Response) VisitWebAuthnMakeCredentialResponse ¶
func (response WebAuthnMakeCredential400Response) VisitWebAuthnMakeCredentialResponse(w http.ResponseWriter) error
type WebAuthnMakeCredentialJSONBody ¶
type WebAuthnMakeCredentialJSONBody = map[string]interface{}
WebAuthnMakeCredentialJSONBody defines parameters for WebAuthnMakeCredential.
type WebAuthnMakeCredentialJSONRequestBody ¶
type WebAuthnMakeCredentialJSONRequestBody = WebAuthnMakeCredentialJSONBody
WebAuthnMakeCredentialJSONRequestBody defines body for WebAuthnMakeCredential for application/json ContentType.
type WebAuthnMakeCredentialRequestObject ¶
type WebAuthnMakeCredentialRequestObject struct {
Body *WebAuthnMakeCredentialJSONRequestBody
}
type WebAuthnMakeCredentialResponseObject ¶
type WebAuthnMakeCredentialResponseObject interface {
VisitWebAuthnMakeCredentialResponse(w http.ResponseWriter) error
}
type WebAuthnMakeCredentialdefaultJSONResponse ¶
func (WebAuthnMakeCredentialdefaultJSONResponse) VisitWebAuthnMakeCredentialResponse ¶
func (response WebAuthnMakeCredentialdefaultJSONResponse) VisitWebAuthnMakeCredentialResponse(w http.ResponseWriter) error
type WebAuthnPublicKeyCreationOptions ¶
type WebAuthnPublicKeyCreationOptions any
WebAuthnPublicKeyCreationOptions defines model for WebAuthnPublicKeyCreationOptions.
type WebAuthnPublicKeyCreationOptionsJSONResponse ¶
type WebAuthnPublicKeyCreationOptionsJSONResponse struct { Body any Headers WebAuthnPublicKeyCreationOptionsResponseHeaders }
type WebAuthnPublicKeyCreationOptionsResponseHeaders ¶
type WebAuthnPublicKeyCreationOptionsResponseHeaders struct {
SetCookie string
}
type WebAuthnRequestCredential200JSONResponse ¶
type WebAuthnRequestCredential200JSONResponse = WebAuthnPublicKeyCreationOptionsJSONResponse
func (WebAuthnRequestCredential200JSONResponse) VisitWebAuthnRequestCredentialResponse ¶
func (response WebAuthnRequestCredential200JSONResponse) VisitWebAuthnRequestCredentialResponse(w http.ResponseWriter) error
type WebAuthnRequestCredential400Response ¶
type WebAuthnRequestCredential400Response = BadRequestResponse
func (WebAuthnRequestCredential400Response) VisitWebAuthnRequestCredentialResponse ¶
func (response WebAuthnRequestCredential400Response) VisitWebAuthnRequestCredentialResponse(w http.ResponseWriter) error
type WebAuthnRequestCredentialRequestObject ¶
type WebAuthnRequestCredentialRequestObject struct {
AccountHandle AccountHandle `json:"account_handle"`
}
type WebAuthnRequestCredentialResponseObject ¶
type WebAuthnRequestCredentialResponseObject interface {
VisitWebAuthnRequestCredentialResponse(w http.ResponseWriter) error
}
type WebAuthnRequestCredentialdefaultJSONResponse ¶
func (WebAuthnRequestCredentialdefaultJSONResponse) VisitWebAuthnRequestCredentialResponse ¶
func (response WebAuthnRequestCredentialdefaultJSONResponse) VisitWebAuthnRequestCredentialResponse(w http.ResponseWriter) error