Versions in this module Expand all Collapse all v0 v0.2.0 Aug 7, 2026 Changes in this version + type APIError struct + Message string + Status int + func (e *APIError) Error() string + type Client struct + func NewClient(secretToken string, opts ...Option) (*Client, error) + func (c *Client) CreateP2PConnection(ctx context.Context, opts *CreateP2PConnectionOptions) (*P2PConnection, error) + func (c *Client) CreateRoom(ctx context.Context, opts *CreateRoomOptions) (*Room, error) + func (c *Client) CreateSpace(ctx context.Context, opts CreateSpaceOptions) (*SpaceCreated, error) + func (c *Client) DeleteSpace(ctx context.Context, spaceID string, opts *SpaceOptions) error + func (c *Client) GetSpace(ctx context.Context, spaceID string, opts *SpaceOptions) (*Space, error) + func (c *Client) ListSpaces(ctx context.Context, opts *SpaceOptions) ([]Space, error) + func (c *Client) MintConnectionToken(ctx context.Context, opts MintConnectionTokenOptions) (*ConnectionToken, error) + func (c *Client) RotateSpaceHostToken(ctx context.Context, spaceID string, opts *SpaceOptions) (*SpaceHostToken, error) + func (c *Client) UpdateSpace(ctx context.Context, spaceID string, opts UpdateSpaceOptions) (*Space, error) + type ConnectionToken struct + Token string + type CreateP2PConnectionOptions struct + AccessControl string + ProjectID string + type CreateRoomOptions struct + ProjectID string + type CreateSpaceOptions struct + AccessType SpaceAccessType + Name string + Password string + ProjectID string + type MintConnectionTokenOptions struct + CallID string + ProjectID string + RoomID string + type Option func(*Client) + func WithAPIBaseURL(apiBaseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithProjectID(projectID string) Option + type P2PConnection struct + AccessControl string + CallID string + CallTokens []string + type Room struct + RoomID string + RoomTokens []string + type Space struct + AccessType SpaceAccessType + ActiveRoomID *string + CreatedAt string + ID string + Name string + ParticipantURL string + ProjectID string + Slug string + UpdatedAt string + type SpaceAccessType string + const SpaceAccessKnock + const SpaceAccessPassword + const SpaceAccessPublic + type SpaceCreated struct + HostToken string + HostURL string + ParticipantURL string + Space Space + type SpaceHostToken struct + HostToken string + HostURL string + ParticipantURL string + type SpaceOptions struct + ProjectID string + type UpdateSpaceOptions struct + AccessType SpaceAccessType + Name string + Password string + ProjectID string + Slug string