Documentation ¶
Index ¶
- func Int32(i int32) *int32
- func String(s string) *string
- type Application
- func (a *Application) Create(applicationIn *ApplicationIn) (*ApplicationOut, error)
- func (a *Application) Delete(appId string) error
- func (a *Application) Get(appId string) (*ApplicationOut, error)
- func (a *Application) List(options *ApplicationListOptions) (*ListResponseApplicationOut, error)
- func (a *Application) Update(appId string, applicationIn *ApplicationIn) (*ApplicationOut, error)
- type ApplicationIn
- type ApplicationListOptions
- type ApplicationOut
- type Authentication
- type DashboardAccessOut
- type Endpoint
- func (e *Endpoint) Create(appId string, endpointIn *EndpointIn) (*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) List(appId string, options *EndpointListOptions) (*ListResponseEndpointOut, error)
- func (e *Endpoint) PatchHeaders(appId string, endpointId string, endpointHeadersIn *EndpointHeadersIn) error
- func (e *Endpoint) Recover(appId string, endpointId string, recoverIn *RecoverIn) error
- func (e *Endpoint) RotateSecret(appId string, endpointId string, ...) 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
- type EndpointHeadersOut
- type EndpointIn
- type EndpointListOptions
- type EndpointOut
- type EndpointSecretOut
- type EndpointSecretRotateIn
- type EndpointUpdate
- type Error
- type EventType
- func (e *EventType) Create(eventTypeIn *EventTypeIn) (*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
- type EventTypeListOptions
- type EventTypeOut
- type EventTypeUpdate
- type Integration
- func (e *Integration) Create(appId string, endpointIn *IntegrationIn) (*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) Update(appId string, integId string, endpointUpdate *IntegrationUpdate) (*IntegrationOut, error)
- type IntegrationIn
- type IntegrationKeyOut
- type IntegrationListOptions
- type IntegrationOut
- type IntegrationUpdate
- type ListResponseApplicationOut
- type ListResponseEndpointMessageOut
- type ListResponseEndpointOut
- type ListResponseEventTypeOut
- type ListResponseIntegrationOut
- type ListResponseMessageAttemptEndpointOut
- type ListResponseMessageAttemptOut
- type ListResponseMessageEndpointOut
- type ListResponseMessageOut
- type Message
- type MessageAttempt
- 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) Resend(appId string, msgId string, endpointId string) error
- type MessageAttemptListOptions
- type MessageAttemptOut
- type MessageIn
- type MessageListOptions
- type MessageOut
- type MessageStatus
- type RecoverIn
- type Svix
- type SvixOptions
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func (*Application) Create ¶
func (a *Application) Create(applicationIn *ApplicationIn) (*ApplicationOut, error)
func (*Application) Delete ¶
func (a *Application) Delete(appId string) error
func (*Application) Get ¶
func (a *Application) Get(appId string) (*ApplicationOut, error)
func (*Application) List ¶
func (a *Application) List(options *ApplicationListOptions) (*ListResponseApplicationOut, error)
func (*Application) Update ¶
func (a *Application) Update(appId string, applicationIn *ApplicationIn) (*ApplicationOut, error)
type ApplicationIn ¶
type ApplicationIn openapi.ApplicationIn
type ApplicationListOptions ¶ added in v0.26.0
type ApplicationOut ¶
type ApplicationOut openapi.ApplicationOut
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func (*Authentication) DashboardAccess ¶
func (a *Authentication) DashboardAccess(appId string) (*DashboardAccessOut, error)
func (*Authentication) Logout ¶
func (a *Authentication) Logout() error
type DashboardAccessOut ¶
type DashboardAccessOut openapi.DashboardAccessOut
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func (*Endpoint) Create ¶
func (e *Endpoint) Create(appId string, endpointIn *EndpointIn) (*EndpointOut, error)
func (*Endpoint) Get ¶
func (e *Endpoint) Get(appId string, endpointId string) (*EndpointOut, error)
func (*Endpoint) GetHeaders ¶ added in v0.37.0
func (e *Endpoint) GetHeaders(appId string, endpointId string) (*EndpointHeadersOut, error)
func (*Endpoint) GetSecret ¶
func (e *Endpoint) GetSecret(appId string, endpointId string) (*EndpointSecretOut, error)
func (*Endpoint) List ¶
func (e *Endpoint) List(appId string, options *EndpointListOptions) (*ListResponseEndpointOut, error)
func (*Endpoint) PatchHeaders ¶ added in v0.37.0
func (e *Endpoint) PatchHeaders(appId string, endpointId string, endpointHeadersIn *EndpointHeadersIn) error
func (*Endpoint) RotateSecret ¶ added in v0.34.0
func (e *Endpoint) RotateSecret(appId string, endpointId string, endpointSecretRotateIn *EndpointSecretRotateIn) error
func (*Endpoint) Update ¶
func (e *Endpoint) Update(appId string, endpointId string, endpointUpdate *EndpointUpdate) (*EndpointOut, error)
func (*Endpoint) UpdateHeaders ¶ added in v0.37.0
func (e *Endpoint) UpdateHeaders(appId string, endpointId string, endpointHeadersIn *EndpointHeadersIn) error
type EndpointHeadersIn ¶ added in v0.37.0
type EndpointHeadersIn openapi.EndpointHeadersIn
type EndpointHeadersOut ¶ added in v0.37.0
type EndpointHeadersOut openapi.EndpointHeadersOut
type EndpointIn ¶
type EndpointIn openapi.EndpointIn
type EndpointListOptions ¶ added in v0.26.0
type EndpointOut ¶
type EndpointOut openapi.EndpointOut
type EndpointSecretOut ¶
type EndpointSecretOut openapi.EndpointSecretOut
type EndpointSecretRotateIn ¶ added in v0.34.0
type EndpointSecretRotateIn openapi.EndpointSecretRotateIn
type EndpointUpdate ¶ added in v0.29.0
type EndpointUpdate openapi.EndpointUpdate
type Error ¶ added in v0.18.0
type Error struct {
// contains filtered or unexported fields
}
Error provides access to the body, status, and error on returned errors.
type EventType ¶
type EventType struct {
// contains filtered or unexported fields
}
func (*EventType) Create ¶
func (e *EventType) Create(eventTypeIn *EventTypeIn) (*EventTypeOut, error)
func (*EventType) Get ¶ added in v0.38.0
func (e *EventType) Get(eventTypeName string) (*EventTypeOut, error)
func (*EventType) List ¶
func (e *EventType) List(options *EventTypeListOptions) (*ListResponseEventTypeOut, error)
func (*EventType) Update ¶
func (e *EventType) Update(eventTypeName string, eventTypeUpdate *EventTypeUpdate) (*EventTypeOut, error)
type EventTypeIn ¶
type EventTypeIn openapi.EventTypeIn
type EventTypeListOptions ¶ added in v0.26.0
type EventTypeOut ¶
type EventTypeOut openapi.EventTypeOut
type EventTypeUpdate ¶
type EventTypeUpdate openapi.EventTypeUpdate
type Integration ¶ added in v0.44.0
type Integration struct {
// contains filtered or unexported fields
}
func (*Integration) Create ¶ added in v0.44.0
func (e *Integration) Create(appId string, endpointIn *IntegrationIn) (*IntegrationOut, error)
func (*Integration) Delete ¶ added in v0.44.0
func (e *Integration) Delete(appId string, integId string) error
func (*Integration) Get ¶ added in v0.44.0
func (e *Integration) Get(appId string, integId string) (*IntegrationOut, error)
func (*Integration) GetKey ¶ added in v0.44.0
func (e *Integration) GetKey(appId string, integId string) (*IntegrationKeyOut, error)
func (*Integration) List ¶ added in v0.44.0
func (e *Integration) List(appId string, options *IntegrationListOptions) (*ListResponseIntegrationOut, error)
func (*Integration) RotateKey ¶ added in v0.44.0
func (e *Integration) RotateKey(appId string, integId string) (*IntegrationKeyOut, error)
func (*Integration) Update ¶ added in v0.44.0
func (e *Integration) Update(appId string, integId string, endpointUpdate *IntegrationUpdate) (*IntegrationOut, error)
type IntegrationIn ¶ added in v0.44.0
type IntegrationIn openapi.IntegrationIn
type IntegrationKeyOut ¶ added in v0.44.0
type IntegrationKeyOut openapi.IntegrationKeyOut
type IntegrationListOptions ¶ added in v0.44.0
type IntegrationOut ¶ added in v0.44.0
type IntegrationOut openapi.IntegrationOut
type IntegrationUpdate ¶ added in v0.44.0
type IntegrationUpdate openapi.IntegrationUpdate
type ListResponseApplicationOut ¶
type ListResponseApplicationOut openapi.ListResponseApplicationOut
type ListResponseEndpointMessageOut ¶
type ListResponseEndpointMessageOut openapi.ListResponseEndpointMessageOut
type ListResponseEndpointOut ¶
type ListResponseEndpointOut openapi.ListResponseEndpointOut
type ListResponseEventTypeOut ¶
type ListResponseEventTypeOut openapi.ListResponseEventTypeOut
type ListResponseIntegrationOut ¶ added in v0.44.0
type ListResponseIntegrationOut openapi.ListResponseIntegrationOut
type ListResponseMessageAttemptEndpointOut ¶
type ListResponseMessageAttemptEndpointOut openapi.ListResponseMessageAttemptEndpointOut
type ListResponseMessageAttemptOut ¶
type ListResponseMessageAttemptOut openapi.ListResponseMessageAttemptOut
type ListResponseMessageEndpointOut ¶
type ListResponseMessageEndpointOut openapi.ListResponseMessageEndpointOut
type ListResponseMessageOut ¶
type ListResponseMessageOut openapi.ListResponseMessageOut
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) Create ¶
func (m *Message) Create(appId string, messageIn *MessageIn) (*MessageOut, error)
func (*Message) List ¶
func (m *Message) List(appId string, options *MessageListOptions) (*ListResponseMessageOut, error)
type MessageAttempt ¶
type MessageAttempt struct {
// contains filtered or unexported fields
}
func (*MessageAttempt) Get ¶
func (m *MessageAttempt) Get(appId string, msgId string, attemptID string) (*MessageAttemptOut, error)
func (*MessageAttempt) List ¶
func (m *MessageAttempt) List(appId string, msgId string, options *MessageAttemptListOptions) (*ListResponseMessageAttemptOut, error)
func (*MessageAttempt) ListAttemptedDestinations ¶
func (m *MessageAttempt) ListAttemptedDestinations(appId string, msgId string, options *MessageAttemptListOptions) (*ListResponseMessageEndpointOut, error)
func (*MessageAttempt) ListAttemptedMessages ¶
func (m *MessageAttempt) ListAttemptedMessages(appId string, endpointId string, options *MessageAttemptListOptions) (*ListResponseEndpointMessageOut, error)
func (*MessageAttempt) ListAttemptsForEndpoint ¶
func (m *MessageAttempt) ListAttemptsForEndpoint(appId string, msgId string, endpointId string, options *MessageAttemptListOptions) (*ListResponseMessageAttemptEndpointOut, error)
type MessageAttemptListOptions ¶ added in v0.26.0
type MessageAttemptOut ¶
type MessageAttemptOut openapi.MessageAttemptOut
type MessageListOptions ¶ added in v0.26.0
type MessageOut ¶
type MessageOut openapi.MessageOut
type MessageStatus ¶
type MessageStatus openapi.MessageStatus
type Svix ¶
type Svix struct { Authentication *Authentication Application *Application Endpoint *Endpoint EventType *EventType Integration *Integration Message *Message MessageAttempt *MessageAttempt }
func New ¶
func New(token string, options *SvixOptions) *Svix
type SvixOptions ¶
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
func NewWebhook ¶
func (*Webhook) Verify ¶
Verify validates the payload against the svix signature headers using the webhooks signing secret.
Returns an error if the body or headers are missing/unreadable or if the signature doesn't match.
func (*Webhook) VerifyIgnoringTimestamp ¶ added in v0.39.0
VerifyIgnoringTimestamp validates the payload against the svix signature headers using the webhooks signing secret.
Returns an error if the body or headers are missing/unreadable or if the signature doesn't match.
WARNING: This function does not check the signature's timestamp. We recommend using the `Verify` function instead.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.