Documentation
¶
Index ¶
- Variables
- func AnswerTimeAttributes(t time.Time) map[string]string
- func BuildConnectorToken(params ConnectorTokenParams) (string, error)
- func ParseAnswerTime(attrs map[string]string) time.Time
- func ParseRequestTime(attrs map[string]string) time.Time
- func RequestTimeAttributes(t time.Time) map[string]string
- type ConnectorTokenParams
- type Kind
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 AnswerTimeAttributes ¶ added in v1.54.0
func BuildConnectorToken ¶
func BuildConnectorToken(params ConnectorTokenParams) (string, error)
func ParseAnswerTime ¶ added in v1.54.0
ParseAnswerTime returns the zero time if the attribute is missing or malformed.
func ParseRequestTime ¶ added in v1.54.0
ParseRequestTime returns the zero time if the attribute is missing or malformed.
Types ¶
type ConnectorTokenParams ¶
Click to show internal directories.
Click to hide internal directories.