Help us shape the future of Go! Take the 2026 Go Developer Survey

connector

package
v1.46.8 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingWhatsAppPhoneNumberId        = psrpc.NewErrorf(psrpc.InvalidArgument, "whatsapp phone number id is required")
	ErrMissingWhatsAppToNumber             = psrpc.NewErrorf(psrpc.InvalidArgument, "whatsapp to_phone_number is required")
	ErrMissingWhatsAppCallId               = psrpc.NewErrorf(psrpc.InvalidArgument, "whatsapp call id is required")
	ErrMissingWhatsAppApiKey               = psrpc.NewErrorf(psrpc.InvalidArgument, "whatsapp api key is required")
	ErrWhatsAppCallNotFound                = psrpc.NewErrorf(psrpc.NotFound, "whatsapp call not found")
	ErrWhatsAppCloudApiVersionNotSupported = psrpc.NewErrorf(psrpc.InvalidArgument, "whatsapp cloud api version not supported")
	ErrMissingCallIDInInitiateResponse     = psrpc.NewErrorf(psrpc.UpstreamClientError, "missing call id in initiate response")
	ErrWhatsAppAPICallFailedReasonUnknown  = psrpc.NewErrorf(psrpc.UpstreamClientError, "whatsapp api call failed with unknown reason")

	ErrAcceptTimeout = psrpc.NewErrorf(psrpc.DeadlineExceeded, "timeout waiting for call to be accepted")
	ErrRoomNotReady  = psrpc.NewErrorf(psrpc.DeadlineExceeded, "timeout waiting for participants to publish in the livekit room before accepting the call")

	ErrIncorrectSDPType = psrpc.NewErrorf(psrpc.InvalidArgument, "incorrect sdp type")
	ErrSDPAnswerTimeout = psrpc.NewErrorf(psrpc.DeadlineExceeded, "timeout waiting for SDP answer")

	ErrConnectionClosed  = psrpc.NewErrorf(psrpc.FailedPrecondition, "connection is closed")
	ErrConnectorNotFound = psrpc.NewErrorf(psrpc.NotFound, "connector not found")
	ErrServerBusy        = psrpc.NewErrorf(psrpc.ResourceExhausted, "server is busy and cannot accept new calls")
)

Functions

func BuildConnectorToken

func BuildConnectorToken(params ConnectorTokenParams) (string, error)

Types

type ConnectorTokenParams

type ConnectorTokenParams struct {
	APIKey                string
	APISecret             string
	RoomName              string
	ParticipantIdentity   string
	ParticipantName       string
	ParticipantMetadata   string
	ParticipantAttributes map[string]string
	Agents                []*livekit.RoomAgentDispatch
	Hidden                bool
	Kind                  Kind
}

type Kind added in v1.43.1

type Kind int
const (
	WHATSAPP Kind = iota
	TWILIO
)

Jump to

Keyboard shortcuts

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