Documentation ¶
Overview ¶
Package backend provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
Package backend provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
Index ¶
- Constants
- func NewDeleteEventsIdDocumentsDocumentIdRequest(server string, id Id, documentId DocumentId) (*http.Request, error)
- func NewDeleteEventsIdRequest(server string, id Id) (*http.Request, error)
- func NewDeleteUsersIdRequest(server string, id Id) (*http.Request, error)
- func NewDeleteUsersRequest(server string) (*http.Request, error)
- func NewGetEventsIdDocumentsDocumentIdRequest(server string, id Id, documentId DocumentId) (*http.Request, error)
- func NewGetEventsIdDocumentsRequest(server string, id Id, params *GetEventsIdDocumentsParams) (*http.Request, error)
- func NewGetEventsIdRequest(server string, id Id, params *GetEventsIdParams) (*http.Request, error)
- func NewGetEventsRequest(server string, params *GetEventsParams) (*http.Request, error)
- func NewGetUsersIdRequest(server string, id Id) (*http.Request, error)
- func NewGetUsersRequest(server string) (*http.Request, error)
- func NewPatchEventsIdDocumentsDocumentIdRequest(server string, id Id, documentId DocumentId, ...) (*http.Request, error)
- func NewPatchEventsIdDocumentsDocumentIdRequestWithBody(server string, id Id, documentId DocumentId, contentType string, ...) (*http.Request, error)
- func NewPatchEventsIdRequest(server string, id Id, body PatchEventsIdJSONRequestBody) (*http.Request, error)
- func NewPatchEventsIdRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchUsersIdRequest(server string, id Id, body PatchUsersIdJSONRequestBody) (*http.Request, error)
- func NewPatchUsersIdRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
- func NewPostEventsIdDocumentsRequest(server string, id Id, body PostEventsIdDocumentsJSONRequestBody) (*http.Request, error)
- func NewPostEventsIdDocumentsRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
- func NewPostEventsRequest(server string, body PostEventsJSONRequestBody) (*http.Request, error)
- func NewPostEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostResetRequest(server string) (*http.Request, error)
- func NewPostUsersIdStarRequest(server string, id Id) (*http.Request, error)
- func NewPostUsersRequest(server string, body PostUsersJSONRequestBody) (*http.Request, error)
- func NewPostUsersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostUsersSignInRequest(server string, body PostUsersSignInJSONRequestBody) (*http.Request, error)
- func NewPostUsersSignInRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type Client
- func (c *Client) DeleteEventsId(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, ...) (*http.Response, error)
- func (c *Client) DeleteUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteUsersId(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEvents(ctx context.Context, params *GetEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEventsId(ctx context.Context, id Id, params *GetEventsIdParams, ...) (*http.Response, error)
- func (c *Client) GetEventsIdDocuments(ctx context.Context, id Id, params *GetEventsIdDocumentsParams, ...) (*http.Response, error)
- func (c *Client) GetEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, ...) (*http.Response, error)
- func (c *Client) GetUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUsersId(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PatchEventsId(ctx context.Context, id Id, body PatchEventsIdJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, ...) (*http.Response, error)
- func (c *Client) PatchEventsIdDocumentsDocumentIdWithBody(ctx context.Context, id Id, documentId DocumentId, contentType string, ...) (*http.Response, error)
- func (c *Client) PatchEventsIdWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchUsersId(ctx context.Context, id Id, body PatchUsersIdJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchUsersIdWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostEvents(ctx context.Context, body PostEventsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostEventsIdDocuments(ctx context.Context, id Id, body PostEventsIdDocumentsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostEventsIdDocumentsWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostEventsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostReset(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostUsers(ctx context.Context, body PostUsersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostUsersIdStar(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostUsersSignIn(ctx context.Context, body PostUsersSignInJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostUsersSignInWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostUsersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, ...) (*DeleteEventsIdDocumentsDocumentIdResponse, error)
- func (c *ClientWithResponses) DeleteEventsIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*DeleteEventsIdResponse, error)
- func (c *ClientWithResponses) DeleteUsersIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*DeleteUsersIdResponse, error)
- func (c *ClientWithResponses) DeleteUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUsersResponse, error)
- func (c *ClientWithResponses) GetEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, ...) (*GetEventsIdDocumentsDocumentIdResponse, error)
- func (c *ClientWithResponses) GetEventsIdDocumentsWithResponse(ctx context.Context, id Id, params *GetEventsIdDocumentsParams, ...) (*GetEventsIdDocumentsResponse, error)
- func (c *ClientWithResponses) GetEventsIdWithResponse(ctx context.Context, id Id, params *GetEventsIdParams, ...) (*GetEventsIdResponse, error)
- func (c *ClientWithResponses) GetEventsWithResponse(ctx context.Context, params *GetEventsParams, reqEditors ...RequestEditorFn) (*GetEventsResponse, error)
- func (c *ClientWithResponses) GetUsersIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetUsersIdResponse, error)
- func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersResponse, error)
- func (c *ClientWithResponses) PatchEventsIdDocumentsDocumentIdWithBodyWithResponse(ctx context.Context, id Id, documentId DocumentId, contentType string, ...) (*PatchEventsIdDocumentsDocumentIdResponse, error)
- func (c *ClientWithResponses) PatchEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, ...) (*PatchEventsIdDocumentsDocumentIdResponse, error)
- func (c *ClientWithResponses) PatchEventsIdWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*PatchEventsIdResponse, error)
- func (c *ClientWithResponses) PatchEventsIdWithResponse(ctx context.Context, id Id, body PatchEventsIdJSONRequestBody, ...) (*PatchEventsIdResponse, error)
- func (c *ClientWithResponses) PatchUsersIdWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*PatchUsersIdResponse, error)
- func (c *ClientWithResponses) PatchUsersIdWithResponse(ctx context.Context, id Id, body PatchUsersIdJSONRequestBody, ...) (*PatchUsersIdResponse, error)
- func (c *ClientWithResponses) PostEventsIdDocumentsWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*PostEventsIdDocumentsResponse, error)
- func (c *ClientWithResponses) PostEventsIdDocumentsWithResponse(ctx context.Context, id Id, body PostEventsIdDocumentsJSONRequestBody, ...) (*PostEventsIdDocumentsResponse, error)
- func (c *ClientWithResponses) PostEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostEventsResponse, error)
- func (c *ClientWithResponses) PostEventsWithResponse(ctx context.Context, body PostEventsJSONRequestBody, ...) (*PostEventsResponse, error)
- func (c *ClientWithResponses) PostResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostResetResponse, error)
- func (c *ClientWithResponses) PostUsersIdStarWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*PostUsersIdStarResponse, error)
- func (c *ClientWithResponses) PostUsersSignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostUsersSignInResponse, error)
- func (c *ClientWithResponses) PostUsersSignInWithResponse(ctx context.Context, body PostUsersSignInJSONRequestBody, ...) (*PostUsersSignInResponse, error)
- func (c *ClientWithResponses) PostUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostUsersResponse, error)
- func (c *ClientWithResponses) PostUsersWithResponse(ctx context.Context, body PostUsersJSONRequestBody, ...) (*PostUsersResponse, error)
- type ClientWithResponsesInterface
- type CreateEventBody
- type CreateEventDatetime
- type CreateEventDocumentBody
- type CreateUserBody
- type DeleteEventsIdDocumentsDocumentIdResponse
- type DeleteEventsIdResponse
- type DeleteUsersIdResponse
- type DeleteUsersResponse
- type DocumentId
- type Embed
- type Event
- type EventDatetime
- type EventDocument
- type GetEventsIdDocumentsDocumentIdResponse
- type GetEventsIdDocumentsParams
- type GetEventsIdDocumentsResponse
- type GetEventsIdParams
- type GetEventsIdParamsEmbed
- type GetEventsIdResponse
- type GetEventsParams
- type GetEventsParamsEmbed
- type GetEventsResponse
- type GetUsersIdResponse
- type GetUsersResponse
- type HttpRequestDoer
- type Id
- type Location
- type LocationContain
- type LoginBody
- type Name
- type NameContain
- type PatchEventsIdDocumentsDocumentIdJSONRequestBody
- type PatchEventsIdDocumentsDocumentIdResponse
- type PatchEventsIdJSONRequestBody
- type PatchEventsIdResponse
- type PatchUsersIdJSONRequestBody
- type PatchUsersIdResponse
- type PostEventsIdDocumentsJSONRequestBody
- type PostEventsIdDocumentsResponse
- type PostEventsJSONRequestBody
- type PostEventsResponse
- type PostResetResponse
- type PostUsersIdStarResponse
- type PostUsersJSONRequestBody
- type PostUsersResponse
- type PostUsersSignInJSONRequestBody
- type PostUsersSignInResponse
- type RequestEditorFn
- type Token
- type UpdateEventBody
- type UpdateEventDocumentBody
- type UpdateUserBody
- type User
- type UserWithToken
Constants ¶
const (
BearerScopes = "Bearer.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeleteEventsIdDocumentsDocumentIdRequest ¶
func NewDeleteEventsIdDocumentsDocumentIdRequest(server string, id Id, documentId DocumentId) (*http.Request, error)
NewDeleteEventsIdDocumentsDocumentIdRequest generates requests for DeleteEventsIdDocumentsDocumentId
func NewDeleteEventsIdRequest ¶
NewDeleteEventsIdRequest generates requests for DeleteEventsId
func NewDeleteUsersIdRequest ¶
NewDeleteUsersIdRequest generates requests for DeleteUsersId
func NewDeleteUsersRequest ¶
NewDeleteUsersRequest generates requests for DeleteUsers
func NewGetEventsIdDocumentsDocumentIdRequest ¶
func NewGetEventsIdDocumentsDocumentIdRequest(server string, id Id, documentId DocumentId) (*http.Request, error)
NewGetEventsIdDocumentsDocumentIdRequest generates requests for GetEventsIdDocumentsDocumentId
func NewGetEventsIdDocumentsRequest ¶
func NewGetEventsIdDocumentsRequest(server string, id Id, params *GetEventsIdDocumentsParams) (*http.Request, error)
NewGetEventsIdDocumentsRequest generates requests for GetEventsIdDocuments
func NewGetEventsIdRequest ¶
NewGetEventsIdRequest generates requests for GetEventsId
func NewGetEventsRequest ¶
func NewGetEventsRequest(server string, params *GetEventsParams) (*http.Request, error)
NewGetEventsRequest generates requests for GetEvents
func NewGetUsersIdRequest ¶
NewGetUsersIdRequest generates requests for GetUsersId
func NewGetUsersRequest ¶
NewGetUsersRequest generates requests for GetUsers
func NewPatchEventsIdDocumentsDocumentIdRequest ¶
func NewPatchEventsIdDocumentsDocumentIdRequest(server string, id Id, documentId DocumentId, body PatchEventsIdDocumentsDocumentIdJSONRequestBody) (*http.Request, error)
NewPatchEventsIdDocumentsDocumentIdRequest calls the generic PatchEventsIdDocumentsDocumentId builder with application/json body
func NewPatchEventsIdDocumentsDocumentIdRequestWithBody ¶
func NewPatchEventsIdDocumentsDocumentIdRequestWithBody(server string, id Id, documentId DocumentId, contentType string, body io.Reader) (*http.Request, error)
NewPatchEventsIdDocumentsDocumentIdRequestWithBody generates requests for PatchEventsIdDocumentsDocumentId with any type of body
func NewPatchEventsIdRequest ¶
func NewPatchEventsIdRequest(server string, id Id, body PatchEventsIdJSONRequestBody) (*http.Request, error)
NewPatchEventsIdRequest calls the generic PatchEventsId builder with application/json body
func NewPatchEventsIdRequestWithBody ¶
func NewPatchEventsIdRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
NewPatchEventsIdRequestWithBody generates requests for PatchEventsId with any type of body
func NewPatchUsersIdRequest ¶
func NewPatchUsersIdRequest(server string, id Id, body PatchUsersIdJSONRequestBody) (*http.Request, error)
NewPatchUsersIdRequest calls the generic PatchUsersId builder with application/json body
func NewPatchUsersIdRequestWithBody ¶
func NewPatchUsersIdRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
NewPatchUsersIdRequestWithBody generates requests for PatchUsersId with any type of body
func NewPostEventsIdDocumentsRequest ¶
func NewPostEventsIdDocumentsRequest(server string, id Id, body PostEventsIdDocumentsJSONRequestBody) (*http.Request, error)
NewPostEventsIdDocumentsRequest calls the generic PostEventsIdDocuments builder with application/json body
func NewPostEventsIdDocumentsRequestWithBody ¶
func NewPostEventsIdDocumentsRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
NewPostEventsIdDocumentsRequestWithBody generates requests for PostEventsIdDocuments with any type of body
func NewPostEventsRequest ¶
func NewPostEventsRequest(server string, body PostEventsJSONRequestBody) (*http.Request, error)
NewPostEventsRequest calls the generic PostEvents builder with application/json body
func NewPostEventsRequestWithBody ¶
func NewPostEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostEventsRequestWithBody generates requests for PostEvents with any type of body
func NewPostResetRequest ¶
NewPostResetRequest generates requests for PostReset
func NewPostUsersIdStarRequest ¶
NewPostUsersIdStarRequest generates requests for PostUsersIdStar
func NewPostUsersRequest ¶
func NewPostUsersRequest(server string, body PostUsersJSONRequestBody) (*http.Request, error)
NewPostUsersRequest calls the generic PostUsers builder with application/json body
func NewPostUsersRequestWithBody ¶
func NewPostUsersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostUsersRequestWithBody generates requests for PostUsers with any type of body
func NewPostUsersSignInRequest ¶
func NewPostUsersSignInRequest(server string, body PostUsersSignInJSONRequestBody) (*http.Request, error)
NewPostUsersSignInRequest calls the generic PostUsersSignIn builder with application/json body
Types ¶
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) DeleteEventsId ¶
func (*Client) DeleteEventsIdDocumentsDocumentId ¶
func (c *Client) DeleteEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteUsers ¶
func (*Client) DeleteUsersId ¶
func (*Client) GetEvents ¶
func (c *Client) GetEvents(ctx context.Context, params *GetEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEventsId ¶
func (c *Client) GetEventsId(ctx context.Context, id Id, params *GetEventsIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEventsIdDocuments ¶
func (c *Client) GetEventsIdDocuments(ctx context.Context, id Id, params *GetEventsIdDocumentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEventsIdDocumentsDocumentId ¶
func (c *Client) GetEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUsersId ¶
func (*Client) PatchEventsId ¶
func (c *Client) PatchEventsId(ctx context.Context, id Id, body PatchEventsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PatchEventsIdDocumentsDocumentId ¶
func (c *Client) PatchEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, body PatchEventsIdDocumentsDocumentIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PatchEventsIdDocumentsDocumentIdWithBody ¶
func (*Client) PatchEventsIdWithBody ¶
func (*Client) PatchUsersId ¶
func (c *Client) PatchUsersId(ctx context.Context, id Id, body PatchUsersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PatchUsersIdWithBody ¶
func (*Client) PostEvents ¶
func (c *Client) PostEvents(ctx context.Context, body PostEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostEventsIdDocuments ¶
func (c *Client) PostEventsIdDocuments(ctx context.Context, id Id, body PostEventsIdDocumentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostEventsIdDocumentsWithBody ¶
func (*Client) PostEventsWithBody ¶
func (*Client) PostUsers ¶
func (c *Client) PostUsers(ctx context.Context, body PostUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostUsersIdStar ¶
func (*Client) PostUsersSignIn ¶
func (c *Client) PostUsersSignIn(ctx context.Context, body PostUsersSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostUsersSignInWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // GetEvents request GetEvents(ctx context.Context, params *GetEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PostEvents request with any body PostEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostEvents(ctx context.Context, body PostEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteEventsId request DeleteEventsId(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEventsId request GetEventsId(ctx context.Context, id Id, params *GetEventsIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PatchEventsId request with any body PatchEventsIdWithBody(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PatchEventsId(ctx context.Context, id Id, body PatchEventsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEventsIdDocuments request GetEventsIdDocuments(ctx context.Context, id Id, params *GetEventsIdDocumentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PostEventsIdDocuments request with any body PostEventsIdDocumentsWithBody(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostEventsIdDocuments(ctx context.Context, id Id, body PostEventsIdDocumentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteEventsIdDocumentsDocumentId request DeleteEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEventsIdDocumentsDocumentId request GetEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*http.Response, error) // PatchEventsIdDocumentsDocumentId request with any body PatchEventsIdDocumentsDocumentIdWithBody(ctx context.Context, id Id, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PatchEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, body PatchEventsIdDocumentsDocumentIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostReset request PostReset(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteUsers request DeleteUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUsers request GetUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostUsers request with any body PostUsersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostUsers(ctx context.Context, body PostUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostUsersSignIn request with any body PostUsersSignInWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostUsersSignIn(ctx context.Context, body PostUsersSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteUsersId request DeleteUsersId(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUsersId request GetUsersId(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) // PatchUsersId request with any body PatchUsersIdWithBody(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PatchUsersId(ctx context.Context, id Id, body PatchUsersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostUsersIdStar request PostUsersIdStar(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteEventsIdDocumentsDocumentIdWithResponse ¶
func (c *ClientWithResponses) DeleteEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*DeleteEventsIdDocumentsDocumentIdResponse, error)
DeleteEventsIdDocumentsDocumentIdWithResponse request returning *DeleteEventsIdDocumentsDocumentIdResponse
func (*ClientWithResponses) DeleteEventsIdWithResponse ¶
func (c *ClientWithResponses) DeleteEventsIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*DeleteEventsIdResponse, error)
DeleteEventsIdWithResponse request returning *DeleteEventsIdResponse
func (*ClientWithResponses) DeleteUsersIdWithResponse ¶
func (c *ClientWithResponses) DeleteUsersIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*DeleteUsersIdResponse, error)
DeleteUsersIdWithResponse request returning *DeleteUsersIdResponse
func (*ClientWithResponses) DeleteUsersWithResponse ¶
func (c *ClientWithResponses) DeleteUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUsersResponse, error)
DeleteUsersWithResponse request returning *DeleteUsersResponse
func (*ClientWithResponses) GetEventsIdDocumentsDocumentIdWithResponse ¶
func (c *ClientWithResponses) GetEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*GetEventsIdDocumentsDocumentIdResponse, error)
GetEventsIdDocumentsDocumentIdWithResponse request returning *GetEventsIdDocumentsDocumentIdResponse
func (*ClientWithResponses) GetEventsIdDocumentsWithResponse ¶
func (c *ClientWithResponses) GetEventsIdDocumentsWithResponse(ctx context.Context, id Id, params *GetEventsIdDocumentsParams, reqEditors ...RequestEditorFn) (*GetEventsIdDocumentsResponse, error)
GetEventsIdDocumentsWithResponse request returning *GetEventsIdDocumentsResponse
func (*ClientWithResponses) GetEventsIdWithResponse ¶
func (c *ClientWithResponses) GetEventsIdWithResponse(ctx context.Context, id Id, params *GetEventsIdParams, reqEditors ...RequestEditorFn) (*GetEventsIdResponse, error)
GetEventsIdWithResponse request returning *GetEventsIdResponse
func (*ClientWithResponses) GetEventsWithResponse ¶
func (c *ClientWithResponses) GetEventsWithResponse(ctx context.Context, params *GetEventsParams, reqEditors ...RequestEditorFn) (*GetEventsResponse, error)
GetEventsWithResponse request returning *GetEventsResponse
func (*ClientWithResponses) GetUsersIdWithResponse ¶
func (c *ClientWithResponses) GetUsersIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetUsersIdResponse, error)
GetUsersIdWithResponse request returning *GetUsersIdResponse
func (*ClientWithResponses) GetUsersWithResponse ¶
func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersResponse, error)
GetUsersWithResponse request returning *GetUsersResponse
func (*ClientWithResponses) PatchEventsIdDocumentsDocumentIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchEventsIdDocumentsDocumentIdWithBodyWithResponse(ctx context.Context, id Id, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchEventsIdDocumentsDocumentIdResponse, error)
PatchEventsIdDocumentsDocumentIdWithBodyWithResponse request with arbitrary body returning *PatchEventsIdDocumentsDocumentIdResponse
func (*ClientWithResponses) PatchEventsIdDocumentsDocumentIdWithResponse ¶
func (c *ClientWithResponses) PatchEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, body PatchEventsIdDocumentsDocumentIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchEventsIdDocumentsDocumentIdResponse, error)
func (*ClientWithResponses) PatchEventsIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchEventsIdWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchEventsIdResponse, error)
PatchEventsIdWithBodyWithResponse request with arbitrary body returning *PatchEventsIdResponse
func (*ClientWithResponses) PatchEventsIdWithResponse ¶
func (c *ClientWithResponses) PatchEventsIdWithResponse(ctx context.Context, id Id, body PatchEventsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchEventsIdResponse, error)
func (*ClientWithResponses) PatchUsersIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchUsersIdWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchUsersIdResponse, error)
PatchUsersIdWithBodyWithResponse request with arbitrary body returning *PatchUsersIdResponse
func (*ClientWithResponses) PatchUsersIdWithResponse ¶
func (c *ClientWithResponses) PatchUsersIdWithResponse(ctx context.Context, id Id, body PatchUsersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchUsersIdResponse, error)
func (*ClientWithResponses) PostEventsIdDocumentsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostEventsIdDocumentsWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostEventsIdDocumentsResponse, error)
PostEventsIdDocumentsWithBodyWithResponse request with arbitrary body returning *PostEventsIdDocumentsResponse
func (*ClientWithResponses) PostEventsIdDocumentsWithResponse ¶
func (c *ClientWithResponses) PostEventsIdDocumentsWithResponse(ctx context.Context, id Id, body PostEventsIdDocumentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostEventsIdDocumentsResponse, error)
func (*ClientWithResponses) PostEventsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostEventsResponse, error)
PostEventsWithBodyWithResponse request with arbitrary body returning *PostEventsResponse
func (*ClientWithResponses) PostEventsWithResponse ¶
func (c *ClientWithResponses) PostEventsWithResponse(ctx context.Context, body PostEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostEventsResponse, error)
func (*ClientWithResponses) PostResetWithResponse ¶
func (c *ClientWithResponses) PostResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostResetResponse, error)
PostResetWithResponse request returning *PostResetResponse
func (*ClientWithResponses) PostUsersIdStarWithResponse ¶
func (c *ClientWithResponses) PostUsersIdStarWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*PostUsersIdStarResponse, error)
PostUsersIdStarWithResponse request returning *PostUsersIdStarResponse
func (*ClientWithResponses) PostUsersSignInWithBodyWithResponse ¶
func (c *ClientWithResponses) PostUsersSignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersSignInResponse, error)
PostUsersSignInWithBodyWithResponse request with arbitrary body returning *PostUsersSignInResponse
func (*ClientWithResponses) PostUsersSignInWithResponse ¶
func (c *ClientWithResponses) PostUsersSignInWithResponse(ctx context.Context, body PostUsersSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUsersSignInResponse, error)
func (*ClientWithResponses) PostUsersWithBodyWithResponse ¶
func (c *ClientWithResponses) PostUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersResponse, error)
PostUsersWithBodyWithResponse request with arbitrary body returning *PostUsersResponse
func (*ClientWithResponses) PostUsersWithResponse ¶
func (c *ClientWithResponses) PostUsersWithResponse(ctx context.Context, body PostUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUsersResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetEvents request GetEventsWithResponse(ctx context.Context, params *GetEventsParams, reqEditors ...RequestEditorFn) (*GetEventsResponse, error) // PostEvents request with any body PostEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostEventsResponse, error) PostEventsWithResponse(ctx context.Context, body PostEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostEventsResponse, error) // DeleteEventsId request DeleteEventsIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*DeleteEventsIdResponse, error) // GetEventsId request GetEventsIdWithResponse(ctx context.Context, id Id, params *GetEventsIdParams, reqEditors ...RequestEditorFn) (*GetEventsIdResponse, error) // PatchEventsId request with any body PatchEventsIdWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchEventsIdResponse, error) PatchEventsIdWithResponse(ctx context.Context, id Id, body PatchEventsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchEventsIdResponse, error) // GetEventsIdDocuments request GetEventsIdDocumentsWithResponse(ctx context.Context, id Id, params *GetEventsIdDocumentsParams, reqEditors ...RequestEditorFn) (*GetEventsIdDocumentsResponse, error) // PostEventsIdDocuments request with any body PostEventsIdDocumentsWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostEventsIdDocumentsResponse, error) PostEventsIdDocumentsWithResponse(ctx context.Context, id Id, body PostEventsIdDocumentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostEventsIdDocumentsResponse, error) // DeleteEventsIdDocumentsDocumentId request DeleteEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*DeleteEventsIdDocumentsDocumentIdResponse, error) // GetEventsIdDocumentsDocumentId request GetEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*GetEventsIdDocumentsDocumentIdResponse, error) // PatchEventsIdDocumentsDocumentId request with any body PatchEventsIdDocumentsDocumentIdWithBodyWithResponse(ctx context.Context, id Id, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchEventsIdDocumentsDocumentIdResponse, error) PatchEventsIdDocumentsDocumentIdWithResponse(ctx context.Context, id Id, documentId DocumentId, body PatchEventsIdDocumentsDocumentIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchEventsIdDocumentsDocumentIdResponse, error) // PostReset request PostResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostResetResponse, error) // DeleteUsers request DeleteUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUsersResponse, error) // GetUsers request GetUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) // PostUsers request with any body PostUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersResponse, error) PostUsersWithResponse(ctx context.Context, body PostUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUsersResponse, error) // PostUsersSignIn request with any body PostUsersSignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersSignInResponse, error) PostUsersSignInWithResponse(ctx context.Context, body PostUsersSignInJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUsersSignInResponse, error) // DeleteUsersId request DeleteUsersIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*DeleteUsersIdResponse, error) // GetUsersId request GetUsersIdWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetUsersIdResponse, error) // PatchUsersId request with any body PatchUsersIdWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchUsersIdResponse, error) PatchUsersIdWithResponse(ctx context.Context, id Id, body PatchUsersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchUsersIdResponse, error) // PostUsersIdStar request PostUsersIdStarWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*PostUsersIdStarResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateEventBody ¶
type CreateEventBody struct { Completed *bool `json:"completed,omitempty"` Datetimes *[]CreateEventDatetime `json:"datetimes,omitempty"` Description *string `json:"description,omitempty"` Location *string `json:"location,omitempty"` Name string `json:"name"` Published *bool `json:"published,omitempty"` }
CreateEventBody defines model for CreateEventBody.
type CreateEventDatetime ¶
CreateEventDatetime defines model for CreateEventDatetime.
type CreateEventDocumentBody ¶
CreateEventDocumentBody defines model for CreateEventDocumentBody.
type CreateUserBody ¶
type CreateUserBody struct { Email openapi_types.Email `json:"email"` GithubUsername *string `json:"github_username,omitempty"` Name string `json:"name"` Password string `json:"password"` TwitterId *string `json:"twitter_id,omitempty"` }
CreateUserBody defines model for CreateUserBody.
type DeleteEventsIdDocumentsDocumentIdResponse ¶
func ParseDeleteEventsIdDocumentsDocumentIdResponse ¶
func ParseDeleteEventsIdDocumentsDocumentIdResponse(rsp *http.Response) (*DeleteEventsIdDocumentsDocumentIdResponse, error)
ParseDeleteEventsIdDocumentsDocumentIdResponse parses an HTTP response from a DeleteEventsIdDocumentsDocumentIdWithResponse call
func (DeleteEventsIdDocumentsDocumentIdResponse) Status ¶
func (r DeleteEventsIdDocumentsDocumentIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEventsIdDocumentsDocumentIdResponse) StatusCode ¶
func (r DeleteEventsIdDocumentsDocumentIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEventsIdResponse ¶
func ParseDeleteEventsIdResponse ¶
func ParseDeleteEventsIdResponse(rsp *http.Response) (*DeleteEventsIdResponse, error)
ParseDeleteEventsIdResponse parses an HTTP response from a DeleteEventsIdWithResponse call
func (DeleteEventsIdResponse) Status ¶
func (r DeleteEventsIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEventsIdResponse) StatusCode ¶
func (r DeleteEventsIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUsersIdResponse ¶
func ParseDeleteUsersIdResponse ¶
func ParseDeleteUsersIdResponse(rsp *http.Response) (*DeleteUsersIdResponse, error)
ParseDeleteUsersIdResponse parses an HTTP response from a DeleteUsersIdWithResponse call
func (DeleteUsersIdResponse) Status ¶
func (r DeleteUsersIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUsersIdResponse) StatusCode ¶
func (r DeleteUsersIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUsersResponse ¶
func ParseDeleteUsersResponse ¶
func ParseDeleteUsersResponse(rsp *http.Response) (*DeleteUsersResponse, error)
ParseDeleteUsersResponse parses an HTTP response from a DeleteUsersWithResponse call
func (DeleteUsersResponse) Status ¶
func (r DeleteUsersResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUsersResponse) StatusCode ¶
func (r DeleteUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Event ¶
type Event struct { Completed bool `json:"completed"` Datetimes []EventDatetime `json:"datetimes"` Description *string `json:"description,omitempty"` Documents *[]EventDocument `json:"documents,omitempty"` Id string `json:"id"` Location *string `json:"location,omitempty"` Name string `json:"name"` Published bool `json:"published"` User *User `json:"user,omitempty"` }
Event defines model for Event.
type EventDatetime ¶
EventDatetime defines model for EventDatetime.
type EventDocument ¶
type EventDocument struct { Id string `json:"id"` Name string `json:"name"` Url string `json:"url"` }
EventDocument defines model for EventDocument.
type GetEventsIdDocumentsDocumentIdResponse ¶
type GetEventsIdDocumentsDocumentIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]EventDocument }
func ParseGetEventsIdDocumentsDocumentIdResponse ¶
func ParseGetEventsIdDocumentsDocumentIdResponse(rsp *http.Response) (*GetEventsIdDocumentsDocumentIdResponse, error)
ParseGetEventsIdDocumentsDocumentIdResponse parses an HTTP response from a GetEventsIdDocumentsDocumentIdWithResponse call
func (GetEventsIdDocumentsDocumentIdResponse) Status ¶
func (r GetEventsIdDocumentsDocumentIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetEventsIdDocumentsDocumentIdResponse) StatusCode ¶
func (r GetEventsIdDocumentsDocumentIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEventsIdDocumentsParams ¶
type GetEventsIdDocumentsParams struct { Name *Name `form:"name,omitempty" json:"name,omitempty"` NameContain *NameContain `form:"name_contain,omitempty" json:"name_contain,omitempty"` }
GetEventsIdDocumentsParams defines parameters for GetEventsIdDocuments.
type GetEventsIdDocumentsResponse ¶
type GetEventsIdDocumentsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]EventDocument }
func ParseGetEventsIdDocumentsResponse ¶
func ParseGetEventsIdDocumentsResponse(rsp *http.Response) (*GetEventsIdDocumentsResponse, error)
ParseGetEventsIdDocumentsResponse parses an HTTP response from a GetEventsIdDocumentsWithResponse call
func (GetEventsIdDocumentsResponse) Status ¶
func (r GetEventsIdDocumentsResponse) Status() string
Status returns HTTPResponse.Status
func (GetEventsIdDocumentsResponse) StatusCode ¶
func (r GetEventsIdDocumentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEventsIdParams ¶
type GetEventsIdParams struct {
Embed *Embed `form:"embed,omitempty" json:"embed,omitempty"`
}
GetEventsIdParams defines parameters for GetEventsId.
type GetEventsIdParamsEmbed ¶
type GetEventsIdParamsEmbed string
GetEventsIdParamsEmbed defines parameters for GetEventsId.
type GetEventsIdResponse ¶
func ParseGetEventsIdResponse ¶
func ParseGetEventsIdResponse(rsp *http.Response) (*GetEventsIdResponse, error)
ParseGetEventsIdResponse parses an HTTP response from a GetEventsIdWithResponse call
func (GetEventsIdResponse) Status ¶
func (r GetEventsIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetEventsIdResponse) StatusCode ¶
func (r GetEventsIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEventsParams ¶
type GetEventsParams struct { Name *Name `form:"name,omitempty" json:"name,omitempty"` NameContain *NameContain `form:"name_contain,omitempty" json:"name_contain,omitempty"` Location *Location `form:"location,omitempty" json:"location,omitempty"` LocationContain *LocationContain `form:"location_contain,omitempty" json:"location_contain,omitempty"` Embed *Embed `form:"embed,omitempty" json:"embed,omitempty"` }
GetEventsParams defines parameters for GetEvents.
type GetEventsParamsEmbed ¶
type GetEventsParamsEmbed string
GetEventsParamsEmbed defines parameters for GetEvents.
type GetEventsResponse ¶
func ParseGetEventsResponse ¶
func ParseGetEventsResponse(rsp *http.Response) (*GetEventsResponse, error)
ParseGetEventsResponse parses an HTTP response from a GetEventsWithResponse call
func (GetEventsResponse) Status ¶
func (r GetEventsResponse) Status() string
Status returns HTTPResponse.Status
func (GetEventsResponse) StatusCode ¶
func (r GetEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUsersIdResponse ¶
func ParseGetUsersIdResponse ¶
func ParseGetUsersIdResponse(rsp *http.Response) (*GetUsersIdResponse, error)
ParseGetUsersIdResponse parses an HTTP response from a GetUsersIdWithResponse call
func (GetUsersIdResponse) Status ¶
func (r GetUsersIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetUsersIdResponse) StatusCode ¶
func (r GetUsersIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUsersResponse ¶
func ParseGetUsersResponse ¶
func ParseGetUsersResponse(rsp *http.Response) (*GetUsersResponse, error)
ParseGetUsersResponse parses an HTTP response from a GetUsersWithResponse call
func (GetUsersResponse) Status ¶
func (r GetUsersResponse) Status() string
Status returns HTTPResponse.Status
func (GetUsersResponse) StatusCode ¶
func (r GetUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LocationContain ¶
type LocationContain = string
LocationContain defines model for location_contain.
type LoginBody ¶
type LoginBody struct { Email openapi_types.Email `json:"email"` Password string `json:"password"` }
LoginBody defines model for LoginBody.
type PatchEventsIdDocumentsDocumentIdJSONRequestBody ¶
type PatchEventsIdDocumentsDocumentIdJSONRequestBody = UpdateEventDocumentBody
PatchEventsIdDocumentsDocumentIdJSONRequestBody defines body for PatchEventsIdDocumentsDocumentId for application/json ContentType.
type PatchEventsIdDocumentsDocumentIdResponse ¶
type PatchEventsIdDocumentsDocumentIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *EventDocument }
func ParsePatchEventsIdDocumentsDocumentIdResponse ¶
func ParsePatchEventsIdDocumentsDocumentIdResponse(rsp *http.Response) (*PatchEventsIdDocumentsDocumentIdResponse, error)
ParsePatchEventsIdDocumentsDocumentIdResponse parses an HTTP response from a PatchEventsIdDocumentsDocumentIdWithResponse call
func (PatchEventsIdDocumentsDocumentIdResponse) Status ¶
func (r PatchEventsIdDocumentsDocumentIdResponse) Status() string
Status returns HTTPResponse.Status
func (PatchEventsIdDocumentsDocumentIdResponse) StatusCode ¶
func (r PatchEventsIdDocumentsDocumentIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchEventsIdJSONRequestBody ¶
type PatchEventsIdJSONRequestBody = UpdateEventBody
PatchEventsIdJSONRequestBody defines body for PatchEventsId for application/json ContentType.
type PatchEventsIdResponse ¶
func ParsePatchEventsIdResponse ¶
func ParsePatchEventsIdResponse(rsp *http.Response) (*PatchEventsIdResponse, error)
ParsePatchEventsIdResponse parses an HTTP response from a PatchEventsIdWithResponse call
func (PatchEventsIdResponse) Status ¶
func (r PatchEventsIdResponse) Status() string
Status returns HTTPResponse.Status
func (PatchEventsIdResponse) StatusCode ¶
func (r PatchEventsIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchUsersIdJSONRequestBody ¶
type PatchUsersIdJSONRequestBody = UpdateUserBody
PatchUsersIdJSONRequestBody defines body for PatchUsersId for application/json ContentType.
type PatchUsersIdResponse ¶
type PatchUsersIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UserWithToken }
func ParsePatchUsersIdResponse ¶
func ParsePatchUsersIdResponse(rsp *http.Response) (*PatchUsersIdResponse, error)
ParsePatchUsersIdResponse parses an HTTP response from a PatchUsersIdWithResponse call
func (PatchUsersIdResponse) Status ¶
func (r PatchUsersIdResponse) Status() string
Status returns HTTPResponse.Status
func (PatchUsersIdResponse) StatusCode ¶
func (r PatchUsersIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostEventsIdDocumentsJSONRequestBody ¶
type PostEventsIdDocumentsJSONRequestBody = CreateEventDocumentBody
PostEventsIdDocumentsJSONRequestBody defines body for PostEventsIdDocuments for application/json ContentType.
type PostEventsIdDocumentsResponse ¶
type PostEventsIdDocumentsResponse struct { Body []byte HTTPResponse *http.Response JSON201 *[]EventDocument }
func ParsePostEventsIdDocumentsResponse ¶
func ParsePostEventsIdDocumentsResponse(rsp *http.Response) (*PostEventsIdDocumentsResponse, error)
ParsePostEventsIdDocumentsResponse parses an HTTP response from a PostEventsIdDocumentsWithResponse call
func (PostEventsIdDocumentsResponse) Status ¶
func (r PostEventsIdDocumentsResponse) Status() string
Status returns HTTPResponse.Status
func (PostEventsIdDocumentsResponse) StatusCode ¶
func (r PostEventsIdDocumentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostEventsJSONRequestBody ¶
type PostEventsJSONRequestBody = CreateEventBody
PostEventsJSONRequestBody defines body for PostEvents for application/json ContentType.
type PostEventsResponse ¶
func ParsePostEventsResponse ¶
func ParsePostEventsResponse(rsp *http.Response) (*PostEventsResponse, error)
ParsePostEventsResponse parses an HTTP response from a PostEventsWithResponse call
func (PostEventsResponse) Status ¶
func (r PostEventsResponse) Status() string
Status returns HTTPResponse.Status
func (PostEventsResponse) StatusCode ¶
func (r PostEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostResetResponse ¶
func ParsePostResetResponse ¶
func ParsePostResetResponse(rsp *http.Response) (*PostResetResponse, error)
ParsePostResetResponse parses an HTTP response from a PostResetWithResponse call
func (PostResetResponse) Status ¶
func (r PostResetResponse) Status() string
Status returns HTTPResponse.Status
func (PostResetResponse) StatusCode ¶
func (r PostResetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostUsersIdStarResponse ¶
type PostUsersIdStarResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Count *uint64 `json:"count,omitempty"` } }
func ParsePostUsersIdStarResponse ¶
func ParsePostUsersIdStarResponse(rsp *http.Response) (*PostUsersIdStarResponse, error)
ParsePostUsersIdStarResponse parses an HTTP response from a PostUsersIdStarWithResponse call
func (PostUsersIdStarResponse) Status ¶
func (r PostUsersIdStarResponse) Status() string
Status returns HTTPResponse.Status
func (PostUsersIdStarResponse) StatusCode ¶
func (r PostUsersIdStarResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostUsersJSONRequestBody ¶
type PostUsersJSONRequestBody = CreateUserBody
PostUsersJSONRequestBody defines body for PostUsers for application/json ContentType.
type PostUsersResponse ¶
type PostUsersResponse struct { Body []byte HTTPResponse *http.Response JSON201 *UserWithToken }
func ParsePostUsersResponse ¶
func ParsePostUsersResponse(rsp *http.Response) (*PostUsersResponse, error)
ParsePostUsersResponse parses an HTTP response from a PostUsersWithResponse call
func (PostUsersResponse) Status ¶
func (r PostUsersResponse) Status() string
Status returns HTTPResponse.Status
func (PostUsersResponse) StatusCode ¶
func (r PostUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostUsersSignInJSONRequestBody ¶
type PostUsersSignInJSONRequestBody = LoginBody
PostUsersSignInJSONRequestBody defines body for PostUsersSignIn for application/json ContentType.
type PostUsersSignInResponse ¶
func ParsePostUsersSignInResponse ¶
func ParsePostUsersSignInResponse(rsp *http.Response) (*PostUsersSignInResponse, error)
ParsePostUsersSignInResponse parses an HTTP response from a PostUsersSignInWithResponse call
func (PostUsersSignInResponse) Status ¶
func (r PostUsersSignInResponse) Status() string
Status returns HTTPResponse.Status
func (PostUsersSignInResponse) StatusCode ¶
func (r PostUsersSignInResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type UpdateEventBody ¶
type UpdateEventBody struct { Completed *bool `json:"completed,omitempty"` Datetimes *[]CreateEventDatetime `json:"datetimes,omitempty"` Description *string `json:"description,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Published *bool `json:"published,omitempty"` }
UpdateEventBody defines model for UpdateEventBody.
type UpdateEventDocumentBody ¶
type UpdateEventDocumentBody struct { Name *string `json:"name,omitempty"` Url *string `json:"url,omitempty"` }
UpdateEventDocumentBody defines model for UpdateEventDocumentBody.
type UpdateUserBody ¶
type UpdateUserBody struct { Email *string `json:"email,omitempty"` GithubUsername *string `json:"github_username,omitempty"` Manage *bool `json:"manage,omitempty"` Name *string `json:"name,omitempty"` Password *string `json:"password,omitempty"` PostEventAvailabled *bool `json:"post_event_availabled,omitempty"` TwitterId *string `json:"twitter_id,omitempty"` }
UpdateUserBody defines model for UpdateUserBody.
type User ¶
type User struct { Admin bool `json:"admin"` Email openapi_types.Email `json:"email"` GithubUsername *string `json:"github_username,omitempty"` Id string `json:"id"` Manage bool `json:"manage"` Name string `json:"name"` PostEventAvailabled bool `json:"post_event_availabled"` StarCount *uint64 `json:"star_count,omitempty"` TwitterId *string `json:"twitter_id,omitempty"` }
User defines model for User.
type UserWithToken ¶
type UserWithToken struct { Admin bool `json:"admin"` Email openapi_types.Email `json:"email"` GithubUsername *string `json:"github_username,omitempty"` Id string `json:"id"` Name string `json:"name"` PostEventAvailabled bool `json:"post_event_availabled"` Token string `json:"token"` TwitterId *string `json:"twitter_id,omitempty"` }
UserWithToken defines model for UserWithToken.