Versions in this module Expand all Collapse all v0 v0.1.1 Oct 13, 2023 v0.1.0 Feb 15, 2023 Changes in this version + func Int32(i int32) *int32 + func NullableString(s string) *openapi.NullableString + func String(s string) *string + type AppPortalAccessIn openapi.AppPortalAccessIn + type AppPortalAccessOut openapi.AppPortalAccessOut + type Application struct + func (a *Application) Create(applicationIn *ApplicationIn) (*ApplicationOut, error) + func (a *Application) CreateWithOptions(applicationIn *ApplicationIn, options *PostOptions) (*ApplicationOut, error) + func (a *Application) Delete(appId string) error + func (a *Application) Get(appId string) (*ApplicationOut, error) + func (a *Application) GetOrCreate(applicationIn *ApplicationIn) (*ApplicationOut, error) + func (a *Application) GetOrCreateWithOptions(applicationIn *ApplicationIn, options *PostOptions) (*ApplicationOut, error) + func (a *Application) List(options *ApplicationListOptions) (*ListResponseApplicationOut, error) + func (a *Application) Update(appId string, applicationIn *ApplicationIn) (*ApplicationOut, error) + type ApplicationIn openapi.ApplicationIn + type ApplicationListOptions struct + Iterator *string + Limit *int32 + type ApplicationOut openapi.ApplicationOut + type Authentication struct + func (a *Authentication) AppPortalAccess(appId string, appPortalAccessIn *AppPortalAccessIn) (*AppPortalAccessOut, error) + func (a *Authentication) AppPortalAccessWithOptions(appId string, appPortalAccessIn *AppPortalAccessIn, options *PostOptions) (*AppPortalAccessOut, error) + func (a *Authentication) DashboardAccess(appId string) (*DashboardAccessOut, error) + func (a *Authentication) DashboardAccessWithOptions(appId string, options *PostOptions) (*DashboardAccessOut, error) + func (a *Authentication) Logout() error + func (a *Authentication) LogoutWithOptions(options *PostOptions) error + type DashboardAccessOut openapi.DashboardAccessOut + type Endpoint struct + func (e *Endpoint) Create(appId string, endpointIn *EndpointIn) (*EndpointOut, error) + func (e *Endpoint) CreateWithOptions(appId string, endpointIn *EndpointIn, options *PostOptions) (*EndpointOut, error) + func (e *Endpoint) Delete(appId string, endpointId string) error + func (e *Endpoint) Get(appId string, endpointId string) (*EndpointOut, error) + func (e *Endpoint) GetHeaders(appId string, endpointId string) (*EndpointHeadersOut, error) + func (e *Endpoint) GetSecret(appId string, endpointId string) (*EndpointSecretOut, error) + func (e *Endpoint) GetStats(appId string, endpointId string) (*EndpointStats, error) + func (e *Endpoint) List(appId string, options *EndpointListOptions) (*ListResponseEndpointOut, error) + func (e *Endpoint) PatchHeaders(appId string, endpointId string, endpointHeadersIn *EndpointHeadersPatchIn) error + func (e *Endpoint) Recover(appId string, endpointId string, recoverIn *RecoverIn) error + func (e *Endpoint) RecoverWithOptions(appId string, endpointId string, recoverIn *RecoverIn, options *PostOptions) error + func (e *Endpoint) ReplayMissing(appId string, endpointId string, replayIn *ReplayIn) error + func (e *Endpoint) ReplayMissingWithOptions(appId string, endpointId string, replayIn *ReplayIn, options *PostOptions) error + func (e *Endpoint) RotateSecret(appId string, endpointId string, ...) error + func (e *Endpoint) RotateSecretWithOptions(appId string, endpointId string, ...) error + func (e *Endpoint) TransformatioPartialUpdate(appId string, endpointId string, transformation *EndpointTransformationIn) error + func (e *Endpoint) TransformationGet(appId string, endpointId string) (*EndpointTransformationOut, error) + func (e *Endpoint) Update(appId string, endpointId string, endpointUpdate *EndpointUpdate) (*EndpointOut, error) + func (e *Endpoint) UpdateHeaders(appId string, endpointId string, endpointHeadersIn *EndpointHeadersIn) error + type EndpointHeadersIn openapi.EndpointHeadersIn + type EndpointHeadersOut openapi.EndpointHeadersOut + type EndpointHeadersPatchIn openapi.EndpointHeadersPatchIn + type EndpointIn openapi.EndpointIn + type EndpointListOptions struct + Iterator *string + Limit *int32 + type EndpointOut openapi.EndpointOut + type EndpointSecretOut openapi.EndpointSecretOut + type EndpointSecretRotateIn openapi.EndpointSecretRotateIn + type EndpointStats openapi.EndpointStats + type EndpointTransformationIn openapi.EndpointTransformationIn + type EndpointTransformationOut openapi.EndpointTransformationOut + type EndpointUpdate openapi.EndpointUpdate + type Error struct + func (e Error) Body() []byte + func (e Error) Error() string + func (e Error) Status() int + type EventType struct + func (e *EventType) Create(eventTypeIn *EventTypeIn) (*EventTypeOut, error) + func (e *EventType) CreateWithOptions(eventTypeIn *EventTypeIn, options *PostOptions) (*EventTypeOut, error) + func (e *EventType) Delete(eventTypeName string) error + func (e *EventType) Get(eventTypeName string) (*EventTypeOut, error) + func (e *EventType) List(options *EventTypeListOptions) (*ListResponseEventTypeOut, error) + func (e *EventType) Update(eventTypeName string, eventTypeUpdate *EventTypeUpdate) (*EventTypeOut, error) + type EventTypeIn openapi.EventTypeIn + type EventTypeListOptions struct + IncludeArchived *bool + Iterator *string + Limit *int32 + WithContent *bool + type EventTypeOut openapi.EventTypeOut + type EventTypeUpdate openapi.EventTypeUpdate + type Integration struct + func (e *Integration) Create(appId string, endpointIn *IntegrationIn) (*IntegrationOut, error) + func (e *Integration) CreateWithOptions(appId string, endpointIn *IntegrationIn, options *PostOptions) (*IntegrationOut, error) + func (e *Integration) Delete(appId string, integId string) error + func (e *Integration) Get(appId string, integId string) (*IntegrationOut, error) + func (e *Integration) GetKey(appId string, integId string) (*IntegrationKeyOut, error) + func (e *Integration) List(appId string, options *IntegrationListOptions) (*ListResponseIntegrationOut, error) + func (e *Integration) RotateKey(appId string, integId string) (*IntegrationKeyOut, error) + func (e *Integration) RotateKeyWithOptions(appId string, integId string, options *PostOptions) (*IntegrationKeyOut, error) + func (e *Integration) Update(appId string, integId string, endpointUpdate *IntegrationUpdate) (*IntegrationOut, error) + type IntegrationIn openapi.IntegrationIn + type IntegrationKeyOut openapi.IntegrationKeyOut + type IntegrationListOptions struct + Iterator *string + Limit *int32 + type IntegrationOut openapi.IntegrationOut + type IntegrationUpdate openapi.IntegrationUpdate + type ListResponseApplicationOut openapi.ListResponseApplicationOut + type ListResponseEndpointMessageOut openapi.ListResponseEndpointMessageOut + type ListResponseEndpointOut openapi.ListResponseEndpointOut + type ListResponseEventTypeOut openapi.ListResponseEventTypeOut + type ListResponseIntegrationOut openapi.ListResponseIntegrationOut + type ListResponseMessageAttemptEndpointOut openapi.ListResponseMessageAttemptEndpointOut + type ListResponseMessageAttemptOut openapi.ListResponseMessageAttemptOut + type ListResponseMessageEndpointOut openapi.ListResponseMessageEndpointOut + type ListResponseMessageOut openapi.ListResponseMessageOut + type Message struct + func (m *Message) Create(appId string, messageIn *MessageIn) (*MessageOut, error) + func (m *Message) CreateWithOptions(appId string, messageIn *MessageIn, options *PostOptions) (*MessageOut, error) + func (m *Message) ExpungeContent(appId string, msgId string) error + func (m *Message) Get(appId string, msgId string) (*MessageOut, error) + func (m *Message) List(appId string, options *MessageListOptions) (*ListResponseMessageOut, error) + type MessageAttempt struct + func (m *MessageAttempt) ExpungeContent(appId string, msgId string, attemptId string) error + func (m *MessageAttempt) Get(appId string, msgId string, attemptID string) (*MessageAttemptOut, error) + func (m *MessageAttempt) List(appId string, msgId string, options *MessageAttemptListOptions) (*ListResponseMessageAttemptOut, error) + func (m *MessageAttempt) ListAttemptedDestinations(appId string, msgId string, options *MessageAttemptListOptions) (*ListResponseMessageEndpointOut, error) + func (m *MessageAttempt) ListAttemptedMessages(appId string, endpointId string, options *MessageAttemptListOptions) (*ListResponseEndpointMessageOut, error) + func (m *MessageAttempt) ListAttemptsForEndpoint(appId string, msgId string, endpointId string, ...) (*ListResponseMessageAttemptEndpointOut, error) + func (m *MessageAttempt) ListByEndpoint(appId string, endpointId string, options *MessageAttemptListOptions) (*ListResponseMessageAttemptOut, error) + func (m *MessageAttempt) ListByMsg(appId string, msgId string, options *MessageAttemptListOptions) (*ListResponseMessageAttemptOut, error) + func (m *MessageAttempt) Resend(appId string, msgId string, endpointId string) error + func (m *MessageAttempt) ResendWithOptions(appId string, msgId string, endpointId string, options *PostOptions) error + type MessageAttemptListOptions struct + After *time.Time + Before *time.Time + Channel *string + EventTypes *[]string + Iterator *string + Limit *int32 + Status *MessageStatus + StatusCodeClass *StatusCodeClass + type MessageAttemptOut openapi.MessageAttemptOut + type MessageIn openapi.MessageIn + type MessageListOptions struct + After *time.Time + Before *time.Time + Channel *string + EventTypes *[]string + Iterator *string + Limit *int32 + type MessageOut openapi.MessageOut + type MessageStatus openapi.MessageStatus + type PostOptions struct + IdempotencyKey *string + type RecoverIn openapi.RecoverIn + type ReplayIn openapi.ReplayIn + type StatusCodeClass openapi.StatusCodeClass + type Svix struct + Application *Application + Authentication *Authentication + Endpoint *Endpoint + EventType *EventType + Integration *Integration + Message *Message + MessageAttempt *MessageAttempt + func New(host, token string, options *SvixOptions) *Svix + type SvixOptions struct + Debug bool + HTTPClient *http.Client + ServerUrl *url.URL + type Webhook struct + func NewWebhook(secret string) (*Webhook, error) + func NewWebhookRaw(secret []byte) (*Webhook, error) + func (wh *Webhook) Sign(msgId string, timestamp time.Time, payload []byte) (string, error) + func (wh *Webhook) Verify(payload []byte, headers http.Header) error + func (wh *Webhook) VerifyIgnoringTimestamp(payload []byte, headers http.Header) error