backend

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 11 Imported by: 0

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

View Source
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

func NewDeleteEventsIdRequest(server string, id Id) (*http.Request, error)

NewDeleteEventsIdRequest generates requests for DeleteEventsId

func NewDeleteUsersIdRequest

func NewDeleteUsersIdRequest(server string, id Id) (*http.Request, error)

NewDeleteUsersIdRequest generates requests for DeleteUsersId

func NewDeleteUsersRequest

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

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

func NewGetEventsIdRequest(server string, id Id, params *GetEventsIdParams) (*http.Request, error)

NewGetEventsIdRequest generates requests for GetEventsId

func NewGetEventsRequest

func NewGetEventsRequest(server string, params *GetEventsParams) (*http.Request, error)

NewGetEventsRequest generates requests for GetEvents

func NewGetUsersIdRequest

func NewGetUsersIdRequest(server string, id Id) (*http.Request, error)

NewGetUsersIdRequest generates requests for GetUsersId

func NewGetUsersRequest

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

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

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

NewPostResetRequest generates requests for PostReset

func NewPostUsersIdStarRequest

func NewPostUsersIdStarRequest(server string, id Id) (*http.Request, error)

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

func NewPostUsersSignInRequestWithBody

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

NewPostUsersSignInRequestWithBody generates requests for PostUsersSignIn with any type of 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 (c *Client) DeleteEventsId(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteEventsIdDocumentsDocumentId

func (c *Client) DeleteEventsIdDocumentsDocumentId(ctx context.Context, id Id, documentId DocumentId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteUsers

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

func (*Client) DeleteUsersId

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

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

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

func (*Client) GetUsersId

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

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 (c *Client) PatchEventsIdDocumentsDocumentIdWithBody(ctx context.Context, id Id, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchEventsIdWithBody

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

func (*Client) PatchUsersId

func (c *Client) PatchUsersId(ctx context.Context, id Id, body PatchUsersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchUsersIdWithBody

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

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 (c *Client) PostEventsIdDocumentsWithBody(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostEventsWithBody

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

func (*Client) PostReset

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

func (*Client) PostUsers

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

func (*Client) PostUsersIdStar

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

func (*Client) PostUsersSignIn

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

func (*Client) PostUsersSignInWithBody

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

func (*Client) PostUsersWithBody

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

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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) 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

type CreateEventDatetime struct {
	End   string `json:"end"`
	Start string `json:"start"`
}

CreateEventDatetime defines model for CreateEventDatetime.

type CreateEventDocumentBody

type CreateEventDocumentBody struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

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

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

func ParseDeleteEventsIdDocumentsDocumentIdResponse

func ParseDeleteEventsIdDocumentsDocumentIdResponse(rsp *http.Response) (*DeleteEventsIdDocumentsDocumentIdResponse, error)

ParseDeleteEventsIdDocumentsDocumentIdResponse parses an HTTP response from a DeleteEventsIdDocumentsDocumentIdWithResponse call

func (DeleteEventsIdDocumentsDocumentIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteEventsIdDocumentsDocumentIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteEventsIdResponse

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

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

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

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

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

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 DocumentId

type DocumentId = string

DocumentId defines model for document_id.

type Embed

type Embed = []string

Embed defines model for embed.

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

type EventDatetime struct {
	End   string `json:"end"`
	Start string `json:"start"`
}

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

Status returns HTTPResponse.Status

func (GetEventsIdDocumentsDocumentIdResponse) StatusCode

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

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

type GetEventsIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Event
}

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

type GetEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Event
}

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

type GetUsersIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
}

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

type GetUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]User
}

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

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Id

type Id = string

Id defines model for id.

type Location

type Location = string

Location defines model for location.

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 Name

type Name = string

Name defines model for name.

type NameContain

type NameContain = string

NameContain defines model for name_contain.

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

Status returns HTTPResponse.Status

func (PatchEventsIdDocumentsDocumentIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PatchEventsIdJSONRequestBody

type PatchEventsIdJSONRequestBody = UpdateEventBody

PatchEventsIdJSONRequestBody defines body for PatchEventsId for application/json ContentType.

type PatchEventsIdResponse

type PatchEventsIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Event
}

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

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

type PostEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Event
}

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

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

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

type PostUsersSignInResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Token
}

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

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

RequestEditorFn is the function signature for the RequestEditor callback function

type Token

type Token struct {
	Token string `json:"token"`
}

Token defines model for Token.

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.

Jump to

Keyboard shortcuts

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