svix

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the Svix SDK client

func NewClient

func NewClient(config *config.Configuration) (*Client, error)

NewClient creates a new Svix client

func (*Client) GetDashboardURL

func (c *Client) GetDashboardURL(ctx context.Context, applicationID string) (string, error)

GetDashboardURL gets the dashboard URL for the given application

func (*Client) GetOrCreateApplication

func (c *Client) GetOrCreateApplication(ctx context.Context, tenantID, environmentID string) (string, error)

GetOrCreateApplication gets or creates a Svix application for the given tenant and environment

func (*Client) SendMessage

func (c *Client) SendMessage(ctx context.Context, applicationID string, eventType string, payload interface{}) error

SendMessage sends a webhook message to the given application

Jump to

Keyboard shortcuts

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