Documentation ¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewAddEndpointRequest(server string, applicationID string, body AddEndpointJSONRequestBody) (*http.Request, error)
- func NewAddEndpointRequestWithBody(server string, applicationID string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateApiKeyRequest(server string, body CreateApiKeyJSONRequestBody) (*http.Request, error)
- func NewCreateApiKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateApplicationRequest(server string, body CreateApplicationJSONRequestBody) (*http.Request, error)
- func NewCreateApplicationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateEventTypeRequest(server string, body CreateEventTypeJSONRequestBody) (*http.Request, error)
- func NewCreateEventTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDestroyApiKeyRequest(server string, apiKeyId string) (*http.Request, error)
- func NewGetAllApiKeysRequest(server string, params *GetAllApiKeysParams) (*http.Request, error)
- func NewGetApplicationByIdRequest(server string, applicationID ApplicationId) (*http.Request, error)
- func NewGetApplicationsRequest(server string, params *GetApplicationsParams) (*http.Request, error)
- func NewGetEnvironmentsRequest(server string) (*http.Request, error)
- func NewGetEventTypeByIdRequest(server string, eventTypeID string) (*http.Request, error)
- func NewGetEventTypesRequest(server string, params *GetEventTypesParams) (*http.Request, error)
- func NewHealthCheckRequest(server string) (*http.Request, error)
- func NewSendMessageRequest(server string, applicationID ApplicationId, body SendMessageJSONRequestBody) (*http.Request, error)
- func NewSendMessageRequestWithBody(server string, applicationID ApplicationId, contentType string, body io.Reader) (*http.Request, error)
- func NewSignInRequest(server string, body SignInJSONRequestBody) (*http.Request, error)
- func NewSignInRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSignUpRequest(server string, body SignUpJSONRequestBody) (*http.Request, error)
- func NewSignUpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AddEndpointJSONRequestBody
- type AddEndpointRequest
- type AddEndpointResponse
- type ApiKey
- type Application
- type ApplicationId
- type Client
- func (c *Client) AddEndpoint(ctx context.Context, applicationID string, body AddEndpointJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddEndpointWithBody(ctx context.Context, applicationID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateApiKey(ctx context.Context, body CreateApiKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateApiKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateApplicationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateEventType(ctx context.Context, body CreateEventTypeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateEventTypeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DestroyApiKey(ctx context.Context, apiKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAllApiKeys(ctx context.Context, params *GetAllApiKeysParams, ...) (*http.Response, error)
- func (c *Client) GetApplicationById(ctx context.Context, applicationID ApplicationId, ...) (*http.Response, error)
- func (c *Client) GetApplications(ctx context.Context, params *GetApplicationsParams, ...) (*http.Response, error)
- func (c *Client) GetEnvironments(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEventTypeById(ctx context.Context, eventTypeID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEventTypes(ctx context.Context, params *GetEventTypesParams, ...) (*http.Response, error)
- func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SendMessage(ctx context.Context, applicationID ApplicationId, ...) (*http.Response, error)
- func (c *Client) SendMessageWithBody(ctx context.Context, applicationID ApplicationId, contentType string, ...) (*http.Response, error)
- func (c *Client) SignIn(ctx context.Context, body SignInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SignInWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SignUp(ctx context.Context, body SignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SignUpWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddEndpointWithBodyWithResponse(ctx context.Context, applicationID string, contentType string, body io.Reader, ...) (*AddEndpointResponse, error)
- func (c *ClientWithResponses) AddEndpointWithResponse(ctx context.Context, applicationID string, body AddEndpointJSONRequestBody, ...) (*AddEndpointResponse, error)
- func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateApiKeyResponse, error)
- func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, body CreateApiKeyJSONRequestBody, ...) (*CreateApiKeyResponse, error)
- func (c *ClientWithResponses) CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateApplicationResponse, error)
- func (c *ClientWithResponses) CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, ...) (*CreateApplicationResponse, error)
- func (c *ClientWithResponses) CreateEventTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateEventTypeResponse, error)
- func (c *ClientWithResponses) CreateEventTypeWithResponse(ctx context.Context, body CreateEventTypeJSONRequestBody, ...) (*CreateEventTypeResponse, error)
- func (c *ClientWithResponses) DestroyApiKeyWithResponse(ctx context.Context, apiKeyId string, reqEditors ...RequestEditorFn) (*DestroyApiKeyResponse, error)
- func (c *ClientWithResponses) GetAllApiKeysWithResponse(ctx context.Context, params *GetAllApiKeysParams, ...) (*GetAllApiKeysResponse, error)
- func (c *ClientWithResponses) GetApplicationByIdWithResponse(ctx context.Context, applicationID ApplicationId, ...) (*GetApplicationByIdResponse, error)
- func (c *ClientWithResponses) GetApplicationsWithResponse(ctx context.Context, params *GetApplicationsParams, ...) (*GetApplicationsResponse, error)
- func (c *ClientWithResponses) GetEnvironmentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error)
- func (c *ClientWithResponses) GetEventTypeByIdWithResponse(ctx context.Context, eventTypeID string, reqEditors ...RequestEditorFn) (*GetEventTypeByIdResponse, error)
- func (c *ClientWithResponses) GetEventTypesWithResponse(ctx context.Context, params *GetEventTypesParams, ...) (*GetEventTypesResponse, error)
- func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
- func (c *ClientWithResponses) SendMessageWithBodyWithResponse(ctx context.Context, applicationID ApplicationId, contentType string, ...) (*SendMessageResponse, error)
- func (c *ClientWithResponses) SendMessageWithResponse(ctx context.Context, applicationID ApplicationId, ...) (*SendMessageResponse, error)
- func (c *ClientWithResponses) SignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SignInResponse, error)
- func (c *ClientWithResponses) SignInWithResponse(ctx context.Context, body SignInJSONRequestBody, reqEditors ...RequestEditorFn) (*SignInResponse, error)
- func (c *ClientWithResponses) SignUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SignUpResponse, error)
- func (c *ClientWithResponses) SignUpWithResponse(ctx context.Context, body SignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*SignUpResponse, error)
- type ClientWithResponsesInterface
- type CreateApiKeyJSONRequestBody
- type CreateApiKeyPayload
- type CreateApiKeyRequest
- type CreateApiKeyResponse
- type CreateApplicationJSONRequestBody
- type CreateApplicationPayload
- type CreateApplicationRequest
- type CreateApplicationResponse
- type CreateEventTypeJSONRequestBody
- type CreateEventTypePayload
- type CreateEventTypeRequest
- type CreateEventTypeResponse
- type DefaultError
- type DestroyApiKeyResponse
- type Environment
- type EnvironmentId
- type EnvironmentType
- type ErrorResponse
- type EventType
- type GetAllApiKeysParams
- type GetAllApiKeysPayload
- type GetAllApiKeysResponse
- type GetAllEnvironmentsPayload
- type GetApplicationByIdPayload
- type GetApplicationByIdResponse
- type GetApplicationsParams
- type GetApplicationsPayload
- type GetApplicationsResponse
- type GetEnvironmentsResponse
- type GetEventTypeByIdPayload
- type GetEventTypeByIdResponse
- type GetEventTypesParams
- type GetEventTypesPayload
- type GetEventTypesResponse
- type HealthCheckResponse
- type HttpRequestDoer
- type NotFoundError
- type Pagination
- type PaginationParamLimit
- type PaginationParamPage
- type RequestEditorFn
- type SendMessageJSONRequestBody
- type SendMessageRequest
- type SendMessageResponse
- type SignInJSONRequestBody
- type SignInPayload
- type SignInResponse
- type SignUpJSONRequestBody
- type SignUpResponse
- type SigninRequest
- type SignupRequest
Constants ¶
const ( ApiKeyAuthScopes = "ApiKeyAuth.Scopes" BearerAuthScopes = "BearerAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewAddEndpointRequest ¶
func NewAddEndpointRequest(server string, applicationID string, body AddEndpointJSONRequestBody) (*http.Request, error)
NewAddEndpointRequest calls the generic AddEndpoint builder with application/json body
func NewAddEndpointRequestWithBody ¶
func NewAddEndpointRequestWithBody(server string, applicationID string, contentType string, body io.Reader) (*http.Request, error)
NewAddEndpointRequestWithBody generates requests for AddEndpoint with any type of body
func NewCreateApiKeyRequest ¶
func NewCreateApiKeyRequest(server string, body CreateApiKeyJSONRequestBody) (*http.Request, error)
NewCreateApiKeyRequest calls the generic CreateApiKey builder with application/json body
func NewCreateApiKeyRequestWithBody ¶
func NewCreateApiKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateApiKeyRequestWithBody generates requests for CreateApiKey with any type of body
func NewCreateApplicationRequest ¶
func NewCreateApplicationRequest(server string, body CreateApplicationJSONRequestBody) (*http.Request, error)
NewCreateApplicationRequest calls the generic CreateApplication builder with application/json body
func NewCreateApplicationRequestWithBody ¶
func NewCreateApplicationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateApplicationRequestWithBody generates requests for CreateApplication with any type of body
func NewCreateEventTypeRequest ¶
func NewCreateEventTypeRequest(server string, body CreateEventTypeJSONRequestBody) (*http.Request, error)
NewCreateEventTypeRequest calls the generic CreateEventType builder with application/json body
func NewCreateEventTypeRequestWithBody ¶
func NewCreateEventTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateEventTypeRequestWithBody generates requests for CreateEventType with any type of body
func NewDestroyApiKeyRequest ¶
NewDestroyApiKeyRequest generates requests for DestroyApiKey
func NewGetAllApiKeysRequest ¶
func NewGetAllApiKeysRequest(server string, params *GetAllApiKeysParams) (*http.Request, error)
NewGetAllApiKeysRequest generates requests for GetAllApiKeys
func NewGetApplicationByIdRequest ¶
func NewGetApplicationByIdRequest(server string, applicationID ApplicationId) (*http.Request, error)
NewGetApplicationByIdRequest generates requests for GetApplicationById
func NewGetApplicationsRequest ¶
func NewGetApplicationsRequest(server string, params *GetApplicationsParams) (*http.Request, error)
NewGetApplicationsRequest generates requests for GetApplications
func NewGetEnvironmentsRequest ¶
NewGetEnvironmentsRequest generates requests for GetEnvironments
func NewGetEventTypeByIdRequest ¶
NewGetEventTypeByIdRequest generates requests for GetEventTypeById
func NewGetEventTypesRequest ¶
func NewGetEventTypesRequest(server string, params *GetEventTypesParams) (*http.Request, error)
NewGetEventTypesRequest generates requests for GetEventTypes
func NewHealthCheckRequest ¶
NewHealthCheckRequest generates requests for HealthCheck
func NewSendMessageRequest ¶
func NewSendMessageRequest(server string, applicationID ApplicationId, body SendMessageJSONRequestBody) (*http.Request, error)
NewSendMessageRequest calls the generic SendMessage builder with application/json body
func NewSendMessageRequestWithBody ¶
func NewSendMessageRequestWithBody(server string, applicationID ApplicationId, contentType string, body io.Reader) (*http.Request, error)
NewSendMessageRequestWithBody generates requests for SendMessage with any type of body
func NewSignInRequest ¶
func NewSignInRequest(server string, body SignInJSONRequestBody) (*http.Request, error)
NewSignInRequest calls the generic SignIn builder with application/json body
func NewSignInRequestWithBody ¶
func NewSignInRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSignInRequestWithBody generates requests for SignIn with any type of body
func NewSignUpRequest ¶
func NewSignUpRequest(server string, body SignUpJSONRequestBody) (*http.Request, error)
NewSignUpRequest calls the generic SignUp builder with application/json body
Types ¶
type AddEndpointJSONRequestBody ¶
type AddEndpointJSONRequestBody = AddEndpointRequest
AddEndpointJSONRequestBody defines body for AddEndpoint for application/json ContentType.
type AddEndpointRequest ¶
type AddEndpointRequest struct { Description *string `json:"description,omitempty"` EventTypeIds *[]string `json:"event_type_ids,omitempty"` Url string `json:"url"` }
AddEndpointRequest defines model for AddEndpointRequest.
type AddEndpointResponse ¶
type AddEndpointResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *DefaultError }
func ParseAddEndpointResponse ¶
func ParseAddEndpointResponse(rsp *http.Response) (*AddEndpointResponse, error)
ParseAddEndpointResponse parses an HTTP response from a AddEndpointWithResponse call
func (AddEndpointResponse) Status ¶
func (r AddEndpointResponse) Status() string
Status returns HTTPResponse.Status
func (AddEndpointResponse) StatusCode ¶
func (r AddEndpointResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApiKey ¶
type ApiKey struct { CreatedAt time.Time `json:"created_at"` EnvironmentId string `json:"environment_id"` ExpiresAt *time.Time `json:"expires_at,omitempty"` Id string `json:"id"` MaskedSecretKey string `json:"masked_secret_key"` Name string `json:"name"` OrganizationId string `json:"organization_id"` }
ApiKey defines model for ApiKey.
type Application ¶
type Application struct { CreatedAt time.Time `json:"created_at"` EnvironmentId string `json:"environment_id"` Id string `json:"id"` Name string `json:"name"` }
Application defines model for Application.
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) AddEndpoint ¶
func (c *Client) AddEndpoint(ctx context.Context, applicationID string, body AddEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddEndpointWithBody ¶
func (*Client) CreateApiKey ¶
func (c *Client) CreateApiKey(ctx context.Context, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateApiKeyWithBody ¶
func (*Client) CreateApplication ¶
func (c *Client) CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateApplicationWithBody ¶
func (*Client) CreateEventType ¶
func (c *Client) CreateEventType(ctx context.Context, body CreateEventTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEventTypeWithBody ¶
func (*Client) DestroyApiKey ¶
func (*Client) GetAllApiKeys ¶
func (c *Client) GetAllApiKeys(ctx context.Context, params *GetAllApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApplicationById ¶
func (c *Client) GetApplicationById(ctx context.Context, applicationID ApplicationId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApplications ¶
func (c *Client) GetApplications(ctx context.Context, params *GetApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEnvironments ¶
func (*Client) GetEventTypeById ¶
func (*Client) GetEventTypes ¶
func (c *Client) GetEventTypes(ctx context.Context, params *GetEventTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HealthCheck ¶
func (*Client) SendMessage ¶
func (c *Client) SendMessage(ctx context.Context, applicationID ApplicationId, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendMessageWithBody ¶
func (*Client) SignIn ¶
func (c *Client) SignIn(ctx context.Context, body SignInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SignInWithBody ¶
func (*Client) SignUp ¶
func (c *Client) SignUp(ctx context.Context, body SignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetAllApiKeys request GetAllApiKeys(ctx context.Context, params *GetAllApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateApiKeyWithBody request with any body CreateApiKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateApiKey(ctx context.Context, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DestroyApiKey request DestroyApiKey(ctx context.Context, apiKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApplications request GetApplications(ctx context.Context, params *GetApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateApplicationWithBody request with any body CreateApplicationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApplicationById request GetApplicationById(ctx context.Context, applicationID ApplicationId, reqEditors ...RequestEditorFn) (*http.Response, error) // AddEndpointWithBody request with any body AddEndpointWithBody(ctx context.Context, applicationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) AddEndpoint(ctx context.Context, applicationID string, body AddEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // SendMessageWithBody request with any body SendMessageWithBody(ctx context.Context, applicationID ApplicationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SendMessage(ctx context.Context, applicationID ApplicationId, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEnvironments request GetEnvironments(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEventTypes request GetEventTypes(ctx context.Context, params *GetEventTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateEventTypeWithBody request with any body CreateEventTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateEventType(ctx context.Context, body CreateEventTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEventTypeById request GetEventTypeById(ctx context.Context, eventTypeID string, reqEditors ...RequestEditorFn) (*http.Response, error) // HealthCheck request HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // SignInWithBody request with any body SignInWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SignIn(ctx context.Context, body SignInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // SignUpWithBody request with any body SignUpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SignUp(ctx context.Context, body SignUpJSONRequestBody, 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) AddEndpointWithBodyWithResponse ¶
func (c *ClientWithResponses) AddEndpointWithBodyWithResponse(ctx context.Context, applicationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEndpointResponse, error)
AddEndpointWithBodyWithResponse request with arbitrary body returning *AddEndpointResponse
func (*ClientWithResponses) AddEndpointWithResponse ¶
func (c *ClientWithResponses) AddEndpointWithResponse(ctx context.Context, applicationID string, body AddEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEndpointResponse, error)
func (*ClientWithResponses) CreateApiKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error)
CreateApiKeyWithBodyWithResponse request with arbitrary body returning *CreateApiKeyResponse
func (*ClientWithResponses) CreateApiKeyWithResponse ¶
func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error)
func (*ClientWithResponses) CreateApplicationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error)
CreateApplicationWithBodyWithResponse request with arbitrary body returning *CreateApplicationResponse
func (*ClientWithResponses) CreateApplicationWithResponse ¶
func (c *ClientWithResponses) CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error)
func (*ClientWithResponses) CreateEventTypeWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEventTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEventTypeResponse, error)
CreateEventTypeWithBodyWithResponse request with arbitrary body returning *CreateEventTypeResponse
func (*ClientWithResponses) CreateEventTypeWithResponse ¶
func (c *ClientWithResponses) CreateEventTypeWithResponse(ctx context.Context, body CreateEventTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEventTypeResponse, error)
func (*ClientWithResponses) DestroyApiKeyWithResponse ¶
func (c *ClientWithResponses) DestroyApiKeyWithResponse(ctx context.Context, apiKeyId string, reqEditors ...RequestEditorFn) (*DestroyApiKeyResponse, error)
DestroyApiKeyWithResponse request returning *DestroyApiKeyResponse
func (*ClientWithResponses) GetAllApiKeysWithResponse ¶
func (c *ClientWithResponses) GetAllApiKeysWithResponse(ctx context.Context, params *GetAllApiKeysParams, reqEditors ...RequestEditorFn) (*GetAllApiKeysResponse, error)
GetAllApiKeysWithResponse request returning *GetAllApiKeysResponse
func (*ClientWithResponses) GetApplicationByIdWithResponse ¶
func (c *ClientWithResponses) GetApplicationByIdWithResponse(ctx context.Context, applicationID ApplicationId, reqEditors ...RequestEditorFn) (*GetApplicationByIdResponse, error)
GetApplicationByIdWithResponse request returning *GetApplicationByIdResponse
func (*ClientWithResponses) GetApplicationsWithResponse ¶
func (c *ClientWithResponses) GetApplicationsWithResponse(ctx context.Context, params *GetApplicationsParams, reqEditors ...RequestEditorFn) (*GetApplicationsResponse, error)
GetApplicationsWithResponse request returning *GetApplicationsResponse
func (*ClientWithResponses) GetEnvironmentsWithResponse ¶
func (c *ClientWithResponses) GetEnvironmentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error)
GetEnvironmentsWithResponse request returning *GetEnvironmentsResponse
func (*ClientWithResponses) GetEventTypeByIdWithResponse ¶
func (c *ClientWithResponses) GetEventTypeByIdWithResponse(ctx context.Context, eventTypeID string, reqEditors ...RequestEditorFn) (*GetEventTypeByIdResponse, error)
GetEventTypeByIdWithResponse request returning *GetEventTypeByIdResponse
func (*ClientWithResponses) GetEventTypesWithResponse ¶
func (c *ClientWithResponses) GetEventTypesWithResponse(ctx context.Context, params *GetEventTypesParams, reqEditors ...RequestEditorFn) (*GetEventTypesResponse, error)
GetEventTypesWithResponse request returning *GetEventTypesResponse
func (*ClientWithResponses) HealthCheckWithResponse ¶
func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
HealthCheckWithResponse request returning *HealthCheckResponse
func (*ClientWithResponses) SendMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) SendMessageWithBodyWithResponse(ctx context.Context, applicationID ApplicationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageResponse, error)
SendMessageWithBodyWithResponse request with arbitrary body returning *SendMessageResponse
func (*ClientWithResponses) SendMessageWithResponse ¶
func (c *ClientWithResponses) SendMessageWithResponse(ctx context.Context, applicationID ApplicationId, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageResponse, error)
func (*ClientWithResponses) SignInWithBodyWithResponse ¶
func (c *ClientWithResponses) SignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignInResponse, error)
SignInWithBodyWithResponse request with arbitrary body returning *SignInResponse
func (*ClientWithResponses) SignInWithResponse ¶
func (c *ClientWithResponses) SignInWithResponse(ctx context.Context, body SignInJSONRequestBody, reqEditors ...RequestEditorFn) (*SignInResponse, error)
func (*ClientWithResponses) SignUpWithBodyWithResponse ¶
func (c *ClientWithResponses) SignUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignUpResponse, error)
SignUpWithBodyWithResponse request with arbitrary body returning *SignUpResponse
func (*ClientWithResponses) SignUpWithResponse ¶
func (c *ClientWithResponses) SignUpWithResponse(ctx context.Context, body SignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*SignUpResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetAllApiKeysWithResponse request GetAllApiKeysWithResponse(ctx context.Context, params *GetAllApiKeysParams, reqEditors ...RequestEditorFn) (*GetAllApiKeysResponse, error) // CreateApiKeyWithBodyWithResponse request with any body CreateApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) CreateApiKeyWithResponse(ctx context.Context, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) // DestroyApiKeyWithResponse request DestroyApiKeyWithResponse(ctx context.Context, apiKeyId string, reqEditors ...RequestEditorFn) (*DestroyApiKeyResponse, error) // GetApplicationsWithResponse request GetApplicationsWithResponse(ctx context.Context, params *GetApplicationsParams, reqEditors ...RequestEditorFn) (*GetApplicationsResponse, error) // CreateApplicationWithBodyWithResponse request with any body CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error) CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error) // GetApplicationByIdWithResponse request GetApplicationByIdWithResponse(ctx context.Context, applicationID ApplicationId, reqEditors ...RequestEditorFn) (*GetApplicationByIdResponse, error) // AddEndpointWithBodyWithResponse request with any body AddEndpointWithBodyWithResponse(ctx context.Context, applicationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEndpointResponse, error) AddEndpointWithResponse(ctx context.Context, applicationID string, body AddEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEndpointResponse, error) // SendMessageWithBodyWithResponse request with any body SendMessageWithBodyWithResponse(ctx context.Context, applicationID ApplicationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) SendMessageWithResponse(ctx context.Context, applicationID ApplicationId, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) // GetEnvironmentsWithResponse request GetEnvironmentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error) // GetEventTypesWithResponse request GetEventTypesWithResponse(ctx context.Context, params *GetEventTypesParams, reqEditors ...RequestEditorFn) (*GetEventTypesResponse, error) // CreateEventTypeWithBodyWithResponse request with any body CreateEventTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEventTypeResponse, error) CreateEventTypeWithResponse(ctx context.Context, body CreateEventTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEventTypeResponse, error) // GetEventTypeByIdWithResponse request GetEventTypeByIdWithResponse(ctx context.Context, eventTypeID string, reqEditors ...RequestEditorFn) (*GetEventTypeByIdResponse, error) // HealthCheckWithResponse request HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) // SignInWithBodyWithResponse request with any body SignInWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignInResponse, error) SignInWithResponse(ctx context.Context, body SignInJSONRequestBody, reqEditors ...RequestEditorFn) (*SignInResponse, error) // SignUpWithBodyWithResponse request with any body SignUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignUpResponse, error) SignUpWithResponse(ctx context.Context, body SignUpJSONRequestBody, reqEditors ...RequestEditorFn) (*SignUpResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateApiKeyJSONRequestBody ¶
type CreateApiKeyJSONRequestBody = CreateApiKeyRequest
CreateApiKeyJSONRequestBody defines body for CreateApiKey for application/json ContentType.
type CreateApiKeyPayload ¶
type CreateApiKeyPayload struct {
UnmaskedApiKey string `json:"unmasked_api_key"`
}
CreateApiKeyPayload defines model for CreateApiKeyPayload.
type CreateApiKeyRequest ¶
type CreateApiKeyRequest struct { EnvironmentId string `json:"environment_id"` ExpiresAt *time.Time `json:"expires_at"` Name string `json:"name"` }
CreateApiKeyRequest defines model for CreateApiKeyRequest.
type CreateApiKeyResponse ¶
type CreateApiKeyResponse struct { Body []byte HTTPResponse *http.Response JSON201 *CreateApiKeyPayload JSONDefault *DefaultError }
func ParseCreateApiKeyResponse ¶
func ParseCreateApiKeyResponse(rsp *http.Response) (*CreateApiKeyResponse, error)
ParseCreateApiKeyResponse parses an HTTP response from a CreateApiKeyWithResponse call
func (CreateApiKeyResponse) Status ¶
func (r CreateApiKeyResponse) Status() string
Status returns HTTPResponse.Status
func (CreateApiKeyResponse) StatusCode ¶
func (r CreateApiKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateApplicationJSONRequestBody ¶
type CreateApplicationJSONRequestBody = CreateApplicationRequest
CreateApplicationJSONRequestBody defines body for CreateApplication for application/json ContentType.
type CreateApplicationPayload ¶
type CreateApplicationPayload struct {
Id string `json:"id"`
}
CreateApplicationPayload defines model for CreateApplicationPayload.
type CreateApplicationRequest ¶
type CreateApplicationRequest struct {
Name string `json:"name"`
}
CreateApplicationRequest defines model for CreateApplicationRequest.
type CreateApplicationResponse ¶
type CreateApplicationResponse struct { Body []byte HTTPResponse *http.Response JSON201 *CreateApplicationPayload JSONDefault *DefaultError }
func ParseCreateApplicationResponse ¶
func ParseCreateApplicationResponse(rsp *http.Response) (*CreateApplicationResponse, error)
ParseCreateApplicationResponse parses an HTTP response from a CreateApplicationWithResponse call
func (CreateApplicationResponse) Status ¶
func (r CreateApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateApplicationResponse) StatusCode ¶
func (r CreateApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateEventTypeJSONRequestBody ¶
type CreateEventTypeJSONRequestBody = CreateEventTypeRequest
CreateEventTypeJSONRequestBody defines body for CreateEventType for application/json ContentType.
type CreateEventTypePayload ¶
type CreateEventTypePayload struct {
Id string `json:"id"`
}
CreateEventTypePayload defines model for CreateEventTypePayload.
type CreateEventTypeRequest ¶
type CreateEventTypeRequest struct { Description *string `json:"description,omitempty"` Name string `json:"name"` Schema *string `json:"schema,omitempty"` SchemaExample *string `json:"schema_example,omitempty"` }
CreateEventTypeRequest defines model for CreateEventTypeRequest.
type CreateEventTypeResponse ¶
type CreateEventTypeResponse struct { Body []byte HTTPResponse *http.Response JSON201 *CreateEventTypePayload JSONDefault *DefaultError }
func ParseCreateEventTypeResponse ¶
func ParseCreateEventTypeResponse(rsp *http.Response) (*CreateEventTypeResponse, error)
ParseCreateEventTypeResponse parses an HTTP response from a CreateEventTypeWithResponse call
func (CreateEventTypeResponse) Status ¶
func (r CreateEventTypeResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEventTypeResponse) StatusCode ¶
func (r CreateEventTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DestroyApiKeyResponse ¶
type DestroyApiKeyResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *DefaultError }
func ParseDestroyApiKeyResponse ¶
func ParseDestroyApiKeyResponse(rsp *http.Response) (*DestroyApiKeyResponse, error)
ParseDestroyApiKeyResponse parses an HTTP response from a DestroyApiKeyWithResponse call
func (DestroyApiKeyResponse) Status ¶
func (r DestroyApiKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DestroyApiKeyResponse) StatusCode ¶
func (r DestroyApiKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Environment ¶
type Environment struct { ArchivedAt *time.Time `json:"archived_at,omitempty"` CreatedAt time.Time `json:"created_at"` Id string `json:"id"` Name string `json:"name"` OrganizationId string `json:"organization_id"` Type EnvironmentType `json:"type"` }
Environment defines model for Environment.
type EnvironmentType ¶
type EnvironmentType string
EnvironmentType defines model for Environment.Type.
const ( Development EnvironmentType = "development" Production EnvironmentType = "production" )
Defines values for EnvironmentType.
type ErrorResponse ¶
type ErrorResponse struct { // Error Error custom error code such as 'email_in_use' Error string `json:"error"` // Message A description about the error Message string `json:"message"` }
ErrorResponse defines model for ErrorResponse.
type EventType ¶
type EventType struct { ArchivedAt *time.Time `json:"archived_at,omitempty"` CreatedAt time.Time `json:"created_at"` Description string `json:"description"` Id string `json:"id"` Name string `json:"name"` Schema string `json:"schema"` SchemaExample string `json:"schema_example"` }
EventType defines model for EventType.
type GetAllApiKeysParams ¶
type GetAllApiKeysParams struct {
EnvironmentId string `form:"environment_id" json:"environment_id"`
}
GetAllApiKeysParams defines parameters for GetAllApiKeys.
type GetAllApiKeysPayload ¶
type GetAllApiKeysPayload struct {
Data []ApiKey `json:"data"`
}
GetAllApiKeysPayload defines model for GetAllApiKeysPayload.
type GetAllApiKeysResponse ¶
type GetAllApiKeysResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetAllApiKeysPayload JSONDefault *DefaultError }
func ParseGetAllApiKeysResponse ¶
func ParseGetAllApiKeysResponse(rsp *http.Response) (*GetAllApiKeysResponse, error)
ParseGetAllApiKeysResponse parses an HTTP response from a GetAllApiKeysWithResponse call
func (GetAllApiKeysResponse) Status ¶
func (r GetAllApiKeysResponse) Status() string
Status returns HTTPResponse.Status
func (GetAllApiKeysResponse) StatusCode ¶
func (r GetAllApiKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAllEnvironmentsPayload ¶
type GetAllEnvironmentsPayload struct {
Data []Environment `json:"data"`
}
GetAllEnvironmentsPayload defines model for GetAllEnvironmentsPayload.
type GetApplicationByIdPayload ¶
type GetApplicationByIdPayload struct {
Data Application `json:"data"`
}
GetApplicationByIdPayload defines model for GetApplicationByIdPayload.
type GetApplicationByIdResponse ¶
type GetApplicationByIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetApplicationByIdPayload JSON404 *NotFoundError JSONDefault *DefaultError }
func ParseGetApplicationByIdResponse ¶
func ParseGetApplicationByIdResponse(rsp *http.Response) (*GetApplicationByIdResponse, error)
ParseGetApplicationByIdResponse parses an HTTP response from a GetApplicationByIdWithResponse call
func (GetApplicationByIdResponse) Status ¶
func (r GetApplicationByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApplicationByIdResponse) StatusCode ¶
func (r GetApplicationByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApplicationsParams ¶
type GetApplicationsParams struct { EnvironmentID EnvironmentId `form:"environmentID" json:"environmentID"` // Limit The number of items per page Limit *PaginationParamLimit `form:"limit,omitempty" json:"limit,omitempty"` // Page The page number Page *PaginationParamPage `form:"page,omitempty" json:"page,omitempty"` }
GetApplicationsParams defines parameters for GetApplications.
type GetApplicationsPayload ¶
type GetApplicationsPayload struct { Data []Application `json:"data"` Pagination Pagination `json:"pagination"` }
GetApplicationsPayload defines model for GetApplicationsPayload.
type GetApplicationsResponse ¶
type GetApplicationsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetApplicationsPayload JSONDefault *DefaultError }
func ParseGetApplicationsResponse ¶
func ParseGetApplicationsResponse(rsp *http.Response) (*GetApplicationsResponse, error)
ParseGetApplicationsResponse parses an HTTP response from a GetApplicationsWithResponse call
func (GetApplicationsResponse) Status ¶
func (r GetApplicationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApplicationsResponse) StatusCode ¶
func (r GetApplicationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEnvironmentsResponse ¶
type GetEnvironmentsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetAllEnvironmentsPayload JSONDefault *DefaultError }
func ParseGetEnvironmentsResponse ¶
func ParseGetEnvironmentsResponse(rsp *http.Response) (*GetEnvironmentsResponse, error)
ParseGetEnvironmentsResponse parses an HTTP response from a GetEnvironmentsWithResponse call
func (GetEnvironmentsResponse) Status ¶
func (r GetEnvironmentsResponse) Status() string
Status returns HTTPResponse.Status
func (GetEnvironmentsResponse) StatusCode ¶
func (r GetEnvironmentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEventTypeByIdPayload ¶
type GetEventTypeByIdPayload struct {
Data EventType `json:"data"`
}
GetEventTypeByIdPayload defines model for GetEventTypeByIdPayload.
type GetEventTypeByIdResponse ¶
type GetEventTypeByIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetEventTypeByIdPayload JSONDefault *DefaultError }
func ParseGetEventTypeByIdResponse ¶
func ParseGetEventTypeByIdResponse(rsp *http.Response) (*GetEventTypeByIdResponse, error)
ParseGetEventTypeByIdResponse parses an HTTP response from a GetEventTypeByIdWithResponse call
func (GetEventTypeByIdResponse) Status ¶
func (r GetEventTypeByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetEventTypeByIdResponse) StatusCode ¶
func (r GetEventTypeByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEventTypesParams ¶
type GetEventTypesParams struct { // Limit The number of items per page Limit *PaginationParamLimit `form:"limit,omitempty" json:"limit,omitempty"` // Page The page number Page *PaginationParamPage `form:"page,omitempty" json:"page,omitempty"` }
GetEventTypesParams defines parameters for GetEventTypes.
type GetEventTypesPayload ¶
type GetEventTypesPayload struct { Data []EventType `json:"data"` Pagination Pagination `json:"pagination"` }
GetEventTypesPayload defines model for GetEventTypesPayload.
type GetEventTypesResponse ¶
type GetEventTypesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetEventTypesPayload JSONDefault *DefaultError }
func ParseGetEventTypesResponse ¶
func ParseGetEventTypesResponse(rsp *http.Response) (*GetEventTypesResponse, error)
ParseGetEventTypesResponse parses an HTTP response from a GetEventTypesWithResponse call
func (GetEventTypesResponse) Status ¶
func (r GetEventTypesResponse) Status() string
Status returns HTTPResponse.Status
func (GetEventTypesResponse) StatusCode ¶
func (r GetEventTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthCheckResponse ¶
type HealthCheckResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *DefaultError }
func ParseHealthCheckResponse ¶
func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)
ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call
func (HealthCheckResponse) Status ¶
func (r HealthCheckResponse) Status() string
Status returns HTTPResponse.Status
func (HealthCheckResponse) StatusCode ¶
func (r HealthCheckResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type NotFoundError ¶
type NotFoundError = ErrorResponse
NotFoundError defines model for NotFoundError.
type Pagination ¶
type Pagination struct { CurrentPage int `json:"current_page"` PerPage int `json:"per_page"` Total int `json:"total"` TotalPages int `json:"total_pages"` }
Pagination defines model for Pagination.
type PaginationParamLimit ¶
type PaginationParamLimit = int
PaginationParamLimit defines model for paginationParamLimit.
type PaginationParamPage ¶
type PaginationParamPage = int
PaginationParamPage defines model for paginationParamPage.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SendMessageJSONRequestBody ¶
type SendMessageJSONRequestBody = SendMessageRequest
SendMessageJSONRequestBody defines body for SendMessage for application/json ContentType.
type SendMessageRequest ¶
type SendMessageRequest struct { EventTypeId *string `json:"event_type_id,omitempty"` Payload string `json:"payload"` }
SendMessageRequest defines model for SendMessageRequest.
type SendMessageResponse ¶
type SendMessageResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *DefaultError }
func ParseSendMessageResponse ¶
func ParseSendMessageResponse(rsp *http.Response) (*SendMessageResponse, error)
ParseSendMessageResponse parses an HTTP response from a SendMessageWithResponse call
func (SendMessageResponse) Status ¶
func (r SendMessageResponse) Status() string
Status returns HTTPResponse.Status
func (SendMessageResponse) StatusCode ¶
func (r SendMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SignInJSONRequestBody ¶
type SignInJSONRequestBody = SigninRequest
SignInJSONRequestBody defines body for SignIn for application/json ContentType.
type SignInPayload ¶
type SignInPayload struct { Email string `json:"email"` FirstName string `json:"first_name"` Id string `json:"id"` LastName string `json:"last_name"` Token string `json:"token"` }
SignInPayload defines model for SignInPayload.
type SignInResponse ¶
type SignInResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SignInPayload JSONDefault *DefaultError }
func ParseSignInResponse ¶
func ParseSignInResponse(rsp *http.Response) (*SignInResponse, error)
ParseSignInResponse parses an HTTP response from a SignInWithResponse call
func (SignInResponse) Status ¶
func (r SignInResponse) Status() string
Status returns HTTPResponse.Status
func (SignInResponse) StatusCode ¶
func (r SignInResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SignUpJSONRequestBody ¶
type SignUpJSONRequestBody = SignupRequest
SignUpJSONRequestBody defines body for SignUp for application/json ContentType.
type SignUpResponse ¶
type SignUpResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *DefaultError }
func ParseSignUpResponse ¶
func ParseSignUpResponse(rsp *http.Response) (*SignUpResponse, error)
ParseSignUpResponse parses an HTTP response from a SignUpWithResponse call
func (SignUpResponse) Status ¶
func (r SignUpResponse) Status() string
Status returns HTTPResponse.Status
func (SignUpResponse) StatusCode ¶
func (r SignUpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SigninRequest ¶
SigninRequest defines model for SigninRequest.