rpc

package
v1.42.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 39 Imported by: 34

Documentation

Index

Constants

View Source
const (
	AnalyticsRecorderService_IngestStats_FullMethodName          = "/livekit.AnalyticsRecorderService/IngestStats"
	AnalyticsRecorderService_IngestEvents_FullMethodName         = "/livekit.AnalyticsRecorderService/IngestEvents"
	AnalyticsRecorderService_IngestNodeRoomStates_FullMethodName = "/livekit.AnalyticsRecorderService/IngestNodeRoomStates"
)

Variables

View Source
var (
	JobTerminateReason_name = map[int32]string{
		0: "TERMINATION_REQUESTED",
		1: "AGENT_LEFT_ROOM",
	}
	JobTerminateReason_value = map[string]int32{
		"TERMINATION_REQUESTED": 0,
		"AGENT_LEFT_ROOM":       1,
	}
)

Enum value maps for JobTerminateReason.

View Source
var (
	SIPDispatchResult_name = map[int32]string{
		0: "LEGACY_ACCEPT_OR_PIN",
		1: "ACCEPT",
		2: "REQUEST_PIN",
		3: "REJECT",
		4: "DROP",
	}
	SIPDispatchResult_value = map[string]int32{
		"LEGACY_ACCEPT_OR_PIN": 0,
		"ACCEPT":               1,
		"REQUEST_PIN":          2,
		"REJECT":               3,
		"DROP":                 4,
	}
)

Enum value maps for SIPDispatchResult.

View Source
var AnalyticsRecorderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "livekit.AnalyticsRecorderService",
	HandlerType: (*AnalyticsRecorderServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "IngestStats",
			Handler:       _AnalyticsRecorderService_IngestStats_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "IngestEvents",
			Handler:       _AnalyticsRecorderService_IngestEvents_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "IngestNodeRoomStates",
			Handler:       _AnalyticsRecorderService_IngestNodeRoomStates_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "rpc/analytics.proto",
}

AnalyticsRecorderService_ServiceDesc is the grpc.ServiceDesc for AnalyticsRecorderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var DefaultPSRPCConfig = PSRPCConfig{
	MaxAttempts: 3,
	Timeout:     3 * time.Second,
	Backoff:     2 * time.Second,
	BufferSize:  1000,
}
View Source
var File_rpc_agent_dispatch_proto protoreflect.FileDescriptor
View Source
var File_rpc_agent_proto protoreflect.FileDescriptor
View Source
var File_rpc_analytics_proto protoreflect.FileDescriptor
View Source
var File_rpc_common_proto protoreflect.FileDescriptor
View Source
var File_rpc_connector_proto protoreflect.FileDescriptor
View Source
var File_rpc_egress_proto protoreflect.FileDescriptor
View Source
var File_rpc_ingress_proto protoreflect.FileDescriptor
View Source
var File_rpc_io_proto protoreflect.FileDescriptor
View Source
var File_rpc_keepalive_proto protoreflect.FileDescriptor
View Source
var File_rpc_participant_proto protoreflect.FileDescriptor
View Source
var File_rpc_room_proto protoreflect.FileDescriptor
View Source
var File_rpc_roommanager_proto protoreflect.FileDescriptor
View Source
var File_rpc_signal_proto protoreflect.FileDescriptor
View Source
var File_rpc_sip_proto protoreflect.FileDescriptor
View Source
var File_rpc_whip_signal_proto protoreflect.FileDescriptor

Functions

func CurryMetricLabels added in v1.14.0

func CurryMetricLabels(labels prometheus.Labels)

func InitPSRPCStats added in v1.10.0

func InitPSRPCStats(constLabels prometheus.Labels, opts ...PSRPCMetricsOption)

func RegisterAnalyticsRecorderServiceServer added in v1.18.0

func RegisterAnalyticsRecorderServiceServer(s grpc.ServiceRegistrar, srv AnalyticsRecorderServiceServer)

func WithClientLogger added in v1.10.0

func WithClientLogger(logger logger.Logger) psrpc.ClientOption

func WithClientObservability added in v1.34.0

func WithClientObservability(logger logger.Logger) psrpc.ClientOption

func WithDefaultClientOptions added in v1.41.0

func WithDefaultClientOptions(logger logger.Logger, extra ...psrpc.ClientOption) psrpc.ClientOption

func WithDefaultServerOptions added in v1.22.0

func WithDefaultServerOptions(psrpcConfig PSRPCConfig, logger logger.Logger, extra ...psrpc.ServerOption) psrpc.ServerOption

func WithServerLogger added in v1.10.0

func WithServerLogger(logger logger.Logger) psrpc.ServerOption

func WithServerObservability added in v1.22.0

func WithServerObservability(logger logger.Logger) psrpc.ServerOption

Types

type AgentDispatchInternalClient added in v1.20.0

type AgentDispatchInternalClient[RoomTopicType ~string] interface {
	CreateDispatch(ctx context.Context, room RoomTopicType, req *livekit3.AgentDispatch, opts ...psrpc.RequestOption) (*livekit3.AgentDispatch, error)

	DeleteDispatch(ctx context.Context, room RoomTopicType, req *livekit3.DeleteAgentDispatchRequest, opts ...psrpc.RequestOption) (*livekit3.AgentDispatch, error)

	ListDispatch(ctx context.Context, room RoomTopicType, req *livekit3.ListAgentDispatchRequest, opts ...psrpc.RequestOption) (*livekit3.ListAgentDispatchResponse, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewAgentDispatchInternalClient added in v1.20.0

func NewAgentDispatchInternalClient[RoomTopicType ~string](bus psrpc.MessageBus, opts ...psrpc.ClientOption) (AgentDispatchInternalClient[RoomTopicType], error)

NewAgentDispatchInternalClient creates a psrpc client that implements the AgentDispatchInternalClient interface.

type AgentDispatchInternalServer added in v1.20.0

type AgentDispatchInternalServer[RoomTopicType ~string] interface {
	RegisterCreateDispatchTopic(room RoomTopicType) error
	DeregisterCreateDispatchTopic(room RoomTopicType)
	RegisterDeleteDispatchTopic(room RoomTopicType) error
	DeregisterDeleteDispatchTopic(room RoomTopicType)
	RegisterListDispatchTopic(room RoomTopicType) error
	DeregisterListDispatchTopic(room RoomTopicType)
	RegisterAllRoomTopics(room RoomTopicType) error
	DeregisterAllRoomTopics(room RoomTopicType)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewAgentDispatchInternalServer added in v1.20.0

func NewAgentDispatchInternalServer[RoomTopicType ~string](svc AgentDispatchInternalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (AgentDispatchInternalServer[RoomTopicType], error)

NewAgentDispatchInternalServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type AgentInternalClient added in v1.9.1

type AgentInternalClient interface {
	CheckEnabled(ctx context.Context, req *CheckEnabledRequest, opts ...psrpc.RequestOption) (<-chan *psrpc.Response[*CheckEnabledResponse], error)

	JobRequest(ctx context.Context, namespace string, jobType string, req *livekit2.Job, opts ...psrpc.RequestOption) (*JobRequestResponse, error)

	JobTerminate(ctx context.Context, jobId string, req *JobTerminateRequest, opts ...psrpc.RequestOption) (*JobTerminateResponse, error)

	SubscribeWorkerRegistered(ctx context.Context, handlerNamespace string) (psrpc.Subscription[*google_protobuf.Empty], error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewAgentInternalClient added in v1.9.1

func NewAgentInternalClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (AgentInternalClient, error)

NewAgentInternalClient creates a psrpc client that implements the AgentInternalClient interface.

type AgentInternalServer added in v1.9.1

type AgentInternalServer interface {
	RegisterJobRequestTopic(namespace string, jobType string) error
	DeregisterJobRequestTopic(namespace string, jobType string)
	RegisterJobTerminateTopic(jobId string) error
	DeregisterJobTerminateTopic(jobId string)
	PublishWorkerRegistered(ctx context.Context, handlerNamespace string, msg *google_protobuf.Empty) error

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewAgentInternalServer added in v1.9.1

func NewAgentInternalServer(svc AgentInternalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (AgentInternalServer, error)

NewAgentInternalServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type AgentInternalServerImpl added in v1.9.1

type AgentInternalServerImpl interface {
	CheckEnabled(context.Context, *CheckEnabledRequest) (*CheckEnabledResponse, error)

	JobRequest(context.Context, *livekit2.Job) (*JobRequestResponse, error)
	JobRequestAffinity(context.Context, *livekit2.Job) float32

	JobTerminate(context.Context, *JobTerminateRequest) (*JobTerminateResponse, error)
}

type AnalyticsRecorderServiceClient added in v1.18.0

type AnalyticsRecorderServiceClient interface {
	IngestStats(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[livekit.AnalyticsStats, emptypb.Empty], error)
	IngestEvents(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[livekit.AnalyticsEvents, emptypb.Empty], error)
	IngestNodeRoomStates(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[livekit.AnalyticsNodeRooms, emptypb.Empty], error)
}

AnalyticsRecorderServiceClient is the client API for AnalyticsRecorderService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAnalyticsRecorderServiceClient added in v1.18.0

func NewAnalyticsRecorderServiceClient(cc grpc.ClientConnInterface) AnalyticsRecorderServiceClient

type AnalyticsRecorderServiceServer added in v1.18.0

type AnalyticsRecorderServiceServer interface {
	IngestStats(grpc.ClientStreamingServer[livekit.AnalyticsStats, emptypb.Empty]) error
	IngestEvents(grpc.ClientStreamingServer[livekit.AnalyticsEvents, emptypb.Empty]) error
	IngestNodeRoomStates(grpc.ClientStreamingServer[livekit.AnalyticsNodeRooms, emptypb.Empty]) error
	// contains filtered or unexported methods
}

AnalyticsRecorderServiceServer is the server API for AnalyticsRecorderService service. All implementations must embed UnimplementedAnalyticsRecorderServiceServer for forward compatibility.

type AnalyticsRecorderService_IngestEventsClient added in v1.18.0

type AnalyticsRecorderService_IngestEventsClient = grpc.ClientStreamingClient[livekit.AnalyticsEvents, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AnalyticsRecorderService_IngestEventsServer added in v1.18.0

type AnalyticsRecorderService_IngestEventsServer = grpc.ClientStreamingServer[livekit.AnalyticsEvents, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AnalyticsRecorderService_IngestNodeRoomStatesClient added in v1.18.0

type AnalyticsRecorderService_IngestNodeRoomStatesClient = grpc.ClientStreamingClient[livekit.AnalyticsNodeRooms, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AnalyticsRecorderService_IngestNodeRoomStatesServer added in v1.18.0

type AnalyticsRecorderService_IngestNodeRoomStatesServer = grpc.ClientStreamingServer[livekit.AnalyticsNodeRooms, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AnalyticsRecorderService_IngestStatsClient added in v1.18.0

type AnalyticsRecorderService_IngestStatsClient = grpc.ClientStreamingClient[livekit.AnalyticsStats, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AnalyticsRecorderService_IngestStatsServer added in v1.18.0

type AnalyticsRecorderService_IngestStatsServer = grpc.ClientStreamingServer[livekit.AnalyticsStats, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type CheckEnabledRequest added in v1.9.1

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

func (*CheckEnabledRequest) Descriptor deprecated added in v1.9.1

func (*CheckEnabledRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckEnabledRequest.ProtoReflect.Descriptor instead.

func (*CheckEnabledRequest) ProtoMessage added in v1.9.1

func (*CheckEnabledRequest) ProtoMessage()

func (*CheckEnabledRequest) ProtoReflect added in v1.9.1

func (x *CheckEnabledRequest) ProtoReflect() protoreflect.Message

func (*CheckEnabledRequest) Reset added in v1.9.1

func (x *CheckEnabledRequest) Reset()

func (*CheckEnabledRequest) String added in v1.9.1

func (x *CheckEnabledRequest) String() string

type CheckEnabledResponse added in v1.9.1

type CheckEnabledResponse struct {
	RoomEnabled        bool `protobuf:"varint,1,opt,name=room_enabled,json=roomEnabled,proto3" json:"room_enabled,omitempty"`
	PublisherEnabled   bool `protobuf:"varint,2,opt,name=publisher_enabled,json=publisherEnabled,proto3" json:"publisher_enabled,omitempty"`
	ParticipantEnabled bool `protobuf:"varint,5,opt,name=participant_enabled,json=participantEnabled,proto3" json:"participant_enabled,omitempty"`
	// Deprecated: Marked as deprecated in rpc/agent.proto.
	Namespaces []string `protobuf:"bytes,3,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	AgentNames []string `protobuf:"bytes,4,rep,name=agent_names,json=agentNames,proto3" json:"agent_names,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckEnabledResponse) Descriptor deprecated added in v1.9.1

func (*CheckEnabledResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckEnabledResponse.ProtoReflect.Descriptor instead.

func (*CheckEnabledResponse) GetAgentNames added in v1.19.2

func (x *CheckEnabledResponse) GetAgentNames() []string

func (*CheckEnabledResponse) GetNamespaces deprecated added in v1.14.0

func (x *CheckEnabledResponse) GetNamespaces() []string

Deprecated: Marked as deprecated in rpc/agent.proto.

func (*CheckEnabledResponse) GetParticipantEnabled added in v1.34.0

func (x *CheckEnabledResponse) GetParticipantEnabled() bool

func (*CheckEnabledResponse) GetPublisherEnabled added in v1.9.1

func (x *CheckEnabledResponse) GetPublisherEnabled() bool

func (*CheckEnabledResponse) GetRoomEnabled added in v1.9.1

func (x *CheckEnabledResponse) GetRoomEnabled() bool

func (*CheckEnabledResponse) ProtoMessage added in v1.9.1

func (*CheckEnabledResponse) ProtoMessage()

func (*CheckEnabledResponse) ProtoReflect added in v1.9.1

func (x *CheckEnabledResponse) ProtoReflect() protoreflect.Message

func (*CheckEnabledResponse) Reset added in v1.9.1

func (x *CheckEnabledResponse) Reset()

func (*CheckEnabledResponse) String added in v1.9.1

func (x *CheckEnabledResponse) String() string

type ClientParams added in v1.9.0

type ClientParams struct {
	PSRPCConfig
	Bus            psrpc.MessageBus
	Logger         logger.Logger
	TracerProvider tracer.TracerProvider // will use default if unset
	Observer       middleware.MetricsObserver
	ClientOptions  []psrpc.ClientOption
}

func NewClientParams added in v1.9.0

func NewClientParams(
	config PSRPCConfig,
	bus psrpc.MessageBus,
	logger logger.Logger,
	observer middleware.MetricsObserver,
	opts ...psrpc.ClientOption,
) ClientParams

func (*ClientParams) Args added in v1.22.0

func (*ClientParams) Options added in v1.14.0

func (p *ClientParams) Options() []psrpc.ClientOption

type ConnectorClient added in v1.42.1

type ConnectorClient interface {
	ConnectorInternalClient
	ConnectorHandlerClient
}

func NewConnectorClient added in v1.42.1

func NewConnectorClient(params ClientParams) (ConnectorClient, error)

type ConnectorHandlerClient added in v1.42.1

type ConnectorHandlerClient interface {
	ConnectWhatsAppCall(ctx context.Context, whatsappCallId string, req *livekit10.ConnectWhatsAppCallRequest, opts ...psrpc.RequestOption) (*livekit10.ConnectWhatsAppCallResponse, error)

	DisconnectWhatsAppCall(ctx context.Context, whatsappCallId string, req *livekit10.DisconnectWhatsAppCallRequest, opts ...psrpc.RequestOption) (*livekit10.DisconnectWhatsAppCallResponse, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewConnectorHandlerClient added in v1.42.1

func NewConnectorHandlerClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (ConnectorHandlerClient, error)

NewConnectorHandlerClient creates a psrpc client that implements the ConnectorHandlerClient interface.

type ConnectorHandlerServer added in v1.42.1

type ConnectorHandlerServer interface {
	RegisterConnectWhatsAppCallTopic(whatsappCallId string) error
	DeregisterConnectWhatsAppCallTopic(whatsappCallId string)
	RegisterDisconnectWhatsAppCallTopic(whatsappCallId string) error
	DeregisterDisconnectWhatsAppCallTopic(whatsappCallId string)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewConnectorHandlerServer added in v1.42.1

func NewConnectorHandlerServer(svc ConnectorHandlerServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (ConnectorHandlerServer, error)

NewConnectorHandlerServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type ConnectorInternalClient added in v1.42.1

type ConnectorInternalClient interface {
	DialWhatsAppCall(ctx context.Context, topic string, req *InternalDialWhatsAppCallRequest, opts ...psrpc.RequestOption) (*livekit10.DialWhatsAppCallResponse, error)

	AcceptWhatsAppCall(ctx context.Context, topic string, req *InternalAcceptWhatsAppCallRequest, opts ...psrpc.RequestOption) (*livekit10.AcceptWhatsAppCallResponse, error)

	ConnectTwilioCall(ctx context.Context, topic string, req *InternalConnectTwilioCallRequest, opts ...psrpc.RequestOption) (*livekit11.ConnectTwilioCallResponse, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewConnectorInternalClient added in v1.42.1

func NewConnectorInternalClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (ConnectorInternalClient, error)

NewConnectorInternalClient creates a psrpc client that implements the ConnectorInternalClient interface.

type ConnectorInternalServer added in v1.42.1

type ConnectorInternalServer interface {
	RegisterDialWhatsAppCallTopic(topic string) error
	DeregisterDialWhatsAppCallTopic(topic string)
	RegisterAcceptWhatsAppCallTopic(topic string) error
	DeregisterAcceptWhatsAppCallTopic(topic string)
	RegisterConnectTwilioCallTopic(topic string) error
	DeregisterConnectTwilioCallTopic(topic string)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewConnectorInternalServer added in v1.42.1

func NewConnectorInternalServer(svc ConnectorInternalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (ConnectorInternalServer, error)

NewConnectorInternalServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type DeleteWHIPResourceRequest added in v1.5.6

type DeleteWHIPResourceRequest struct {
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	StreamKey  string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteWHIPResourceRequest) Descriptor deprecated added in v1.5.6

func (*DeleteWHIPResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteWHIPResourceRequest.ProtoReflect.Descriptor instead.

func (*DeleteWHIPResourceRequest) GetResourceId added in v1.5.6

func (x *DeleteWHIPResourceRequest) GetResourceId() string

func (*DeleteWHIPResourceRequest) GetStreamKey added in v1.5.9

func (x *DeleteWHIPResourceRequest) GetStreamKey() string

func (*DeleteWHIPResourceRequest) ProtoMessage added in v1.5.6

func (*DeleteWHIPResourceRequest) ProtoMessage()

func (*DeleteWHIPResourceRequest) ProtoReflect added in v1.5.6

func (*DeleteWHIPResourceRequest) Reset added in v1.5.6

func (x *DeleteWHIPResourceRequest) Reset()

func (*DeleteWHIPResourceRequest) String added in v1.5.6

func (x *DeleteWHIPResourceRequest) String() string

type EgressClient

type EgressClient interface {
	EgressInternalClient
	EgressHandlerClient
}

func NewEgressClient

func NewEgressClient(params ClientParams) (EgressClient, error)

type EgressHandlerClient

type EgressHandlerClient interface {
	UpdateStream(ctx context.Context, topic string, req *livekit4.UpdateStreamRequest, opts ...psrpc.RequestOption) (*livekit4.EgressInfo, error)

	StopEgress(ctx context.Context, topic string, req *livekit4.StopEgressRequest, opts ...psrpc.RequestOption) (*livekit4.EgressInfo, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewEgressHandlerClient

func NewEgressHandlerClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (EgressHandlerClient, error)

NewEgressHandlerClient creates a psrpc client that implements the EgressHandlerClient interface.

type EgressHandlerServer

type EgressHandlerServer interface {
	RegisterUpdateStreamTopic(topic string) error
	DeregisterUpdateStreamTopic(topic string)
	RegisterStopEgressTopic(topic string) error
	DeregisterStopEgressTopic(topic string)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewEgressHandlerServer

func NewEgressHandlerServer(svc EgressHandlerServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (EgressHandlerServer, error)

NewEgressHandlerServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type EgressHandlerServerImpl

type EgressHandlerServerImpl interface {
	UpdateStream(context.Context, *livekit4.UpdateStreamRequest) (*livekit4.EgressInfo, error)

	StopEgress(context.Context, *livekit4.StopEgressRequest) (*livekit4.EgressInfo, error)
}

type EgressInternalClient

type EgressInternalClient interface {
	StartEgress(ctx context.Context, topic string, req *StartEgressRequest, opts ...psrpc.RequestOption) (*livekit4.EgressInfo, error)

	ListActiveEgress(ctx context.Context, topic string, req *ListActiveEgressRequest, opts ...psrpc.RequestOption) (<-chan *psrpc.Response[*ListActiveEgressResponse], error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewEgressInternalClient

func NewEgressInternalClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (EgressInternalClient, error)

NewEgressInternalClient creates a psrpc client that implements the EgressInternalClient interface.

type EgressInternalServer

type EgressInternalServer interface {
	RegisterStartEgressTopic(topic string) error
	DeregisterStartEgressTopic(topic string)
	RegisterListActiveEgressTopic(topic string) error
	DeregisterListActiveEgressTopic(topic string)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewEgressInternalServer

func NewEgressInternalServer(svc EgressInternalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (EgressInternalServer, error)

NewEgressInternalServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type EgressInternalServerImpl

type EgressInternalServerImpl interface {
	StartEgress(context.Context, *StartEgressRequest) (*livekit4.EgressInfo, error)
	StartEgressAffinity(context.Context, *StartEgressRequest) float32

	ListActiveEgress(context.Context, *ListActiveEgressRequest) (*ListActiveEgressResponse, error)
}

type EvaluateSIPDispatchRulesRequest added in v1.9.1

type EvaluateSIPDispatchRulesRequest struct {

	// Deprecated: Marked as deprecated in rpc/io.proto.
	SipCallId string `protobuf:"bytes,8,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"`
	// Deprecated: Marked as deprecated in rpc/io.proto.
	SipParticipantId string `protobuf:"bytes,1,opt,name=sip_participant_id,json=sipParticipantId,proto3" json:"sip_participant_id,omitempty"`
	// Trunk from the auth response, if any
	SipTrunkId string `protobuf:"bytes,10,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"`
	// What Number is calling
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	CallingNumber string `protobuf:"bytes,2,opt,name=calling_number,json=callingNumber,proto3" json:"calling_number,omitempty"`
	// What Host is calling
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	CallingHost string `protobuf:"bytes,11,opt,name=calling_host,json=callingHost,proto3" json:"calling_host,omitempty"`
	// What Number was called
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	CalledNumber string `protobuf:"bytes,3,opt,name=called_number,json=calledNumber,proto3" json:"called_number,omitempty"`
	// What is the IP address of the called number
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	SrcAddress string `protobuf:"bytes,4,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"`
	// What pin has been entered if any
	Pin string `protobuf:"bytes,5,opt,name=pin,proto3" json:"pin,omitempty"`
	// Caller rejected pin prompt, only try public rooms
	NoPin bool `protobuf:"varint,6,opt,name=no_pin,json=noPin,proto3" json:"no_pin,omitempty"`
	// What Host was called
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	CalledHost string `protobuf:"bytes,7,opt,name=called_host,json=calledHost,proto3" json:"called_host,omitempty"`
	// Extra participant attributes added for this call.
	// Usually include provider-specific metadata.
	ExtraAttributes map[string]string `` /* 180-byte string literal not displayed */
	Call            *SIPCall          `protobuf:"bytes,12,opt,name=call,proto3" json:"call,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluateSIPDispatchRulesRequest) Descriptor deprecated added in v1.9.1

func (*EvaluateSIPDispatchRulesRequest) Descriptor() ([]byte, []int)

Deprecated: Use EvaluateSIPDispatchRulesRequest.ProtoReflect.Descriptor instead.

func (*EvaluateSIPDispatchRulesRequest) GetCall added in v1.35.0

func (*EvaluateSIPDispatchRulesRequest) GetCalledHost deprecated added in v1.9.4

func (x *EvaluateSIPDispatchRulesRequest) GetCalledHost() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*EvaluateSIPDispatchRulesRequest) GetCalledNumber deprecated added in v1.9.1

func (x *EvaluateSIPDispatchRulesRequest) GetCalledNumber() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*EvaluateSIPDispatchRulesRequest) GetCallingHost deprecated added in v1.35.0

func (x *EvaluateSIPDispatchRulesRequest) GetCallingHost() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*EvaluateSIPDispatchRulesRequest) GetCallingNumber deprecated added in v1.9.1

func (x *EvaluateSIPDispatchRulesRequest) GetCallingNumber() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*EvaluateSIPDispatchRulesRequest) GetExtraAttributes added in v1.18.0

func (x *EvaluateSIPDispatchRulesRequest) GetExtraAttributes() map[string]string

func (*EvaluateSIPDispatchRulesRequest) GetNoPin added in v1.9.2

func (x *EvaluateSIPDispatchRulesRequest) GetNoPin() bool

func (*EvaluateSIPDispatchRulesRequest) GetPin added in v1.9.1

func (*EvaluateSIPDispatchRulesRequest) GetSipCallId deprecated added in v1.15.0

func (x *EvaluateSIPDispatchRulesRequest) GetSipCallId() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*EvaluateSIPDispatchRulesRequest) GetSipParticipantId deprecated added in v1.9.1

func (x *EvaluateSIPDispatchRulesRequest) GetSipParticipantId() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*EvaluateSIPDispatchRulesRequest) GetSipTrunkId added in v1.22.0

func (x *EvaluateSIPDispatchRulesRequest) GetSipTrunkId() string

func (*EvaluateSIPDispatchRulesRequest) GetSrcAddress deprecated added in v1.9.1

func (x *EvaluateSIPDispatchRulesRequest) GetSrcAddress() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*EvaluateSIPDispatchRulesRequest) ProtoMessage added in v1.9.1

func (*EvaluateSIPDispatchRulesRequest) ProtoMessage()

func (*EvaluateSIPDispatchRulesRequest) ProtoReflect added in v1.9.1

func (*EvaluateSIPDispatchRulesRequest) Reset added in v1.9.1

func (*EvaluateSIPDispatchRulesRequest) SIPCall added in v1.35.0

func (*EvaluateSIPDispatchRulesRequest) String added in v1.9.1

type EvaluateSIPDispatchRulesResponse added in v1.9.1

type EvaluateSIPDispatchRulesResponse struct {

	// non-empty string if SIPParticipant should be placed a room
	RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
	// What should be used for the LiveKit participant identity
	ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
	// What should be used for the LiveKit participant name
	ParticipantName string `protobuf:"bytes,7,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"`
	// What should be used for the LiveKit participant metadata
	ParticipantMetadata string `protobuf:"bytes,8,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"`
	// What should be used for the LiveKit participant attributes
	ParticipantAttributes map[string]string `` /* 199-byte string literal not displayed */
	// Deprecated: Marked as deprecated in rpc/io.proto.
	RequestPin bool `protobuf:"varint,3,opt,name=request_pin,json=requestPin,proto3" json:"request_pin,omitempty"` // see result
	// optional token that should be used when creating LiveKit participant
	Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
	// optional websocket url that should be used when creating LiveKit participant
	WsUrl  string            `protobuf:"bytes,5,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"`
	Result SIPDispatchResult `protobuf:"varint,6,opt,name=result,proto3,enum=rpc.SIPDispatchResult" json:"result,omitempty"`
	// Trunk used to fulfill this request
	SipTrunkId string `protobuf:"bytes,9,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"`
	// Dispatch Rule used to fulfill this request
	SipDispatchRuleId string `protobuf:"bytes,10,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3" json:"sip_dispatch_rule_id,omitempty"`
	// Used in Cloud only
	ProjectId string `protobuf:"bytes,12,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Include these SIP X-* headers in 200 OK response to INVITE.
	// These headers are included as-is and may help identify triggered LiveKit Dispatch Rule for the other SIP endpoint.
	Headers map[string]string `` /* 142-byte string literal not displayed */
	// Map SIP X-* headers from INVITE to SIP participant attributes.
	// Keys are the names of X-* headers and values are the names of attributes they will be mapped to.
	HeadersToAttributes map[string]string `` /* 195-byte string literal not displayed */
	// Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests.
	// Keys are the names of attributes and values are the names of X-* headers they will be mapped to.
	AttributesToHeaders map[string]string `` /* 195-byte string literal not displayed */
	// Map SIP headers from INVITE to sip.h.* participant attributes automatically.
	//
	// When the names of required headers is known, using headers_to_attributes is strongly recommended.
	//
	// When mapping INVITE headers to response headers with attributes_to_headers map,
	// lowercase header names should be used, for example: sip.h.x-custom-header.
	IncludeHeaders  livekit.SIPHeaderOptions `` /* 135-byte string literal not displayed */
	EnabledFeatures []livekit.SIPFeature     `` /* 139-byte string literal not displayed */
	// Max time for the caller to wait for track subscription.
	RingingTimeout *durationpb.Duration `protobuf:"bytes,16,opt,name=ringing_timeout,json=ringingTimeout,proto3" json:"ringing_timeout,omitempty"`
	// Max call duration.
	MaxCallDuration *durationpb.Duration `protobuf:"bytes,17,opt,name=max_call_duration,json=maxCallDuration,proto3" json:"max_call_duration,omitempty"`
	// Room preset and config are used only to generate tokens
	// once tokens are returned by this response consistently, it will no longer
	// be needed
	RoomPreset      string                     `protobuf:"bytes,20,opt,name=room_preset,json=roomPreset,proto3" json:"room_preset,omitempty"`
	RoomConfig      *livekit.RoomConfiguration `protobuf:"bytes,21,opt,name=room_config,json=roomConfig,proto3" json:"room_config,omitempty"`
	MediaEncryption livekit.SIPMediaEncryption `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*EvaluateSIPDispatchRulesResponse) Descriptor deprecated added in v1.9.1

func (*EvaluateSIPDispatchRulesResponse) Descriptor() ([]byte, []int)

Deprecated: Use EvaluateSIPDispatchRulesResponse.ProtoReflect.Descriptor instead.

func (*EvaluateSIPDispatchRulesResponse) GetAttributesToHeaders added in v1.28.0

func (x *EvaluateSIPDispatchRulesResponse) GetAttributesToHeaders() map[string]string

func (*EvaluateSIPDispatchRulesResponse) GetEnabledFeatures added in v1.24.0

func (x *EvaluateSIPDispatchRulesResponse) GetEnabledFeatures() []livekit.SIPFeature

func (*EvaluateSIPDispatchRulesResponse) GetHeaders added in v1.22.0

func (x *EvaluateSIPDispatchRulesResponse) GetHeaders() map[string]string

func (*EvaluateSIPDispatchRulesResponse) GetHeadersToAttributes added in v1.22.0

func (x *EvaluateSIPDispatchRulesResponse) GetHeadersToAttributes() map[string]string

func (*EvaluateSIPDispatchRulesResponse) GetIncludeHeaders added in v1.30.0

func (*EvaluateSIPDispatchRulesResponse) GetMaxCallDuration added in v1.26.0

func (x *EvaluateSIPDispatchRulesResponse) GetMaxCallDuration() *durationpb.Duration

func (*EvaluateSIPDispatchRulesResponse) GetMediaEncryption added in v1.31.0

func (*EvaluateSIPDispatchRulesResponse) GetParticipantAttributes added in v1.18.0

func (x *EvaluateSIPDispatchRulesResponse) GetParticipantAttributes() map[string]string

func (*EvaluateSIPDispatchRulesResponse) GetParticipantIdentity added in v1.9.1

func (x *EvaluateSIPDispatchRulesResponse) GetParticipantIdentity() string

func (*EvaluateSIPDispatchRulesResponse) GetParticipantMetadata added in v1.15.0

func (x *EvaluateSIPDispatchRulesResponse) GetParticipantMetadata() string

func (*EvaluateSIPDispatchRulesResponse) GetParticipantName added in v1.15.0

func (x *EvaluateSIPDispatchRulesResponse) GetParticipantName() string

func (*EvaluateSIPDispatchRulesResponse) GetProjectId added in v1.22.0

func (x *EvaluateSIPDispatchRulesResponse) GetProjectId() string

func (*EvaluateSIPDispatchRulesResponse) GetRequestPin deprecated added in v1.9.1

func (x *EvaluateSIPDispatchRulesResponse) GetRequestPin() bool

Deprecated: Marked as deprecated in rpc/io.proto.

func (*EvaluateSIPDispatchRulesResponse) GetResult added in v1.9.9

func (*EvaluateSIPDispatchRulesResponse) GetRingingTimeout added in v1.26.0

func (x *EvaluateSIPDispatchRulesResponse) GetRingingTimeout() *durationpb.Duration

func (*EvaluateSIPDispatchRulesResponse) GetRoomConfig added in v1.30.0

func (*EvaluateSIPDispatchRulesResponse) GetRoomName added in v1.9.1

func (x *EvaluateSIPDispatchRulesResponse) GetRoomName() string

func (*EvaluateSIPDispatchRulesResponse) GetRoomPreset added in v1.30.0

func (x *EvaluateSIPDispatchRulesResponse) GetRoomPreset() string

func (*EvaluateSIPDispatchRulesResponse) GetSipDispatchRuleId added in v1.15.0

func (x *EvaluateSIPDispatchRulesResponse) GetSipDispatchRuleId() string

func (*EvaluateSIPDispatchRulesResponse) GetSipTrunkId added in v1.15.0

func (x *EvaluateSIPDispatchRulesResponse) GetSipTrunkId() string

func (*EvaluateSIPDispatchRulesResponse) GetToken added in v1.9.4

func (*EvaluateSIPDispatchRulesResponse) GetWsUrl added in v1.9.4

func (*EvaluateSIPDispatchRulesResponse) ProtoMessage added in v1.9.1

func (*EvaluateSIPDispatchRulesResponse) ProtoMessage()

func (*EvaluateSIPDispatchRulesResponse) ProtoReflect added in v1.9.1

func (*EvaluateSIPDispatchRulesResponse) Reset added in v1.9.1

func (*EvaluateSIPDispatchRulesResponse) String added in v1.9.1

type GetEgressRequest added in v1.8.1

type GetEgressRequest struct {
	EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEgressRequest) Descriptor deprecated added in v1.8.1

func (*GetEgressRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetEgressRequest.ProtoReflect.Descriptor instead.

func (*GetEgressRequest) GetEgressId added in v1.8.1

func (x *GetEgressRequest) GetEgressId() string

func (*GetEgressRequest) ProtoMessage added in v1.8.1

func (*GetEgressRequest) ProtoMessage()

func (*GetEgressRequest) ProtoReflect added in v1.8.1

func (x *GetEgressRequest) ProtoReflect() protoreflect.Message

func (*GetEgressRequest) Reset added in v1.8.1

func (x *GetEgressRequest) Reset()

func (*GetEgressRequest) String added in v1.8.1

func (x *GetEgressRequest) String() string

type GetIngressInfoRequest

type GetIngressInfoRequest struct {
	IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"`
	StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"`
	// contains filtered or unexported fields
}

Query an ingress info from an ingress ID or stream key

func (*GetIngressInfoRequest) Descriptor deprecated

func (*GetIngressInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetIngressInfoRequest.ProtoReflect.Descriptor instead.

func (*GetIngressInfoRequest) GetIngressId

func (x *GetIngressInfoRequest) GetIngressId() string

func (*GetIngressInfoRequest) GetStreamKey

func (x *GetIngressInfoRequest) GetStreamKey() string

func (*GetIngressInfoRequest) ProtoMessage

func (*GetIngressInfoRequest) ProtoMessage()

func (*GetIngressInfoRequest) ProtoReflect

func (x *GetIngressInfoRequest) ProtoReflect() protoreflect.Message

func (*GetIngressInfoRequest) Reset

func (x *GetIngressInfoRequest) Reset()

func (*GetIngressInfoRequest) String

func (x *GetIngressInfoRequest) String() string

type GetIngressInfoResponse

type GetIngressInfoResponse struct {
	Info          *livekit.IngressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	Token         string               `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	WsUrl         string               `protobuf:"bytes,3,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"`
	LoggingFields map[string]string    `` /* 174-byte string literal not displayed */
	FeatureFlags  map[string]string    `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetIngressInfoResponse) Descriptor deprecated

func (*GetIngressInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetIngressInfoResponse.ProtoReflect.Descriptor instead.

func (*GetIngressInfoResponse) GetFeatureFlags added in v1.42.0

func (x *GetIngressInfoResponse) GetFeatureFlags() map[string]string

func (*GetIngressInfoResponse) GetInfo

func (*GetIngressInfoResponse) GetLoggingFields added in v1.9.8

func (x *GetIngressInfoResponse) GetLoggingFields() map[string]string

func (*GetIngressInfoResponse) GetToken

func (x *GetIngressInfoResponse) GetToken() string

func (*GetIngressInfoResponse) GetWsUrl

func (x *GetIngressInfoResponse) GetWsUrl() string

func (*GetIngressInfoResponse) ProtoMessage

func (*GetIngressInfoResponse) ProtoMessage()

func (*GetIngressInfoResponse) ProtoReflect

func (x *GetIngressInfoResponse) ProtoReflect() protoreflect.Message

func (*GetIngressInfoResponse) Reset

func (x *GetIngressInfoResponse) Reset()

func (*GetIngressInfoResponse) String

func (x *GetIngressInfoResponse) String() string

type GetSIPTrunkAuthenticationRequest added in v1.9.1

type GetSIPTrunkAuthenticationRequest struct {

	// Deprecated: Marked as deprecated in rpc/io.proto.
	SipCallId string `protobuf:"bytes,6,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"`
	// What Number is calling
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// What Host is calling
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	FromHost string `protobuf:"bytes,7,opt,name=from_host,json=fromHost,proto3" json:"from_host,omitempty"`
	// What Number was called
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// What Host was called
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	ToHost string `protobuf:"bytes,5,opt,name=to_host,json=toHost,proto3" json:"to_host,omitempty"`
	// What is the IP address of the called number
	//
	// Deprecated: Marked as deprecated in rpc/io.proto.
	SrcAddress string   `protobuf:"bytes,4,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"`
	Call       *SIPCall `protobuf:"bytes,8,opt,name=call,proto3" json:"call,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSIPTrunkAuthenticationRequest) Descriptor deprecated added in v1.9.1

func (*GetSIPTrunkAuthenticationRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSIPTrunkAuthenticationRequest.ProtoReflect.Descriptor instead.

func (*GetSIPTrunkAuthenticationRequest) GetCall added in v1.35.0

func (*GetSIPTrunkAuthenticationRequest) GetFrom deprecated added in v1.9.1

Deprecated: Marked as deprecated in rpc/io.proto.

func (*GetSIPTrunkAuthenticationRequest) GetFromHost deprecated added in v1.35.0

func (x *GetSIPTrunkAuthenticationRequest) GetFromHost() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*GetSIPTrunkAuthenticationRequest) GetSipCallId deprecated added in v1.15.0

func (x *GetSIPTrunkAuthenticationRequest) GetSipCallId() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*GetSIPTrunkAuthenticationRequest) GetSrcAddress deprecated added in v1.9.1

func (x *GetSIPTrunkAuthenticationRequest) GetSrcAddress() string

Deprecated: Marked as deprecated in rpc/io.proto.

func (*GetSIPTrunkAuthenticationRequest) GetTo deprecated added in v1.9.1

Deprecated: Marked as deprecated in rpc/io.proto.

func (*GetSIPTrunkAuthenticationRequest) GetToHost deprecated added in v1.9.4

Deprecated: Marked as deprecated in rpc/io.proto.

func (*GetSIPTrunkAuthenticationRequest) ProtoMessage added in v1.9.1

func (*GetSIPTrunkAuthenticationRequest) ProtoMessage()

func (*GetSIPTrunkAuthenticationRequest) ProtoReflect added in v1.9.1

func (*GetSIPTrunkAuthenticationRequest) Reset added in v1.9.1

func (*GetSIPTrunkAuthenticationRequest) SIPCall added in v1.35.0

func (*GetSIPTrunkAuthenticationRequest) String added in v1.9.1

type GetSIPTrunkAuthenticationResponse added in v1.9.1

type GetSIPTrunkAuthenticationResponse struct {

	// Expected username and password
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Drop     bool   `protobuf:"varint,3,opt,name=drop,proto3" json:"drop,omitempty"`
	// Trunk used to fulfill this request
	SipTrunkId string `protobuf:"bytes,4,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"`
	// Used in Cloud only
	ProjectId    string                `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	ProviderInfo *livekit.ProviderInfo `protobuf:"bytes,6,opt,name=provider_info,json=providerInfo,proto3" json:"provider_info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSIPTrunkAuthenticationResponse) Descriptor deprecated added in v1.9.1

func (*GetSIPTrunkAuthenticationResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSIPTrunkAuthenticationResponse.ProtoReflect.Descriptor instead.

func (*GetSIPTrunkAuthenticationResponse) GetDrop added in v1.9.9

func (*GetSIPTrunkAuthenticationResponse) GetPassword added in v1.9.1

func (x *GetSIPTrunkAuthenticationResponse) GetPassword() string

func (*GetSIPTrunkAuthenticationResponse) GetProjectId added in v1.22.0

func (x *GetSIPTrunkAuthenticationResponse) GetProjectId() string

func (*GetSIPTrunkAuthenticationResponse) GetProviderInfo added in v1.42.1

func (*GetSIPTrunkAuthenticationResponse) GetSipTrunkId added in v1.15.0

func (x *GetSIPTrunkAuthenticationResponse) GetSipTrunkId() string

func (*GetSIPTrunkAuthenticationResponse) GetUsername added in v1.9.1

func (x *GetSIPTrunkAuthenticationResponse) GetUsername() string

func (*GetSIPTrunkAuthenticationResponse) ProtoMessage added in v1.9.1

func (*GetSIPTrunkAuthenticationResponse) ProtoMessage()

func (*GetSIPTrunkAuthenticationResponse) ProtoReflect added in v1.9.1

func (*GetSIPTrunkAuthenticationResponse) Reset added in v1.9.1

func (*GetSIPTrunkAuthenticationResponse) String added in v1.9.1

type ICERestartWHIPResourceRequest added in v1.17.0

type ICERestartWHIPResourceRequest struct {
	ResourceId           string   `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	StreamKey            string   `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"`
	UserFragment         string   `protobuf:"bytes,3,opt,name=user_fragment,json=userFragment,proto3" json:"user_fragment,omitempty"`
	Password             string   `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Candidates           []string `protobuf:"bytes,5,rep,name=candidates,proto3" json:"candidates,omitempty"`
	RawTrickleIceSdpfrag string   `protobuf:"bytes,6,opt,name=raw_trickle_ice_sdpfrag,json=rawTrickleIceSdpfrag,proto3" json:"raw_trickle_ice_sdpfrag,omitempty"`
	IfMatch              string   `protobuf:"bytes,7,opt,name=if_match,json=ifMatch,proto3" json:"if_match,omitempty"`
	// contains filtered or unexported fields
}

func (*ICERestartWHIPResourceRequest) Descriptor deprecated added in v1.17.0

func (*ICERestartWHIPResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use ICERestartWHIPResourceRequest.ProtoReflect.Descriptor instead.

func (*ICERestartWHIPResourceRequest) GetCandidates added in v1.17.0

func (x *ICERestartWHIPResourceRequest) GetCandidates() []string

func (*ICERestartWHIPResourceRequest) GetIfMatch added in v1.42.0

func (x *ICERestartWHIPResourceRequest) GetIfMatch() string

func (*ICERestartWHIPResourceRequest) GetPassword added in v1.17.0

func (x *ICERestartWHIPResourceRequest) GetPassword() string

func (*ICERestartWHIPResourceRequest) GetRawTrickleIceSdpfrag added in v1.42.0

func (x *ICERestartWHIPResourceRequest) GetRawTrickleIceSdpfrag() string

func (*ICERestartWHIPResourceRequest) GetResourceId added in v1.17.0

func (x *ICERestartWHIPResourceRequest) GetResourceId() string

func (*ICERestartWHIPResourceRequest) GetStreamKey added in v1.17.0

func (x *ICERestartWHIPResourceRequest) GetStreamKey() string

func (*ICERestartWHIPResourceRequest) GetUserFragment added in v1.17.0

func (x *ICERestartWHIPResourceRequest) GetUserFragment() string

func (*ICERestartWHIPResourceRequest) ProtoMessage added in v1.17.0

func (*ICERestartWHIPResourceRequest) ProtoMessage()

func (*ICERestartWHIPResourceRequest) ProtoReflect added in v1.17.0

func (*ICERestartWHIPResourceRequest) Reset added in v1.17.0

func (x *ICERestartWHIPResourceRequest) Reset()

func (*ICERestartWHIPResourceRequest) String added in v1.17.0

type ICERestartWHIPResourceResponse added in v1.17.0

type ICERestartWHIPResourceResponse struct {
	TrickleIceSdpfrag string `protobuf:"bytes,1,opt,name=trickle_ice_sdpfrag,json=trickleIceSdpfrag,proto3" json:"trickle_ice_sdpfrag,omitempty"`
	Etag              string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

func (*ICERestartWHIPResourceResponse) Descriptor deprecated added in v1.17.0

func (*ICERestartWHIPResourceResponse) Descriptor() ([]byte, []int)

Deprecated: Use ICERestartWHIPResourceResponse.ProtoReflect.Descriptor instead.

func (*ICERestartWHIPResourceResponse) GetEtag added in v1.42.0

func (*ICERestartWHIPResourceResponse) GetTrickleIceSdpfrag added in v1.17.0

func (x *ICERestartWHIPResourceResponse) GetTrickleIceSdpfrag() string

func (*ICERestartWHIPResourceResponse) ProtoMessage added in v1.17.0

func (*ICERestartWHIPResourceResponse) ProtoMessage()

func (*ICERestartWHIPResourceResponse) ProtoReflect added in v1.17.0

func (*ICERestartWHIPResourceResponse) Reset added in v1.17.0

func (x *ICERestartWHIPResourceResponse) Reset()

func (*ICERestartWHIPResourceResponse) String added in v1.17.0

type IOInfoClient

type IOInfoClient interface {
	// egress
	CreateEgress(ctx context.Context, req *livekit4.EgressInfo, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	UpdateEgress(ctx context.Context, req *livekit4.EgressInfo, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	GetEgress(ctx context.Context, req *GetEgressRequest, opts ...psrpc.RequestOption) (*livekit4.EgressInfo, error)

	ListEgress(ctx context.Context, req *livekit4.ListEgressRequest, opts ...psrpc.RequestOption) (*livekit4.ListEgressResponse, error)

	UpdateMetrics(ctx context.Context, req *UpdateMetricsRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	// ingress
	CreateIngress(ctx context.Context, req *livekit5.IngressInfo, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	GetIngressInfo(ctx context.Context, req *GetIngressInfoRequest, opts ...psrpc.RequestOption) (*GetIngressInfoResponse, error)

	UpdateIngressState(ctx context.Context, req *UpdateIngressStateRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	// sip
	GetSIPTrunkAuthentication(ctx context.Context, req *GetSIPTrunkAuthenticationRequest, opts ...psrpc.RequestOption) (*GetSIPTrunkAuthenticationResponse, error)

	EvaluateSIPDispatchRules(ctx context.Context, req *EvaluateSIPDispatchRulesRequest, opts ...psrpc.RequestOption) (*EvaluateSIPDispatchRulesResponse, error)

	UpdateSIPCallState(ctx context.Context, req *UpdateSIPCallStateRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	RecordCallContext(ctx context.Context, req *RecordCallContextRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewIOInfoClient

func NewIOInfoClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (IOInfoClient, error)

NewIOInfoClient creates a psrpc client that implements the IOInfoClient interface.

type IOInfoServer

type IOInfoServer interface {

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewIOInfoServer

func NewIOInfoServer(svc IOInfoServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (IOInfoServer, error)

NewIOInfoServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type IngressClient

type IngressClient interface {
	IngressInternalClient
	IngressHandlerClient
}

func NewIngressClient

func NewIngressClient(params ClientParams) (IngressClient, error)

type IngressHandlerClient

type IngressHandlerClient interface {
	UpdateIngress(ctx context.Context, topic string, req *livekit5.UpdateIngressRequest, opts ...psrpc.RequestOption) (*livekit5.IngressState, error)

	DeleteIngress(ctx context.Context, topic string, req *livekit5.DeleteIngressRequest, opts ...psrpc.RequestOption) (*livekit5.IngressState, error)

	DeleteWHIPResource(ctx context.Context, topic string, req *DeleteWHIPResourceRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	ICERestartWHIPResource(ctx context.Context, topic string, req *ICERestartWHIPResourceRequest, opts ...psrpc.RequestOption) (*ICERestartWHIPResourceResponse, error)

	WHIPRTCConnectionNotify(ctx context.Context, topic string, req *WHIPRTCConnectionNotifyRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewIngressHandlerClient

func NewIngressHandlerClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (IngressHandlerClient, error)

NewIngressHandlerClient creates a psrpc client that implements the IngressHandlerClient interface.

type IngressHandlerServer

type IngressHandlerServer interface {
	RegisterUpdateIngressTopic(topic string) error
	DeregisterUpdateIngressTopic(topic string)
	RegisterDeleteIngressTopic(topic string) error
	DeregisterDeleteIngressTopic(topic string)
	RegisterDeleteWHIPResourceTopic(topic string) error
	DeregisterDeleteWHIPResourceTopic(topic string)
	RegisterICERestartWHIPResourceTopic(topic string) error
	DeregisterICERestartWHIPResourceTopic(topic string)
	RegisterWHIPRTCConnectionNotifyTopic(topic string) error
	DeregisterWHIPRTCConnectionNotifyTopic(topic string)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewIngressHandlerServer

func NewIngressHandlerServer(svc IngressHandlerServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (IngressHandlerServer, error)

NewIngressHandlerServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type IngressInternalClient

type IngressInternalClient interface {
	StartIngress(ctx context.Context, req *StartIngressRequest, opts ...psrpc.RequestOption) (*livekit5.IngressInfo, error)

	ListActiveIngress(ctx context.Context, topic string, req *ListActiveIngressRequest, opts ...psrpc.RequestOption) (<-chan *psrpc.Response[*ListActiveIngressResponse], error)

	KillIngressSession(ctx context.Context, ingressId string, resourceId string, req *KillIngressSessionRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewIngressInternalClient

func NewIngressInternalClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (IngressInternalClient, error)

NewIngressInternalClient creates a psrpc client that implements the IngressInternalClient interface.

type IngressInternalServer

type IngressInternalServer interface {
	RegisterListActiveIngressTopic(topic string) error
	DeregisterListActiveIngressTopic(topic string)
	RegisterKillIngressSessionTopic(ingressId string, resourceId string) error
	DeregisterKillIngressSessionTopic(ingressId string, resourceId string)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewIngressInternalServer

func NewIngressInternalServer(svc IngressInternalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (IngressInternalServer, error)

NewIngressInternalServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type IngressSession added in v1.18.0

type IngressSession struct {
	IngressId  string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"`
	ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// contains filtered or unexported fields
}

func (*IngressSession) Descriptor deprecated added in v1.18.0

func (*IngressSession) Descriptor() ([]byte, []int)

Deprecated: Use IngressSession.ProtoReflect.Descriptor instead.

func (*IngressSession) GetIngressId added in v1.18.0

func (x *IngressSession) GetIngressId() string

func (*IngressSession) GetResourceId added in v1.18.0

func (x *IngressSession) GetResourceId() string

func (*IngressSession) ProtoMessage added in v1.18.0

func (*IngressSession) ProtoMessage()

func (*IngressSession) ProtoReflect added in v1.18.0

func (x *IngressSession) ProtoReflect() protoreflect.Message

func (*IngressSession) Reset added in v1.18.0

func (x *IngressSession) Reset()

func (*IngressSession) String added in v1.18.0

func (x *IngressSession) String() string

type InternalAcceptWhatsAppCallRequest added in v1.42.1

type InternalAcceptWhatsAppCallRequest struct {
	Request      *livekit.AcceptWhatsAppCallRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	RoomJoinInfo *InternalRoomJoinInfo              `protobuf:"bytes,2,opt,name=room_join_info,json=roomJoinInfo,proto3" json:"room_join_info,omitempty"`
	// contains filtered or unexported fields
}

func (*InternalAcceptWhatsAppCallRequest) Descriptor deprecated added in v1.42.1

func (*InternalAcceptWhatsAppCallRequest) Descriptor() ([]byte, []int)

Deprecated: Use InternalAcceptWhatsAppCallRequest.ProtoReflect.Descriptor instead.

func (*InternalAcceptWhatsAppCallRequest) GetRequest added in v1.42.1

func (*InternalAcceptWhatsAppCallRequest) GetRoomJoinInfo added in v1.42.1

func (*InternalAcceptWhatsAppCallRequest) ProtoMessage added in v1.42.1

func (*InternalAcceptWhatsAppCallRequest) ProtoMessage()

func (*InternalAcceptWhatsAppCallRequest) ProtoReflect added in v1.42.1

func (*InternalAcceptWhatsAppCallRequest) Reset added in v1.42.1

func (*InternalAcceptWhatsAppCallRequest) String added in v1.42.1

type InternalConnectTwilioCallRequest added in v1.42.2

type InternalConnectTwilioCallRequest struct {
	Request      *livekit.ConnectTwilioCallRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	RoomJoinInfo *InternalRoomJoinInfo             `protobuf:"bytes,2,opt,name=room_join_info,json=roomJoinInfo,proto3" json:"room_join_info,omitempty"`
	// contains filtered or unexported fields
}

func (*InternalConnectTwilioCallRequest) Descriptor deprecated added in v1.42.2

func (*InternalConnectTwilioCallRequest) Descriptor() ([]byte, []int)

Deprecated: Use InternalConnectTwilioCallRequest.ProtoReflect.Descriptor instead.

func (*InternalConnectTwilioCallRequest) GetRequest added in v1.42.2

func (*InternalConnectTwilioCallRequest) GetRoomJoinInfo added in v1.42.2

func (*InternalConnectTwilioCallRequest) ProtoMessage added in v1.42.2

func (*InternalConnectTwilioCallRequest) ProtoMessage()

func (*InternalConnectTwilioCallRequest) ProtoReflect added in v1.42.2

func (*InternalConnectTwilioCallRequest) Reset added in v1.42.2

func (*InternalConnectTwilioCallRequest) String added in v1.42.2

type InternalCreateSIPParticipantRequest added in v1.9.5

type InternalCreateSIPParticipantRequest struct {

	// Used in Cloud only
	ProjectId  string `protobuf:"bytes,18,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	SipCallId  string `protobuf:"bytes,13,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"`
	SipTrunkId string `protobuf:"bytes,19,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"`
	// IP or hostname that SIP INVITE is sent too
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// Hostname for the 'From' SIP address in INVITE
	Hostname           string               `protobuf:"bytes,20,opt,name=hostname,proto3" json:"hostname,omitempty"`
	DestinationCountry string               `protobuf:"bytes,30,opt,name=destination_country,json=destinationCountry,proto3" json:"destination_country,omitempty"`
	Transport          livekit.SIPTransport `protobuf:"varint,16,opt,name=transport,proto3,enum=livekit.SIPTransport" json:"transport,omitempty"`
	// Number used to make the call
	Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"`
	// Number to call to
	CallTo                string            `protobuf:"bytes,4,opt,name=call_to,json=callTo,proto3" json:"call_to,omitempty"`
	Username              string            `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
	Password              string            `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"`
	RoomName              string            `protobuf:"bytes,7,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
	ParticipantIdentity   string            `protobuf:"bytes,8,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
	ParticipantName       string            `protobuf:"bytes,14,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"`
	ParticipantMetadata   string            `protobuf:"bytes,15,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"`
	ParticipantAttributes map[string]string `` /* 199-byte string literal not displayed */
	// optional token that should be used when creating LiveKit participant
	Token string `protobuf:"bytes,9,opt,name=token,proto3" json:"token,omitempty"`
	// optional websocket url that should be used when creating LiveKit participant
	WsUrl string `protobuf:"bytes,10,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"`
	// Optionally send following DTMF digits (extension codes) when making a call.
	// Character 'w' can be used to add a 0.5 sec delay.
	Dtmf string `protobuf:"bytes,11,opt,name=dtmf,proto3" json:"dtmf,omitempty"`
	// Optionally play dialtone in the room as an audible indicator for existing participants
	PlayDialtone        bool              `protobuf:"varint,12,opt,name=play_dialtone,json=playDialtone,proto3" json:"play_dialtone,omitempty"`
	Headers             map[string]string `` /* 142-byte string literal not displayed */
	HeadersToAttributes map[string]string `` /* 195-byte string literal not displayed */
	// Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests.
	// Keys are the names of attributes and values are the names of X-* headers they will be mapped to.
	AttributesToHeaders map[string]string `` /* 195-byte string literal not displayed */
	// Map SIP headers from 200 OK to sip.h.* participant attributes automatically.
	//
	// When the names of required headers is known, using headers_to_attributes is strongly recommended.
	//
	// When mapping 200 OK headers to follow-up request headers with attributes_to_headers map,
	// lowercase header names should be used, for example: sip.h.x-custom-header.
	IncludeHeaders  livekit.SIPHeaderOptions `` /* 135-byte string literal not displayed */
	EnabledFeatures []livekit.SIPFeature     `` /* 139-byte string literal not displayed */
	// Max time for the callee to answer the call.
	RingingTimeout *durationpb.Duration `protobuf:"bytes,23,opt,name=ringing_timeout,json=ringingTimeout,proto3" json:"ringing_timeout,omitempty"`
	// Max call duration.
	MaxCallDuration *durationpb.Duration       `protobuf:"bytes,24,opt,name=max_call_duration,json=maxCallDuration,proto3" json:"max_call_duration,omitempty"`
	MediaEncryption livekit.SIPMediaEncryption `` /* 140-byte string literal not displayed */
	// Wait for the answer for the call before returning.
	WaitUntilAnswered bool `protobuf:"varint,29,opt,name=wait_until_answered,json=waitUntilAnswered,proto3" json:"wait_until_answered,omitempty"`
	// Optional display name for the 'From' SIP header.
	//
	// Cases:
	// 1) Unspecified: Use legacy behavior - display name will be set to be the caller's number.
	// 2) Empty string: Do not send a display name, which will result in a CNAM lookup downstream.
	// 3) Non-empty: Use the specified value as the display name.
	DisplayName *string `protobuf:"bytes,31,opt,name=display_name,json=displayName,proto3,oneof" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

func NewCreateSIPParticipantRequest added in v1.17.0

func NewCreateSIPParticipantRequest(
	projectID, callID, ownHostname, wsUrl, token string,
	req *livekit.CreateSIPParticipantRequest,
	trunk *livekit.SIPOutboundTrunkInfo,
) (*InternalCreateSIPParticipantRequest, error)

NewCreateSIPParticipantRequest fills InternalCreateSIPParticipantRequest from livekit.CreateSIPParticipantRequest and livekit.SIPTrunkInfo.

func (*InternalCreateSIPParticipantRequest) Descriptor deprecated added in v1.9.5

func (*InternalCreateSIPParticipantRequest) Descriptor() ([]byte, []int)

Deprecated: Use InternalCreateSIPParticipantRequest.ProtoReflect.Descriptor instead.

func (*InternalCreateSIPParticipantRequest) GetAddress added in v1.9.5

func (*InternalCreateSIPParticipantRequest) GetAttributesToHeaders added in v1.28.0

func (x *InternalCreateSIPParticipantRequest) GetAttributesToHeaders() map[string]string

func (*InternalCreateSIPParticipantRequest) GetCallTo added in v1.9.5

func (*InternalCreateSIPParticipantRequest) GetDestinationCountry added in v1.39.0

func (x *InternalCreateSIPParticipantRequest) GetDestinationCountry() string

func (*InternalCreateSIPParticipantRequest) GetDisplayName added in v1.42.0

func (x *InternalCreateSIPParticipantRequest) GetDisplayName() string

func (*InternalCreateSIPParticipantRequest) GetDtmf added in v1.12.0

func (*InternalCreateSIPParticipantRequest) GetEnabledFeatures added in v1.27.1

func (x *InternalCreateSIPParticipantRequest) GetEnabledFeatures() []livekit.SIPFeature

func (*InternalCreateSIPParticipantRequest) GetHeaders added in v1.22.0

func (*InternalCreateSIPParticipantRequest) GetHeadersToAttributes added in v1.22.0

func (x *InternalCreateSIPParticipantRequest) GetHeadersToAttributes() map[string]string

func (*InternalCreateSIPParticipantRequest) GetHostname added in v1.22.0

func (*InternalCreateSIPParticipantRequest) GetIncludeHeaders added in v1.30.0

func (*InternalCreateSIPParticipantRequest) GetMaxCallDuration added in v1.26.0

func (x *InternalCreateSIPParticipantRequest) GetMaxCallDuration() *durationpb.Duration

func (*InternalCreateSIPParticipantRequest) GetMediaEncryption added in v1.31.0

func (*InternalCreateSIPParticipantRequest) GetNumber added in v1.9.5

func (*InternalCreateSIPParticipantRequest) GetParticipantAttributes added in v1.18.0

func (x *InternalCreateSIPParticipantRequest) GetParticipantAttributes() map[string]string

func (*InternalCreateSIPParticipantRequest) GetParticipantIdentity added in v1.9.5

func (x *InternalCreateSIPParticipantRequest) GetParticipantIdentity() string

func (*InternalCreateSIPParticipantRequest) GetParticipantMetadata added in v1.15.0

func (x *InternalCreateSIPParticipantRequest) GetParticipantMetadata() string

func (*InternalCreateSIPParticipantRequest) GetParticipantName added in v1.15.0

func (x *InternalCreateSIPParticipantRequest) GetParticipantName() string

func (*InternalCreateSIPParticipantRequest) GetPassword added in v1.9.5

func (*InternalCreateSIPParticipantRequest) GetPlayDialtone added in v1.27.0

func (x *InternalCreateSIPParticipantRequest) GetPlayDialtone() bool

func (*InternalCreateSIPParticipantRequest) GetProjectId added in v1.22.0

func (x *InternalCreateSIPParticipantRequest) GetProjectId() string

func (*InternalCreateSIPParticipantRequest) GetRingingTimeout added in v1.26.0

func (*InternalCreateSIPParticipantRequest) GetRoomName added in v1.9.5

func (*InternalCreateSIPParticipantRequest) GetSipCallId added in v1.15.0

func (x *InternalCreateSIPParticipantRequest) GetSipCallId() string

func (*InternalCreateSIPParticipantRequest) GetSipTrunkId added in v1.22.0

func (x *InternalCreateSIPParticipantRequest) GetSipTrunkId() string

func (*InternalCreateSIPParticipantRequest) GetToken added in v1.9.8

func (*InternalCreateSIPParticipantRequest) GetTransport added in v1.17.0

func (*InternalCreateSIPParticipantRequest) GetUsername added in v1.9.5

func (*InternalCreateSIPParticipantRequest) GetWaitUntilAnswered added in v1.33.0

func (x *InternalCreateSIPParticipantRequest) GetWaitUntilAnswered() bool

func (*InternalCreateSIPParticipantRequest) GetWsUrl added in v1.9.8

func (*InternalCreateSIPParticipantRequest) ProtoMessage added in v1.9.5

func (*InternalCreateSIPParticipantRequest) ProtoMessage()

func (*InternalCreateSIPParticipantRequest) ProtoReflect added in v1.9.5

func (*InternalCreateSIPParticipantRequest) Reset added in v1.9.5

func (*InternalCreateSIPParticipantRequest) String added in v1.9.5

type InternalCreateSIPParticipantResponse added in v1.9.5

type InternalCreateSIPParticipantResponse struct {
	ParticipantId       string `protobuf:"bytes,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
	SipCallId           string `protobuf:"bytes,3,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InternalCreateSIPParticipantResponse) Descriptor deprecated added in v1.9.5

func (*InternalCreateSIPParticipantResponse) Descriptor() ([]byte, []int)

Deprecated: Use InternalCreateSIPParticipantResponse.ProtoReflect.Descriptor instead.

func (*InternalCreateSIPParticipantResponse) GetParticipantId added in v1.9.5

func (x *InternalCreateSIPParticipantResponse) GetParticipantId() string

func (*InternalCreateSIPParticipantResponse) GetParticipantIdentity added in v1.9.5

func (x *InternalCreateSIPParticipantResponse) GetParticipantIdentity() string

func (*InternalCreateSIPParticipantResponse) GetSipCallId added in v1.15.0

func (x *InternalCreateSIPParticipantResponse) GetSipCallId() string

func (*InternalCreateSIPParticipantResponse) ProtoMessage added in v1.9.5

func (*InternalCreateSIPParticipantResponse) ProtoMessage()

func (*InternalCreateSIPParticipantResponse) ProtoReflect added in v1.9.5

func (*InternalCreateSIPParticipantResponse) Reset added in v1.9.5

func (*InternalCreateSIPParticipantResponse) String added in v1.9.5

type InternalDialWhatsAppCallRequest added in v1.42.1

type InternalDialWhatsAppCallRequest struct {
	Request      *livekit.DialWhatsAppCallRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	RoomJoinInfo *InternalRoomJoinInfo            `protobuf:"bytes,2,opt,name=room_join_info,json=roomJoinInfo,proto3" json:"room_join_info,omitempty"`
	// contains filtered or unexported fields
}

func (*InternalDialWhatsAppCallRequest) Descriptor deprecated added in v1.42.1

func (*InternalDialWhatsAppCallRequest) Descriptor() ([]byte, []int)

Deprecated: Use InternalDialWhatsAppCallRequest.ProtoReflect.Descriptor instead.

func (*InternalDialWhatsAppCallRequest) GetRequest added in v1.42.1

func (*InternalDialWhatsAppCallRequest) GetRoomJoinInfo added in v1.42.1

func (*InternalDialWhatsAppCallRequest) ProtoMessage added in v1.42.1

func (*InternalDialWhatsAppCallRequest) ProtoMessage()

func (*InternalDialWhatsAppCallRequest) ProtoReflect added in v1.42.1

func (*InternalDialWhatsAppCallRequest) Reset added in v1.42.1

func (*InternalDialWhatsAppCallRequest) String added in v1.42.1

type InternalRoomJoinInfo added in v1.42.1

type InternalRoomJoinInfo struct {
	WsUrl     string `protobuf:"bytes,1,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"`
	Token     string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InternalRoomJoinInfo) Descriptor deprecated added in v1.42.1

func (*InternalRoomJoinInfo) Descriptor() ([]byte, []int)

Deprecated: Use InternalRoomJoinInfo.ProtoReflect.Descriptor instead.

func (*InternalRoomJoinInfo) GetProjectId added in v1.42.1

func (x *InternalRoomJoinInfo) GetProjectId() string

func (*InternalRoomJoinInfo) GetToken added in v1.42.1

func (x *InternalRoomJoinInfo) GetToken() string

func (*InternalRoomJoinInfo) GetWsUrl added in v1.42.1

func (x *InternalRoomJoinInfo) GetWsUrl() string

func (*InternalRoomJoinInfo) ProtoMessage added in v1.42.1

func (*InternalRoomJoinInfo) ProtoMessage()

func (*InternalRoomJoinInfo) ProtoReflect added in v1.42.1

func (x *InternalRoomJoinInfo) ProtoReflect() protoreflect.Message

func (*InternalRoomJoinInfo) Reset added in v1.42.1

func (x *InternalRoomJoinInfo) Reset()

func (*InternalRoomJoinInfo) String added in v1.42.1

func (x *InternalRoomJoinInfo) String() string

type InternalTransferSIPParticipantRequest added in v1.23.0

type InternalTransferSIPParticipantRequest struct {
	SipCallId  string `protobuf:"bytes,1,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"`
	TransferTo string `protobuf:"bytes,2,opt,name=transfer_to,json=transferTo,proto3" json:"transfer_to,omitempty"`
	// Optionally play dialtone to the SIP participant as an audible indicator of being transferred
	PlayDialtone bool `protobuf:"varint,3,opt,name=play_dialtone,json=playDialtone,proto3" json:"play_dialtone,omitempty"`
	// Add the following headers to the REFER SIP request.
	Headers map[string]string `` /* 141-byte string literal not displayed */
	// Max time for the transfer destination to answer the call.
	RingingTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=ringing_timeout,json=ringingTimeout,proto3" json:"ringing_timeout,omitempty"`
	// contains filtered or unexported fields
}

func NewTransferSIPParticipantRequest added in v1.30.0

func NewTransferSIPParticipantRequest(
	callID string,
	req *livekit.TransferSIPParticipantRequest,
) (*InternalTransferSIPParticipantRequest, error)

NewTransferSIPParticipantRequest fills InternalTransferSIPParticipantRequest from livekit.TransferSIPParticipantRequest.

func (*InternalTransferSIPParticipantRequest) Descriptor deprecated added in v1.23.0

func (*InternalTransferSIPParticipantRequest) Descriptor() ([]byte, []int)

Deprecated: Use InternalTransferSIPParticipantRequest.ProtoReflect.Descriptor instead.

func (*InternalTransferSIPParticipantRequest) GetHeaders added in v1.30.0

func (*InternalTransferSIPParticipantRequest) GetPlayDialtone added in v1.27.0

func (x *InternalTransferSIPParticipantRequest) GetPlayDialtone() bool

func (*InternalTransferSIPParticipantRequest) GetRingingTimeout added in v1.37.0

func (*InternalTransferSIPParticipantRequest) GetSipCallId added in v1.23.0

func (*InternalTransferSIPParticipantRequest) GetTransferTo added in v1.23.0

func (x *InternalTransferSIPParticipantRequest) GetTransferTo() string

func (*InternalTransferSIPParticipantRequest) ProtoMessage added in v1.23.0

func (*InternalTransferSIPParticipantRequest) ProtoMessage()

func (*InternalTransferSIPParticipantRequest) ProtoReflect added in v1.23.0

func (*InternalTransferSIPParticipantRequest) Reset added in v1.23.0

func (*InternalTransferSIPParticipantRequest) String added in v1.23.0

type JobRequestResponse added in v1.19.2

type JobRequestResponse struct {
	State *livekit.JobState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*JobRequestResponse) Descriptor deprecated added in v1.19.2

func (*JobRequestResponse) Descriptor() ([]byte, []int)

Deprecated: Use JobRequestResponse.ProtoReflect.Descriptor instead.

func (*JobRequestResponse) GetState added in v1.19.2

func (x *JobRequestResponse) GetState() *livekit.JobState

func (*JobRequestResponse) ProtoMessage added in v1.19.2

func (*JobRequestResponse) ProtoMessage()

func (*JobRequestResponse) ProtoReflect added in v1.19.2

func (x *JobRequestResponse) ProtoReflect() protoreflect.Message

func (*JobRequestResponse) Reset added in v1.19.2

func (x *JobRequestResponse) Reset()

func (*JobRequestResponse) String added in v1.19.2

func (x *JobRequestResponse) String() string

type JobTerminateReason added in v1.20.0

type JobTerminateReason int32
const (
	JobTerminateReason_TERMINATION_REQUESTED JobTerminateReason = 0
	JobTerminateReason_AGENT_LEFT_ROOM       JobTerminateReason = 1
)

func (JobTerminateReason) Descriptor added in v1.20.0

func (JobTerminateReason) Enum added in v1.20.0

func (JobTerminateReason) EnumDescriptor deprecated added in v1.20.0

func (JobTerminateReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use JobTerminateReason.Descriptor instead.

func (JobTerminateReason) Number added in v1.20.0

func (JobTerminateReason) String added in v1.20.0

func (x JobTerminateReason) String() string

func (JobTerminateReason) Type added in v1.20.0

type JobTerminateRequest added in v1.20.0

type JobTerminateRequest struct {
	JobId  string             `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	Reason JobTerminateReason `protobuf:"varint,2,opt,name=reason,proto3,enum=rpc.JobTerminateReason" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*JobTerminateRequest) Descriptor deprecated added in v1.20.0

func (*JobTerminateRequest) Descriptor() ([]byte, []int)

Deprecated: Use JobTerminateRequest.ProtoReflect.Descriptor instead.

func (*JobTerminateRequest) GetJobId added in v1.20.0

func (x *JobTerminateRequest) GetJobId() string

func (*JobTerminateRequest) GetReason added in v1.20.0

func (x *JobTerminateRequest) GetReason() JobTerminateReason

func (*JobTerminateRequest) ProtoMessage added in v1.20.0

func (*JobTerminateRequest) ProtoMessage()

func (*JobTerminateRequest) ProtoReflect added in v1.20.0

func (x *JobTerminateRequest) ProtoReflect() protoreflect.Message

func (*JobTerminateRequest) Reset added in v1.20.0

func (x *JobTerminateRequest) Reset()

func (*JobTerminateRequest) String added in v1.20.0

func (x *JobTerminateRequest) String() string

type JobTerminateResponse added in v1.20.0

type JobTerminateResponse struct {
	State *livekit.JobState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*JobTerminateResponse) Descriptor deprecated added in v1.20.0

func (*JobTerminateResponse) Descriptor() ([]byte, []int)

Deprecated: Use JobTerminateResponse.ProtoReflect.Descriptor instead.

func (*JobTerminateResponse) GetState added in v1.20.0

func (x *JobTerminateResponse) GetState() *livekit.JobState

func (*JobTerminateResponse) ProtoMessage added in v1.20.0

func (*JobTerminateResponse) ProtoMessage()

func (*JobTerminateResponse) ProtoReflect added in v1.20.0

func (x *JobTerminateResponse) ProtoReflect() protoreflect.Message

func (*JobTerminateResponse) Reset added in v1.20.0

func (x *JobTerminateResponse) Reset()

func (*JobTerminateResponse) String added in v1.20.0

func (x *JobTerminateResponse) String() string

type KeepaliveClient added in v1.9.5

type KeepaliveClient[NodeIDTopicType ~string] interface {
	SubscribePing(ctx context.Context, nodeID NodeIDTopicType) (psrpc.Subscription[*KeepalivePing], error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewKeepaliveClient added in v1.9.5

func NewKeepaliveClient[NodeIDTopicType ~string](bus psrpc.MessageBus, opts ...psrpc.ClientOption) (KeepaliveClient[NodeIDTopicType], error)

NewKeepaliveClient creates a psrpc client that implements the KeepaliveClient interface.

type KeepalivePing added in v1.9.5

type KeepalivePing struct {
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*KeepalivePing) Descriptor deprecated added in v1.9.5

func (*KeepalivePing) Descriptor() ([]byte, []int)

Deprecated: Use KeepalivePing.ProtoReflect.Descriptor instead.

func (*KeepalivePing) GetTimestamp added in v1.9.5

func (x *KeepalivePing) GetTimestamp() int64

func (*KeepalivePing) ProtoMessage added in v1.9.5

func (*KeepalivePing) ProtoMessage()

func (*KeepalivePing) ProtoReflect added in v1.9.5

func (x *KeepalivePing) ProtoReflect() protoreflect.Message

func (*KeepalivePing) Reset added in v1.9.5

func (x *KeepalivePing) Reset()

func (*KeepalivePing) String added in v1.9.5

func (x *KeepalivePing) String() string

type KeepalivePubSub added in v1.9.5

type KeepalivePubSub interface {
	KeepaliveClient[livekit.NodeID]
	KeepaliveServer[livekit.NodeID]
}

func NewKeepalivePubSub added in v1.9.5

func NewKeepalivePubSub(params ClientParams) (KeepalivePubSub, error)

type KeepaliveServer added in v1.9.5

type KeepaliveServer[NodeIDTopicType ~string] interface {
	PublishPing(ctx context.Context, nodeID NodeIDTopicType, msg *KeepalivePing) error

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewKeepaliveServer added in v1.9.5

func NewKeepaliveServer[NodeIDTopicType ~string](svc KeepaliveServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (KeepaliveServer[NodeIDTopicType], error)

NewKeepaliveServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type KeepaliveServerImpl added in v1.9.5

type KeepaliveServerImpl interface {
}

type KillIngressSessionRequest added in v1.18.0

type KillIngressSessionRequest struct {
	Session *IngressSession `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*KillIngressSessionRequest) Descriptor deprecated added in v1.18.0

func (*KillIngressSessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use KillIngressSessionRequest.ProtoReflect.Descriptor instead.

func (*KillIngressSessionRequest) GetSession added in v1.18.0

func (x *KillIngressSessionRequest) GetSession() *IngressSession

func (*KillIngressSessionRequest) ProtoMessage added in v1.18.0

func (*KillIngressSessionRequest) ProtoMessage()

func (*KillIngressSessionRequest) ProtoReflect added in v1.18.0

func (*KillIngressSessionRequest) Reset added in v1.18.0

func (x *KillIngressSessionRequest) Reset()

func (*KillIngressSessionRequest) String added in v1.18.0

func (x *KillIngressSessionRequest) String() string

type ListActiveEgressRequest

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

func (*ListActiveEgressRequest) Descriptor deprecated

func (*ListActiveEgressRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListActiveEgressRequest.ProtoReflect.Descriptor instead.

func (*ListActiveEgressRequest) ProtoMessage

func (*ListActiveEgressRequest) ProtoMessage()

func (*ListActiveEgressRequest) ProtoReflect

func (x *ListActiveEgressRequest) ProtoReflect() protoreflect.Message

func (*ListActiveEgressRequest) Reset

func (x *ListActiveEgressRequest) Reset()

func (*ListActiveEgressRequest) String

func (x *ListActiveEgressRequest) String() string

type ListActiveEgressResponse

type ListActiveEgressResponse struct {
	EgressIds []string `protobuf:"bytes,1,rep,name=egress_ids,json=egressIds,proto3" json:"egress_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActiveEgressResponse) Descriptor deprecated

func (*ListActiveEgressResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListActiveEgressResponse.ProtoReflect.Descriptor instead.

func (*ListActiveEgressResponse) GetEgressIds

func (x *ListActiveEgressResponse) GetEgressIds() []string

func (*ListActiveEgressResponse) ProtoMessage

func (*ListActiveEgressResponse) ProtoMessage()

func (*ListActiveEgressResponse) ProtoReflect

func (x *ListActiveEgressResponse) ProtoReflect() protoreflect.Message

func (*ListActiveEgressResponse) Reset

func (x *ListActiveEgressResponse) Reset()

func (*ListActiveEgressResponse) String

func (x *ListActiveEgressResponse) String() string

type ListActiveIngressRequest

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

func (*ListActiveIngressRequest) Descriptor deprecated

func (*ListActiveIngressRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListActiveIngressRequest.ProtoReflect.Descriptor instead.

func (*ListActiveIngressRequest) ProtoMessage

func (*ListActiveIngressRequest) ProtoMessage()

func (*ListActiveIngressRequest) ProtoReflect

func (x *ListActiveIngressRequest) ProtoReflect() protoreflect.Message

func (*ListActiveIngressRequest) Reset

func (x *ListActiveIngressRequest) Reset()

func (*ListActiveIngressRequest) String

func (x *ListActiveIngressRequest) String() string

type ListActiveIngressResponse

type ListActiveIngressResponse struct {

	// Deprecated: Marked as deprecated in rpc/ingress.proto.
	IngressIds      []string          `protobuf:"bytes,1,rep,name=ingress_ids,json=ingressIds,proto3" json:"ingress_ids,omitempty"`
	IngressSessions []*IngressSession `protobuf:"bytes,2,rep,name=ingress_sessions,json=ingressSessions,proto3" json:"ingress_sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActiveIngressResponse) Descriptor deprecated

func (*ListActiveIngressResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListActiveIngressResponse.ProtoReflect.Descriptor instead.

func (*ListActiveIngressResponse) GetIngressIds deprecated

func (x *ListActiveIngressResponse) GetIngressIds() []string

Deprecated: Marked as deprecated in rpc/ingress.proto.

func (*ListActiveIngressResponse) GetIngressSessions added in v1.18.0

func (x *ListActiveIngressResponse) GetIngressSessions() []*IngressSession

func (*ListActiveIngressResponse) ProtoMessage

func (*ListActiveIngressResponse) ProtoMessage()

func (*ListActiveIngressResponse) ProtoReflect

func (*ListActiveIngressResponse) Reset

func (x *ListActiveIngressResponse) Reset()

func (*ListActiveIngressResponse) String

func (x *ListActiveIngressResponse) String() string

type PSRPCConfig added in v1.9.0

type PSRPCConfig struct {
	MaxAttempts int           `yaml:"max_attempts,omitempty"`
	Timeout     time.Duration `yaml:"timeout,omitempty"`
	Backoff     time.Duration `yaml:"backoff,omitempty"`
	BufferSize  int           `yaml:"buffer_size,omitempty"`
}

type PSRPCMetricsObserver added in v1.10.0

type PSRPCMetricsObserver struct{}

func (PSRPCMetricsObserver) OnMultiRequest added in v1.10.0

func (o PSRPCMetricsObserver) OnMultiRequest(role middleware.MetricRole, info psrpc.RPCInfo, duration time.Duration, responseCount, errorCount, rxBytes, txBytes int)

func (PSRPCMetricsObserver) OnStreamClose added in v1.10.0

func (o PSRPCMetricsObserver) OnStreamClose(role middleware.MetricRole, info psrpc.RPCInfo)

func (PSRPCMetricsObserver) OnStreamOpen added in v1.10.0

func (o PSRPCMetricsObserver) OnStreamOpen(role middleware.MetricRole, info psrpc.RPCInfo)

func (PSRPCMetricsObserver) OnStreamRecv added in v1.10.0

func (o PSRPCMetricsObserver) OnStreamRecv(role middleware.MetricRole, info psrpc.RPCInfo, err error, bytes int)

func (PSRPCMetricsObserver) OnStreamSend added in v1.10.0

func (o PSRPCMetricsObserver) OnStreamSend(role middleware.MetricRole, info psrpc.RPCInfo, duration time.Duration, err error, bytes int)

func (PSRPCMetricsObserver) OnUnaryRequest added in v1.10.0

func (o PSRPCMetricsObserver) OnUnaryRequest(role middleware.MetricRole, info psrpc.RPCInfo, duration time.Duration, err error, rxBytes, txBytes int)

type PSRPCMetricsOption added in v1.14.0

type PSRPCMetricsOption func(*psrpcMetricsOptions)

func WithCurryLabels added in v1.14.0

func WithCurryLabels(labels prometheus.Labels) PSRPCMetricsOption

type ParticipantClient added in v1.9.0

type ParticipantClient[ParticipantTopicType ~string] interface {
	RemoveParticipant(ctx context.Context, participant ParticipantTopicType, req *livekit6.RoomParticipantIdentity, opts ...psrpc.RequestOption) (*livekit6.RemoveParticipantResponse, error)

	MutePublishedTrack(ctx context.Context, participant ParticipantTopicType, req *livekit6.MuteRoomTrackRequest, opts ...psrpc.RequestOption) (*livekit6.MuteRoomTrackResponse, error)

	UpdateParticipant(ctx context.Context, participant ParticipantTopicType, req *livekit6.UpdateParticipantRequest, opts ...psrpc.RequestOption) (*livekit1.ParticipantInfo, error)

	UpdateSubscriptions(ctx context.Context, participant ParticipantTopicType, req *livekit6.UpdateSubscriptionsRequest, opts ...psrpc.RequestOption) (*livekit6.UpdateSubscriptionsResponse, error)

	ForwardParticipant(ctx context.Context, participant ParticipantTopicType, req *livekit6.ForwardParticipantRequest, opts ...psrpc.RequestOption) (*livekit6.ForwardParticipantResponse, error)

	MoveParticipant(ctx context.Context, participant ParticipantTopicType, req *livekit6.MoveParticipantRequest, opts ...psrpc.RequestOption) (*livekit6.MoveParticipantResponse, error)

	PerformRpc(ctx context.Context, participant ParticipantTopicType, req *livekit6.PerformRpcRequest, opts ...psrpc.RequestOption) (*livekit6.PerformRpcResponse, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewParticipantClient added in v1.9.0

func NewParticipantClient[ParticipantTopicType ~string](bus psrpc.MessageBus, opts ...psrpc.ClientOption) (ParticipantClient[ParticipantTopicType], error)

NewParticipantClient creates a psrpc client that implements the ParticipantClient interface.

type ParticipantServer added in v1.9.0

type ParticipantServer[ParticipantTopicType ~string] interface {
	RegisterRemoveParticipantTopic(participant ParticipantTopicType) error
	DeregisterRemoveParticipantTopic(participant ParticipantTopicType)
	RegisterMutePublishedTrackTopic(participant ParticipantTopicType) error
	DeregisterMutePublishedTrackTopic(participant ParticipantTopicType)
	RegisterUpdateParticipantTopic(participant ParticipantTopicType) error
	DeregisterUpdateParticipantTopic(participant ParticipantTopicType)
	RegisterUpdateSubscriptionsTopic(participant ParticipantTopicType) error
	DeregisterUpdateSubscriptionsTopic(participant ParticipantTopicType)
	RegisterForwardParticipantTopic(participant ParticipantTopicType) error
	DeregisterForwardParticipantTopic(participant ParticipantTopicType)
	RegisterMoveParticipantTopic(participant ParticipantTopicType) error
	DeregisterMoveParticipantTopic(participant ParticipantTopicType)
	RegisterPerformRpcTopic(participant ParticipantTopicType) error
	DeregisterPerformRpcTopic(participant ParticipantTopicType)
	RegisterAllParticipantTopics(participant ParticipantTopicType) error
	DeregisterAllParticipantTopics(participant ParticipantTopicType)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewParticipantServer added in v1.9.0

func NewParticipantServer[ParticipantTopicType ~string](svc ParticipantServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (ParticipantServer[ParticipantTopicType], error)

NewParticipantServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type ParticipantTopic added in v1.8.1

type ParticipantTopic string

func FormatParticipantTopic added in v1.8.1

func FormatParticipantTopic(roomName livekit.RoomName, identity livekit.ParticipantIdentity) ParticipantTopic

type Race

type Race[T any] struct {
	// contains filtered or unexported fields
}

func NewRace

func NewRace[T any](ctx context.Context) *Race[T]

NewRace creates a race to yield the result from one or more candidate functions

func (*Race[T]) Go

func (r *Race[T]) Go(fn func(ctx context.Context) (*T, error))

Go adds a candidate function to the race by running it in a new goroutine

func (*Race[T]) Wait

func (r *Race[T]) Wait() (int, *T, error)

Wait awaits the first complete function and returns the index and results or -1 if the context is cancelled before any candidate finishes.

type RecordCallContextRequest added in v1.42.0

type RecordCallContextRequest struct {
	CallInfo *livekit.SIPCallInfo `protobuf:"bytes,1,opt,name=call_info,json=callInfo,proto3" json:"call_info,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordCallContextRequest) Descriptor deprecated added in v1.42.0

func (*RecordCallContextRequest) Descriptor() ([]byte, []int)

Deprecated: Use RecordCallContextRequest.ProtoReflect.Descriptor instead.

func (*RecordCallContextRequest) GetCallInfo added in v1.42.0

func (x *RecordCallContextRequest) GetCallInfo() *livekit.SIPCallInfo

func (*RecordCallContextRequest) ProtoMessage added in v1.42.0

func (*RecordCallContextRequest) ProtoMessage()

func (*RecordCallContextRequest) ProtoReflect added in v1.42.0

func (x *RecordCallContextRequest) ProtoReflect() protoreflect.Message

func (*RecordCallContextRequest) Reset added in v1.42.0

func (x *RecordCallContextRequest) Reset()

func (*RecordCallContextRequest) String added in v1.42.0

func (x *RecordCallContextRequest) String() string

type RelaySignalRequest added in v1.4.3

type RelaySignalRequest struct {
	StartSession *livekit.StartSession    `protobuf:"bytes,1,opt,name=start_session,json=startSession,proto3" json:"start_session,omitempty"`
	Requests     []*livekit.SignalRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"`
	Seq          uint64                   `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"`
	Close        bool                     `protobuf:"varint,5,opt,name=close,proto3" json:"close,omitempty"`
	// contains filtered or unexported fields
}

func (*RelaySignalRequest) Descriptor deprecated added in v1.4.3

func (*RelaySignalRequest) Descriptor() ([]byte, []int)

Deprecated: Use RelaySignalRequest.ProtoReflect.Descriptor instead.

func (*RelaySignalRequest) GetClose added in v1.5.6

func (x *RelaySignalRequest) GetClose() bool

func (*RelaySignalRequest) GetRequests added in v1.5.3

func (x *RelaySignalRequest) GetRequests() []*livekit.SignalRequest

func (*RelaySignalRequest) GetSeq added in v1.5.3

func (x *RelaySignalRequest) GetSeq() uint64

func (*RelaySignalRequest) GetStartSession added in v1.4.3

func (x *RelaySignalRequest) GetStartSession() *livekit.StartSession

func (*RelaySignalRequest) ProtoMessage added in v1.4.3

func (*RelaySignalRequest) ProtoMessage()

func (*RelaySignalRequest) ProtoReflect added in v1.4.3

func (x *RelaySignalRequest) ProtoReflect() protoreflect.Message

func (*RelaySignalRequest) Reset added in v1.4.3

func (x *RelaySignalRequest) Reset()

func (*RelaySignalRequest) String added in v1.4.3

func (x *RelaySignalRequest) String() string

type RelaySignalResponse added in v1.4.3

type RelaySignalResponse struct {
	Responses []*livekit.SignalResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"`
	Seq       uint64                    `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
	Close     bool                      `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"`
	// contains filtered or unexported fields
}

func (*RelaySignalResponse) Descriptor deprecated added in v1.4.3

func (*RelaySignalResponse) Descriptor() ([]byte, []int)

Deprecated: Use RelaySignalResponse.ProtoReflect.Descriptor instead.

func (*RelaySignalResponse) GetClose added in v1.5.6

func (x *RelaySignalResponse) GetClose() bool

func (*RelaySignalResponse) GetResponses added in v1.5.2

func (x *RelaySignalResponse) GetResponses() []*livekit.SignalResponse

func (*RelaySignalResponse) GetSeq added in v1.5.3

func (x *RelaySignalResponse) GetSeq() uint64

func (*RelaySignalResponse) ProtoMessage added in v1.4.3

func (*RelaySignalResponse) ProtoMessage()

func (*RelaySignalResponse) ProtoReflect added in v1.4.3

func (x *RelaySignalResponse) ProtoReflect() protoreflect.Message

func (*RelaySignalResponse) Reset added in v1.4.3

func (x *RelaySignalResponse) Reset()

func (*RelaySignalResponse) String added in v1.4.3

func (x *RelaySignalResponse) String() string

type RoomClient added in v1.8.1

type RoomClient[RoomTopicType ~string] interface {
	DeleteRoom(ctx context.Context, room RoomTopicType, req *livekit6.DeleteRoomRequest, opts ...psrpc.RequestOption) (*livekit6.DeleteRoomResponse, error)

	SendData(ctx context.Context, room RoomTopicType, req *livekit6.SendDataRequest, opts ...psrpc.RequestOption) (*livekit6.SendDataResponse, error)

	UpdateRoomMetadata(ctx context.Context, room RoomTopicType, req *livekit6.UpdateRoomMetadataRequest, opts ...psrpc.RequestOption) (*livekit1.Room, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewRoomClient added in v1.8.1

func NewRoomClient[RoomTopicType ~string](bus psrpc.MessageBus, opts ...psrpc.ClientOption) (RoomClient[RoomTopicType], error)

NewRoomClient creates a psrpc client that implements the RoomClient interface.

type RoomManagerClient added in v1.20.1

type RoomManagerClient[NodeIdTopicType ~string] interface {
	CreateRoom(ctx context.Context, nodeId NodeIdTopicType, req *livekit6.CreateRoomRequest, opts ...psrpc.RequestOption) (*livekit1.Room, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewRoomManagerClient added in v1.20.1

func NewRoomManagerClient[NodeIdTopicType ~string](bus psrpc.MessageBus, opts ...psrpc.ClientOption) (RoomManagerClient[NodeIdTopicType], error)

NewRoomManagerClient creates a psrpc client that implements the RoomManagerClient interface.

type RoomManagerServer added in v1.20.1

type RoomManagerServer[NodeIdTopicType ~string] interface {
	RegisterCreateRoomTopic(nodeId NodeIdTopicType) error
	DeregisterCreateRoomTopic(nodeId NodeIdTopicType)
	RegisterAllNodeTopics(nodeId NodeIdTopicType) error
	DeregisterAllNodeTopics(nodeId NodeIdTopicType)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewRoomManagerServer added in v1.20.1

func NewRoomManagerServer[NodeIdTopicType ~string](svc RoomManagerServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (RoomManagerServer[NodeIdTopicType], error)

NewRoomManagerServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type RoomManagerServerImpl added in v1.20.1

type RoomManagerServerImpl interface {
	CreateRoom(context.Context, *livekit6.CreateRoomRequest) (*livekit1.Room, error)
}

type RoomServer added in v1.8.1

type RoomServer[RoomTopicType ~string] interface {
	RegisterDeleteRoomTopic(room RoomTopicType) error
	DeregisterDeleteRoomTopic(room RoomTopicType)
	RegisterSendDataTopic(room RoomTopicType) error
	DeregisterSendDataTopic(room RoomTopicType)
	RegisterUpdateRoomMetadataTopic(room RoomTopicType) error
	DeregisterUpdateRoomMetadataTopic(room RoomTopicType)
	RegisterAllRoomTopics(room RoomTopicType) error
	DeregisterAllRoomTopics(room RoomTopicType)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewRoomServer added in v1.8.1

func NewRoomServer[RoomTopicType ~string](svc RoomServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (RoomServer[RoomTopicType], error)

NewRoomServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type RoomTopic added in v1.8.1

type RoomTopic string

func FormatRoomTopic added in v1.8.1

func FormatRoomTopic(roomName livekit.RoomName) RoomTopic

type SIPCall added in v1.35.0

type SIPCall struct {
	LkCallId  string            `protobuf:"bytes,1,opt,name=lk_call_id,json=lkCallId,proto3" json:"lk_call_id,omitempty"`
	SourceIp  string            `protobuf:"bytes,2,opt,name=source_ip,json=sourceIp,proto3" json:"source_ip,omitempty"`      // source ip (without port)
	Address   *livekit.SIPUri   `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`                        // address in the request line (INVITE)
	From      *livekit.SIPUri   `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`                              // From header
	To        *livekit.SIPUri   `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`                                  // To header
	Via       []*livekit.SIPUri `protobuf:"bytes,6,rep,name=via,proto3" json:"via,omitempty"`                                // Via headers
	SipCallId string            `protobuf:"bytes,7,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` // SIP protocol generated call ID
	// contains filtered or unexported fields
}

func (*SIPCall) Descriptor deprecated added in v1.35.0

func (*SIPCall) Descriptor() ([]byte, []int)

Deprecated: Use SIPCall.ProtoReflect.Descriptor instead.

func (*SIPCall) GetAddress added in v1.35.0

func (x *SIPCall) GetAddress() *livekit.SIPUri

func (*SIPCall) GetFrom added in v1.35.0

func (x *SIPCall) GetFrom() *livekit.SIPUri

func (*SIPCall) GetLkCallId added in v1.35.0

func (x *SIPCall) GetLkCallId() string

func (*SIPCall) GetSipCallId added in v1.40.0

func (x *SIPCall) GetSipCallId() string

func (*SIPCall) GetSourceIp added in v1.35.0

func (x *SIPCall) GetSourceIp() string

func (*SIPCall) GetTo added in v1.35.0

func (x *SIPCall) GetTo() *livekit.SIPUri

func (*SIPCall) GetVia added in v1.35.0

func (x *SIPCall) GetVia() []*livekit.SIPUri

func (*SIPCall) ProtoMessage added in v1.35.0

func (*SIPCall) ProtoMessage()

func (*SIPCall) ProtoReflect added in v1.35.0

func (x *SIPCall) ProtoReflect() protoreflect.Message

func (*SIPCall) Reset added in v1.35.0

func (x *SIPCall) Reset()

func (*SIPCall) String added in v1.35.0

func (x *SIPCall) String() string

type SIPClient added in v1.9.1

type SIPClient interface {
	SIPInternalClient
}

func NewSIPClient added in v1.9.1

func NewSIPClient(bus psrpc.MessageBus) (SIPClient, error)

type SIPDispatchResult added in v1.9.9

type SIPDispatchResult int32
const (
	SIPDispatchResult_LEGACY_ACCEPT_OR_PIN SIPDispatchResult = 0 // check request_pin field
	SIPDispatchResult_ACCEPT               SIPDispatchResult = 1
	SIPDispatchResult_REQUEST_PIN          SIPDispatchResult = 2
	SIPDispatchResult_REJECT               SIPDispatchResult = 3
	SIPDispatchResult_DROP                 SIPDispatchResult = 4
)

func (SIPDispatchResult) Descriptor added in v1.9.9

func (SIPDispatchResult) Enum added in v1.9.9

func (SIPDispatchResult) EnumDescriptor deprecated added in v1.9.9

func (SIPDispatchResult) EnumDescriptor() ([]byte, []int)

Deprecated: Use SIPDispatchResult.Descriptor instead.

func (SIPDispatchResult) Number added in v1.9.9

func (SIPDispatchResult) String added in v1.9.9

func (x SIPDispatchResult) String() string

func (SIPDispatchResult) Type added in v1.9.9

type SIPInternalClient added in v1.9.1

type SIPInternalClient interface {
	CreateSIPParticipant(ctx context.Context, topic string, req *InternalCreateSIPParticipantRequest, opts ...psrpc.RequestOption) (*InternalCreateSIPParticipantResponse, error)

	TransferSIPParticipant(ctx context.Context, sipCallId string, req *InternalTransferSIPParticipantRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewSIPInternalClient added in v1.9.1

func NewSIPInternalClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (SIPInternalClient, error)

NewSIPInternalClient creates a psrpc client that implements the SIPInternalClient interface.

type SIPInternalServer added in v1.9.1

type SIPInternalServer interface {
	RegisterCreateSIPParticipantTopic(topic string) error
	DeregisterCreateSIPParticipantTopic(topic string)
	RegisterTransferSIPParticipantTopic(sipCallId string) error
	DeregisterTransferSIPParticipantTopic(sipCallId string)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewSIPInternalServer added in v1.9.1

func NewSIPInternalServer(svc SIPInternalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (SIPInternalServer, error)

NewSIPInternalServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type SIPInternalServerImpl added in v1.9.1

type SignalClient added in v1.4.3

type SignalClient[NodeIdTopicType ~string] interface {
	RelaySignal(ctx context.Context, nodeId NodeIdTopicType, opts ...psrpc.RequestOption) (psrpc.ClientStream[*RelaySignalRequest, *RelaySignalResponse], error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewSignalClient added in v1.4.3

func NewSignalClient[NodeIdTopicType ~string](bus psrpc.MessageBus, opts ...psrpc.ClientOption) (SignalClient[NodeIdTopicType], error)

NewSignalClient creates a psrpc client that implements the SignalClient interface.

type SignalServer added in v1.4.3

type SignalServer[NodeIdTopicType ~string] interface {
	RegisterRelaySignalTopic(nodeId NodeIdTopicType) error
	DeregisterRelaySignalTopic(nodeId NodeIdTopicType)
	RegisterAllNodeTopics(nodeId NodeIdTopicType) error
	DeregisterAllNodeTopics(nodeId NodeIdTopicType)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewSignalServer added in v1.4.3

func NewSignalServer[NodeIdTopicType ~string](svc SignalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (SignalServer[NodeIdTopicType], error)

NewSignalServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type SignalServerImpl added in v1.4.3

type SignalServerImpl interface {
	RelaySignal(psrpc.ServerStream[*RelaySignalResponse, *RelaySignalRequest]) error
}

type StartEgressRequest

type StartEgressRequest struct {

	// request metadata
	EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"`
	// request
	//
	// Types that are valid to be assigned to Request:
	//
	//	*StartEgressRequest_RoomComposite
	//	*StartEgressRequest_Web
	//	*StartEgressRequest_Participant
	//	*StartEgressRequest_TrackComposite
	//	*StartEgressRequest_Track
	Request isStartEgressRequest_Request `protobuf_oneof:"request"`
	// connection info
	RoomId string `protobuf:"bytes,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	Token  string `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"`
	WsUrl  string `protobuf:"bytes,9,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"`
	// cloud only
	CloudBackupEnabled bool    `protobuf:"varint,10,opt,name=cloud_backup_enabled,json=cloudBackupEnabled,proto3" json:"cloud_backup_enabled,omitempty"`
	EstimatedCpu       float64 `protobuf:"fixed64,14,opt,name=estimated_cpu,json=estimatedCpu,proto3" json:"estimated_cpu,omitempty"`
	// contains filtered or unexported fields
}

func (*StartEgressRequest) Descriptor deprecated

func (*StartEgressRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartEgressRequest.ProtoReflect.Descriptor instead.

func (*StartEgressRequest) GetCloudBackupEnabled added in v1.27.0

func (x *StartEgressRequest) GetCloudBackupEnabled() bool

func (*StartEgressRequest) GetEgressId

func (x *StartEgressRequest) GetEgressId() string

func (*StartEgressRequest) GetEstimatedCpu added in v1.27.0

func (x *StartEgressRequest) GetEstimatedCpu() float64

func (*StartEgressRequest) GetParticipant added in v1.7.0

func (*StartEgressRequest) GetRequest

func (x *StartEgressRequest) GetRequest() isStartEgressRequest_Request

func (*StartEgressRequest) GetRoomComposite

func (x *StartEgressRequest) GetRoomComposite() *livekit.RoomCompositeEgressRequest

func (*StartEgressRequest) GetRoomId

func (x *StartEgressRequest) GetRoomId() string

func (*StartEgressRequest) GetToken

func (x *StartEgressRequest) GetToken() string

func (*StartEgressRequest) GetTrack

func (*StartEgressRequest) GetTrackComposite

func (x *StartEgressRequest) GetTrackComposite() *livekit.TrackCompositeEgressRequest

func (*StartEgressRequest) GetWeb

func (*StartEgressRequest) GetWsUrl

func (x *StartEgressRequest) GetWsUrl() string

func (*StartEgressRequest) ProtoMessage

func (*StartEgressRequest) ProtoMessage()

func (*StartEgressRequest) ProtoReflect

func (x *StartEgressRequest) ProtoReflect() protoreflect.Message

func (*StartEgressRequest) Reset

func (x *StartEgressRequest) Reset()

func (*StartEgressRequest) String

func (x *StartEgressRequest) String() string

type StartEgressRequest_Participant added in v1.7.0

type StartEgressRequest_Participant struct {
	Participant *livekit.ParticipantEgressRequest `protobuf:"bytes,13,opt,name=participant,proto3,oneof"`
}

type StartEgressRequest_RoomComposite

type StartEgressRequest_RoomComposite struct {
	RoomComposite *livekit.RoomCompositeEgressRequest `protobuf:"bytes,5,opt,name=room_composite,json=roomComposite,proto3,oneof"`
}

type StartEgressRequest_Track

type StartEgressRequest_Track struct {
	Track *livekit.TrackEgressRequest `protobuf:"bytes,7,opt,name=track,proto3,oneof"`
}

type StartEgressRequest_TrackComposite

type StartEgressRequest_TrackComposite struct {
	TrackComposite *livekit.TrackCompositeEgressRequest `protobuf:"bytes,6,opt,name=track_composite,json=trackComposite,proto3,oneof"`
}

type StartEgressRequest_Web

type StartEgressRequest_Web struct {
	Web *livekit.WebEgressRequest `protobuf:"bytes,11,opt,name=web,proto3,oneof"`
}

type StartIngressRequest added in v1.6.0

type StartIngressRequest struct {
	Info          *livekit.IngressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	Token         string               `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	WsUrl         string               `protobuf:"bytes,3,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"`
	LoggingFields map[string]string    `` /* 174-byte string literal not displayed */
	FeatureFlags  map[string]string    `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StartIngressRequest) Descriptor deprecated added in v1.6.0

func (*StartIngressRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartIngressRequest.ProtoReflect.Descriptor instead.

func (*StartIngressRequest) GetFeatureFlags added in v1.42.0

func (x *StartIngressRequest) GetFeatureFlags() map[string]string

func (*StartIngressRequest) GetInfo added in v1.6.0

func (x *StartIngressRequest) GetInfo() *livekit.IngressInfo

func (*StartIngressRequest) GetLoggingFields added in v1.9.8

func (x *StartIngressRequest) GetLoggingFields() map[string]string

func (*StartIngressRequest) GetToken added in v1.6.0

func (x *StartIngressRequest) GetToken() string

func (*StartIngressRequest) GetWsUrl added in v1.6.0

func (x *StartIngressRequest) GetWsUrl() string

func (*StartIngressRequest) ProtoMessage added in v1.6.0

func (*StartIngressRequest) ProtoMessage()

func (*StartIngressRequest) ProtoReflect added in v1.6.0

func (x *StartIngressRequest) ProtoReflect() protoreflect.Message

func (*StartIngressRequest) Reset added in v1.6.0

func (x *StartIngressRequest) Reset()

func (*StartIngressRequest) String added in v1.6.0

func (x *StartIngressRequest) String() string

type TopicFormatter added in v1.8.1

type TopicFormatter interface {
	ParticipantTopic(ctx context.Context, roomName livekit.RoomName, identity livekit.ParticipantIdentity) ParticipantTopic
	RoomTopic(ctx context.Context, roomName livekit.RoomName) RoomTopic
}

func NewTopicFormatter added in v1.9.0

func NewTopicFormatter() TopicFormatter

type TypedAgentDispatchInternalClient added in v1.20.0

type TypedAgentDispatchInternalClient = AgentDispatchInternalClient[RoomTopic]

func NewTypedAgentDispatchInternalClient added in v1.20.0

func NewTypedAgentDispatchInternalClient(params ClientParams) (TypedAgentDispatchInternalClient, error)

type TypedAgentDispatchInternalServer added in v1.20.0

type TypedAgentDispatchInternalServer = AgentDispatchInternalServer[RoomTopic]

func NewTypedAgentDispatchInternalServer added in v1.20.0

func NewTypedAgentDispatchInternalServer(svc AgentDispatchInternalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (TypedAgentDispatchInternalServer, error)

type TypedParticipantClient added in v1.9.0

type TypedParticipantClient = ParticipantClient[ParticipantTopic]

func NewTypedParticipantClient added in v1.9.0

func NewTypedParticipantClient(params ClientParams) (TypedParticipantClient, error)

type TypedParticipantServer added in v1.9.0

type TypedParticipantServer = ParticipantServer[ParticipantTopic]

func NewTypedParticipantServer added in v1.9.0

func NewTypedParticipantServer(svc ParticipantServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (TypedParticipantServer, error)

type TypedRoomClient added in v1.8.1

type TypedRoomClient = RoomClient[RoomTopic]

func NewTypedRoomClient added in v1.8.1

func NewTypedRoomClient(params ClientParams) (TypedRoomClient, error)

type TypedRoomManagerClient added in v1.20.1

type TypedRoomManagerClient = RoomManagerClient[livekit.NodeID]

func NewTypedRoomManagerClient added in v1.20.1

func NewTypedRoomManagerClient(bus psrpc.MessageBus, opts ...psrpc.ClientOption) (TypedRoomManagerClient, error)

type TypedRoomManagerServer added in v1.20.1

type TypedRoomManagerServer = RoomManagerServer[livekit.NodeID]

func NewTypedRoomManagerServer added in v1.20.1

func NewTypedRoomManagerServer(svc RoomManagerServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (TypedRoomManagerServer, error)

type TypedRoomServer added in v1.8.1

type TypedRoomServer = RoomServer[RoomTopic]

func NewTypedRoomServer added in v1.8.1

func NewTypedRoomServer(svc RoomServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (TypedRoomServer, error)

type TypedSignalClient added in v1.4.3

type TypedSignalClient = SignalClient[livekit.NodeID]

func NewTypedSignalClient added in v1.4.3

func NewTypedSignalClient(nodeID livekit.NodeID, bus psrpc.MessageBus, opts ...psrpc.ClientOption) (TypedSignalClient, error)

type TypedSignalServer added in v1.4.3

type TypedSignalServer = SignalServer[livekit.NodeID]

func NewTypedSignalServer added in v1.4.3

func NewTypedSignalServer(nodeID livekit.NodeID, svc SignalServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (TypedSignalServer, error)

type TypedWHIPParticipantClient added in v1.40.0

type TypedWHIPParticipantClient = WHIPParticipantClient[ParticipantTopic]

func NewTypedWHIPParticipantClient added in v1.40.0

func NewTypedWHIPParticipantClient(params ClientParams) (TypedWHIPParticipantClient, error)

type TypedWHIPParticipantServer added in v1.40.0

type TypedWHIPParticipantServer = WHIPParticipantServer[ParticipantTopic]

func NewTypedWHIPParticipantServer added in v1.40.0

func NewTypedWHIPParticipantServer(svc WHIPParticipantServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (TypedWHIPParticipantServer, error)

type UnimplementedAgentDispatchInternalServer added in v1.42.0

type UnimplementedAgentDispatchInternalServer struct{}

func (UnimplementedAgentDispatchInternalServer) CreateDispatch added in v1.42.0

func (UnimplementedAgentDispatchInternalServer) DeleteDispatch added in v1.42.0

func (UnimplementedAgentDispatchInternalServer) ListDispatch added in v1.42.0

type UnimplementedAgentInternalServer added in v1.42.0

type UnimplementedAgentInternalServer struct{}

func (UnimplementedAgentInternalServer) CheckEnabled added in v1.42.0

func (UnimplementedAgentInternalServer) JobRequest added in v1.42.0

func (UnimplementedAgentInternalServer) JobRequestAffinity added in v1.42.0

func (UnimplementedAgentInternalServer) JobTerminate added in v1.42.0

func (UnimplementedAgentInternalServer) WorkerRegistered added in v1.42.0

type UnimplementedAnalyticsRecorderServiceServer added in v1.18.0

type UnimplementedAnalyticsRecorderServiceServer struct{}

UnimplementedAnalyticsRecorderServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAnalyticsRecorderServiceServer) IngestEvents added in v1.18.0

func (UnimplementedAnalyticsRecorderServiceServer) IngestNodeRoomStates added in v1.18.0

func (UnimplementedAnalyticsRecorderServiceServer) IngestStats added in v1.18.0

type UnimplementedConnectorHandlerServer added in v1.42.1

type UnimplementedConnectorHandlerServer struct{}

func (UnimplementedConnectorHandlerServer) ConnectWhatsAppCall added in v1.42.1

func (UnimplementedConnectorHandlerServer) DisconnectWhatsAppCall added in v1.42.1

type UnimplementedConnectorInternalServer added in v1.42.1

type UnimplementedConnectorInternalServer struct{}

func (UnimplementedConnectorInternalServer) AcceptWhatsAppCall added in v1.42.1

func (UnimplementedConnectorInternalServer) ConnectTwilioCall added in v1.42.2

func (UnimplementedConnectorInternalServer) DialWhatsAppCall added in v1.42.1

type UnimplementedEgressHandlerServer added in v1.42.0

type UnimplementedEgressHandlerServer struct{}

func (UnimplementedEgressHandlerServer) StopEgress added in v1.42.0

func (UnimplementedEgressHandlerServer) UpdateStream added in v1.42.0

type UnimplementedEgressInternalServer added in v1.42.0

type UnimplementedEgressInternalServer struct{}

func (UnimplementedEgressInternalServer) ListActiveEgress added in v1.42.0

func (UnimplementedEgressInternalServer) StartEgress added in v1.42.0

func (UnimplementedEgressInternalServer) StartEgressAffinity added in v1.42.0

type UnimplementedIOInfoServer added in v1.42.0

type UnimplementedIOInfoServer struct{}

func (UnimplementedIOInfoServer) CreateEgress added in v1.42.0

func (UnimplementedIOInfoServer) CreateIngress added in v1.42.0

func (UnimplementedIOInfoServer) EvaluateSIPDispatchRules added in v1.42.0

func (UnimplementedIOInfoServer) GetEgress added in v1.42.0

func (UnimplementedIOInfoServer) GetIngressInfo added in v1.42.0

func (UnimplementedIOInfoServer) GetSIPTrunkAuthentication added in v1.42.0

func (UnimplementedIOInfoServer) ListEgress added in v1.42.0

func (UnimplementedIOInfoServer) RecordCallContext added in v1.42.0

func (UnimplementedIOInfoServer) UpdateEgress added in v1.42.0

func (UnimplementedIOInfoServer) UpdateIngressState added in v1.42.0

func (UnimplementedIOInfoServer) UpdateMetrics added in v1.42.0

func (UnimplementedIOInfoServer) UpdateSIPCallState added in v1.42.0

type UnimplementedIngressHandlerServer added in v1.42.0

type UnimplementedIngressHandlerServer struct{}

func (UnimplementedIngressHandlerServer) DeleteIngress added in v1.42.0

func (UnimplementedIngressHandlerServer) DeleteWHIPResource added in v1.42.0

func (UnimplementedIngressHandlerServer) ICERestartWHIPResource added in v1.42.0

func (UnimplementedIngressHandlerServer) UpdateIngress added in v1.42.0

func (UnimplementedIngressHandlerServer) WHIPRTCConnectionNotify added in v1.42.0

type UnimplementedIngressInternalServer added in v1.42.0

type UnimplementedIngressInternalServer struct{}

func (UnimplementedIngressInternalServer) KillIngressSession added in v1.42.0

func (UnimplementedIngressInternalServer) ListActiveIngress added in v1.42.0

func (UnimplementedIngressInternalServer) StartIngress added in v1.42.0

func (UnimplementedIngressInternalServer) StartIngressAffinity added in v1.42.0

type UnimplementedKeepaliveServer added in v1.42.0

type UnimplementedKeepaliveServer struct{}

func (UnimplementedKeepaliveServer) Ping added in v1.42.0

type UnimplementedMetricsObserver added in v1.10.0

type UnimplementedMetricsObserver struct{}

func (UnimplementedMetricsObserver) OnMultiRequest added in v1.10.0

func (o UnimplementedMetricsObserver) OnMultiRequest(role middleware.MetricRole, rpcInfo psrpc.RPCInfo, duration time.Duration, responseCount, errorCount, reqBytes, txBytes int)

func (UnimplementedMetricsObserver) OnStreamClose added in v1.10.0

func (o UnimplementedMetricsObserver) OnStreamClose(role middleware.MetricRole, rpcInfo psrpc.RPCInfo)

func (UnimplementedMetricsObserver) OnStreamOpen added in v1.10.0

func (o UnimplementedMetricsObserver) OnStreamOpen(role middleware.MetricRole, rpcInfo psrpc.RPCInfo)

func (UnimplementedMetricsObserver) OnStreamRecv added in v1.10.0

func (o UnimplementedMetricsObserver) OnStreamRecv(role middleware.MetricRole, rpcInfo psrpc.RPCInfo, err error, bytes int)

func (UnimplementedMetricsObserver) OnStreamSend added in v1.10.0

func (o UnimplementedMetricsObserver) OnStreamSend(role middleware.MetricRole, rpcInfo psrpc.RPCInfo, duration time.Duration, err error, bytes int)

func (UnimplementedMetricsObserver) OnUnaryRequest added in v1.10.0

func (o UnimplementedMetricsObserver) OnUnaryRequest(role middleware.MetricRole, rpcInfo psrpc.RPCInfo, duration time.Duration, err error, rxBytes, txBytes int)

type UnimplementedParticipantServer added in v1.42.0

type UnimplementedParticipantServer struct{}

func (UnimplementedParticipantServer) ForwardParticipant added in v1.42.0

func (UnimplementedParticipantServer) MoveParticipant added in v1.42.0

func (UnimplementedParticipantServer) MutePublishedTrack added in v1.42.0

func (UnimplementedParticipantServer) PerformRpc added in v1.42.0

func (UnimplementedParticipantServer) RemoveParticipant added in v1.42.0

func (UnimplementedParticipantServer) UpdateParticipant added in v1.42.0

func (UnimplementedParticipantServer) UpdateSubscriptions added in v1.42.0

type UnimplementedRoomManagerServer added in v1.42.0

type UnimplementedRoomManagerServer struct{}

func (UnimplementedRoomManagerServer) CreateRoom added in v1.42.0

type UnimplementedRoomServer added in v1.42.0

type UnimplementedRoomServer struct{}

func (UnimplementedRoomServer) DeleteRoom added in v1.42.0

func (UnimplementedRoomServer) SendData added in v1.42.0

func (UnimplementedRoomServer) UpdateRoomMetadata added in v1.42.0

type UnimplementedSIPInternalServer added in v1.42.0

type UnimplementedSIPInternalServer struct{}

func (UnimplementedSIPInternalServer) CreateSIPParticipant added in v1.42.0

func (UnimplementedSIPInternalServer) CreateSIPParticipantAffinity added in v1.42.0

func (UnimplementedSIPInternalServer) TransferSIPParticipant added in v1.42.0

type UnimplementedSignalServer added in v1.42.0

type UnimplementedSignalServer struct{}

func (UnimplementedSignalServer) RelaySignal added in v1.42.0

type UnimplementedWHIPParticipantServer added in v1.42.0

type UnimplementedWHIPParticipantServer struct{}

func (UnimplementedWHIPParticipantServer) DeleteSession added in v1.42.0

func (UnimplementedWHIPParticipantServer) ICERestart added in v1.42.0

func (UnimplementedWHIPParticipantServer) ICETrickle added in v1.42.0

type UnimplementedWHIPServer added in v1.42.0

type UnimplementedWHIPServer struct{}

func (UnimplementedWHIPServer) Create added in v1.42.0

type UnsafeAnalyticsRecorderServiceServer added in v1.18.0

type UnsafeAnalyticsRecorderServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAnalyticsRecorderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AnalyticsRecorderServiceServer will result in compilation errors.

type UpdateIngressStateRequest

type UpdateIngressStateRequest struct {
	IngressId string                `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"`
	State     *livekit.IngressState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

Request to store an update to the ingress state ingress -> service

func (*UpdateIngressStateRequest) Descriptor deprecated

func (*UpdateIngressStateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateIngressStateRequest.ProtoReflect.Descriptor instead.

func (*UpdateIngressStateRequest) GetIngressId

func (x *UpdateIngressStateRequest) GetIngressId() string

func (*UpdateIngressStateRequest) GetState

func (*UpdateIngressStateRequest) ProtoMessage

func (*UpdateIngressStateRequest) ProtoMessage()

func (*UpdateIngressStateRequest) ProtoReflect

func (*UpdateIngressStateRequest) Reset

func (x *UpdateIngressStateRequest) Reset()

func (*UpdateIngressStateRequest) String

func (x *UpdateIngressStateRequest) String() string

type UpdateMetricsRequest added in v1.9.4

type UpdateMetricsRequest struct {
	Info        *livekit.EgressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	AvgCpuUsage float32             `protobuf:"fixed32,3,opt,name=avg_cpu_usage,json=avgCpuUsage,proto3" json:"avg_cpu_usage,omitempty"`
	MaxCpuUsage float32             `protobuf:"fixed32,4,opt,name=max_cpu_usage,json=maxCpuUsage,proto3" json:"max_cpu_usage,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMetricsRequest) Descriptor deprecated added in v1.9.4

func (*UpdateMetricsRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMetricsRequest.ProtoReflect.Descriptor instead.

func (*UpdateMetricsRequest) GetAvgCpuUsage added in v1.9.4

func (x *UpdateMetricsRequest) GetAvgCpuUsage() float32

func (*UpdateMetricsRequest) GetInfo added in v1.9.4

func (x *UpdateMetricsRequest) GetInfo() *livekit.EgressInfo

func (*UpdateMetricsRequest) GetMaxCpuUsage added in v1.9.4

func (x *UpdateMetricsRequest) GetMaxCpuUsage() float32

func (*UpdateMetricsRequest) ProtoMessage added in v1.9.4

func (*UpdateMetricsRequest) ProtoMessage()

func (*UpdateMetricsRequest) ProtoReflect added in v1.9.4

func (x *UpdateMetricsRequest) ProtoReflect() protoreflect.Message

func (*UpdateMetricsRequest) Reset added in v1.9.4

func (x *UpdateMetricsRequest) Reset()

func (*UpdateMetricsRequest) String added in v1.9.4

func (x *UpdateMetricsRequest) String() string

type UpdateSIPCallStateRequest added in v1.26.0

type UpdateSIPCallStateRequest struct {
	CallInfo     *livekit.SIPCallInfo     `protobuf:"bytes,1,opt,name=call_info,json=callInfo,proto3" json:"call_info,omitempty"`
	TransferInfo *livekit.SIPTransferInfo `protobuf:"bytes,2,opt,name=transfer_info,json=transferInfo,proto3" json:"transfer_info,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSIPCallStateRequest) Descriptor deprecated added in v1.26.0

func (*UpdateSIPCallStateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSIPCallStateRequest.ProtoReflect.Descriptor instead.

func (*UpdateSIPCallStateRequest) GetCallInfo added in v1.26.0

func (x *UpdateSIPCallStateRequest) GetCallInfo() *livekit.SIPCallInfo

func (*UpdateSIPCallStateRequest) GetTransferInfo added in v1.39.0

func (x *UpdateSIPCallStateRequest) GetTransferInfo() *livekit.SIPTransferInfo

func (*UpdateSIPCallStateRequest) ProtoMessage added in v1.26.0

func (*UpdateSIPCallStateRequest) ProtoMessage()

func (*UpdateSIPCallStateRequest) ProtoReflect added in v1.26.0

func (*UpdateSIPCallStateRequest) Reset added in v1.26.0

func (x *UpdateSIPCallStateRequest) Reset()

func (*UpdateSIPCallStateRequest) String added in v1.26.0

func (x *UpdateSIPCallStateRequest) String() string

type WHIPClient added in v1.40.0

type WHIPClient[TopicTopicType ~string] interface {
	Create(ctx context.Context, topic TopicTopicType, req *WHIPCreateRequest, opts ...psrpc.RequestOption) (*WHIPCreateResponse, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewWHIPClient added in v1.40.0

func NewWHIPClient[TopicTopicType ~string](bus psrpc.MessageBus, opts ...psrpc.ClientOption) (WHIPClient[TopicTopicType], error)

NewWHIPClient creates a psrpc client that implements the WHIPClient interface.

type WHIPCreateRequest added in v1.40.0

type WHIPCreateRequest struct {
	StartSession                *livekit.StartSession                   `protobuf:"bytes,1,opt,name=start_session,json=startSession,proto3" json:"start_session,omitempty"`
	OfferSdp                    string                                  `protobuf:"bytes,2,opt,name=offer_sdp,json=offerSdp,proto3" json:"offer_sdp,omitempty"`
	SubscribedParticipantTracks map[string]*WHIPCreateRequest_TrackList `` /* 218-byte string literal not displayed */
	FromIngress                 bool                                    `protobuf:"varint,4,opt,name=from_ingress,json=fromIngress,proto3" json:"from_ingress,omitempty"`
	// contains filtered or unexported fields
}

func (*WHIPCreateRequest) Descriptor deprecated added in v1.40.0

func (*WHIPCreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use WHIPCreateRequest.ProtoReflect.Descriptor instead.

func (*WHIPCreateRequest) GetFromIngress added in v1.42.0

func (x *WHIPCreateRequest) GetFromIngress() bool

func (*WHIPCreateRequest) GetOfferSdp added in v1.40.0

func (x *WHIPCreateRequest) GetOfferSdp() string

func (*WHIPCreateRequest) GetStartSession added in v1.40.0

func (x *WHIPCreateRequest) GetStartSession() *livekit.StartSession

func (*WHIPCreateRequest) GetSubscribedParticipantTracks added in v1.40.0

func (x *WHIPCreateRequest) GetSubscribedParticipantTracks() map[string]*WHIPCreateRequest_TrackList

func (*WHIPCreateRequest) ProtoMessage added in v1.40.0

func (*WHIPCreateRequest) ProtoMessage()

func (*WHIPCreateRequest) ProtoReflect added in v1.40.0

func (x *WHIPCreateRequest) ProtoReflect() protoreflect.Message

func (*WHIPCreateRequest) Reset added in v1.40.0

func (x *WHIPCreateRequest) Reset()

func (*WHIPCreateRequest) String added in v1.40.0

func (x *WHIPCreateRequest) String() string

type WHIPCreateRequest_TrackList added in v1.40.0

type WHIPCreateRequest_TrackList struct {
	TrackNames []string `protobuf:"bytes,1,rep,name=track_names,json=trackNames,proto3" json:"track_names,omitempty"`
	// contains filtered or unexported fields
}

func (*WHIPCreateRequest_TrackList) Descriptor deprecated added in v1.40.0

func (*WHIPCreateRequest_TrackList) Descriptor() ([]byte, []int)

Deprecated: Use WHIPCreateRequest_TrackList.ProtoReflect.Descriptor instead.

func (*WHIPCreateRequest_TrackList) GetTrackNames added in v1.40.0

func (x *WHIPCreateRequest_TrackList) GetTrackNames() []string

func (*WHIPCreateRequest_TrackList) ProtoMessage added in v1.40.0

func (*WHIPCreateRequest_TrackList) ProtoMessage()

func (*WHIPCreateRequest_TrackList) ProtoReflect added in v1.40.0

func (*WHIPCreateRequest_TrackList) Reset added in v1.40.0

func (x *WHIPCreateRequest_TrackList) Reset()

func (*WHIPCreateRequest_TrackList) String added in v1.40.0

func (x *WHIPCreateRequest_TrackList) String() string

type WHIPCreateResponse added in v1.40.0

type WHIPCreateResponse struct {
	AnswerSdp     string               `protobuf:"bytes,1,opt,name=answer_sdp,json=answerSdp,proto3" json:"answer_sdp,omitempty"`
	ParticipantId string               `protobuf:"bytes,2,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	IceServers    []*livekit.ICEServer `protobuf:"bytes,3,rep,name=ice_servers,json=iceServers,proto3" json:"ice_servers,omitempty"`
	IceSessionId  string               `protobuf:"bytes,4,opt,name=ice_session_id,json=iceSessionId,proto3" json:"ice_session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*WHIPCreateResponse) Descriptor deprecated added in v1.40.0

func (*WHIPCreateResponse) Descriptor() ([]byte, []int)

Deprecated: Use WHIPCreateResponse.ProtoReflect.Descriptor instead.

func (*WHIPCreateResponse) GetAnswerSdp added in v1.40.0

func (x *WHIPCreateResponse) GetAnswerSdp() string

func (*WHIPCreateResponse) GetIceServers added in v1.40.0

func (x *WHIPCreateResponse) GetIceServers() []*livekit.ICEServer

func (*WHIPCreateResponse) GetIceSessionId added in v1.40.0

func (x *WHIPCreateResponse) GetIceSessionId() string

func (*WHIPCreateResponse) GetParticipantId added in v1.40.0

func (x *WHIPCreateResponse) GetParticipantId() string

func (*WHIPCreateResponse) ProtoMessage added in v1.40.0

func (*WHIPCreateResponse) ProtoMessage()

func (*WHIPCreateResponse) ProtoReflect added in v1.40.0

func (x *WHIPCreateResponse) ProtoReflect() protoreflect.Message

func (*WHIPCreateResponse) Reset added in v1.40.0

func (x *WHIPCreateResponse) Reset()

func (*WHIPCreateResponse) String added in v1.40.0

func (x *WHIPCreateResponse) String() string

type WHIPParticipantClient added in v1.40.0

type WHIPParticipantClient[TopicTopicType ~string] interface {
	ICETrickle(ctx context.Context, topic TopicTopicType, req *WHIPParticipantICETrickleRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	ICERestart(ctx context.Context, topic TopicTopicType, req *WHIPParticipantICERestartRequest, opts ...psrpc.RequestOption) (*WHIPParticipantICERestartResponse, error)

	DeleteSession(ctx context.Context, topic TopicTopicType, req *WHIPParticipantDeleteSessionRequest, opts ...psrpc.RequestOption) (*google_protobuf.Empty, error)

	// Close immediately, without waiting for pending RPCs
	Close()
}

func NewWHIPParticipantClient added in v1.40.0

func NewWHIPParticipantClient[TopicTopicType ~string](bus psrpc.MessageBus, opts ...psrpc.ClientOption) (WHIPParticipantClient[TopicTopicType], error)

NewWHIPParticipantClient creates a psrpc client that implements the WHIPParticipantClient interface.

type WHIPParticipantDeleteSessionRequest added in v1.40.0

type WHIPParticipantDeleteSessionRequest struct {
	Room                string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
	ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
	ParticipantId       string `protobuf:"bytes,3,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	FromSweeper         bool   `protobuf:"varint,4,opt,name=from_sweeper,json=fromSweeper,proto3" json:"from_sweeper,omitempty"`
	// contains filtered or unexported fields
}

func (*WHIPParticipantDeleteSessionRequest) Descriptor deprecated added in v1.40.0

func (*WHIPParticipantDeleteSessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use WHIPParticipantDeleteSessionRequest.ProtoReflect.Descriptor instead.

func (*WHIPParticipantDeleteSessionRequest) GetFromSweeper added in v1.42.0

func (x *WHIPParticipantDeleteSessionRequest) GetFromSweeper() bool

func (*WHIPParticipantDeleteSessionRequest) GetParticipantId added in v1.40.0

func (x *WHIPParticipantDeleteSessionRequest) GetParticipantId() string

func (*WHIPParticipantDeleteSessionRequest) GetParticipantIdentity added in v1.40.0

func (x *WHIPParticipantDeleteSessionRequest) GetParticipantIdentity() string

func (*WHIPParticipantDeleteSessionRequest) GetRoom added in v1.40.0

func (*WHIPParticipantDeleteSessionRequest) ProtoMessage added in v1.40.0

func (*WHIPParticipantDeleteSessionRequest) ProtoMessage()

func (*WHIPParticipantDeleteSessionRequest) ProtoReflect added in v1.40.0

func (*WHIPParticipantDeleteSessionRequest) Reset added in v1.40.0

func (*WHIPParticipantDeleteSessionRequest) String added in v1.40.0

type WHIPParticipantICERestartRequest added in v1.40.0

type WHIPParticipantICERestartRequest struct {
	Room                string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
	ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
	ParticipantId       string `protobuf:"bytes,3,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	SdpFragment         string `protobuf:"bytes,4,opt,name=sdp_fragment,json=sdpFragment,proto3" json:"sdp_fragment,omitempty"`
	// contains filtered or unexported fields
}

func (*WHIPParticipantICERestartRequest) Descriptor deprecated added in v1.40.0

func (*WHIPParticipantICERestartRequest) Descriptor() ([]byte, []int)

Deprecated: Use WHIPParticipantICERestartRequest.ProtoReflect.Descriptor instead.

func (*WHIPParticipantICERestartRequest) GetParticipantId added in v1.40.0

func (x *WHIPParticipantICERestartRequest) GetParticipantId() string

func (*WHIPParticipantICERestartRequest) GetParticipantIdentity added in v1.40.0

func (x *WHIPParticipantICERestartRequest) GetParticipantIdentity() string

func (*WHIPParticipantICERestartRequest) GetRoom added in v1.40.0

func (*WHIPParticipantICERestartRequest) GetSdpFragment added in v1.40.0

func (x *WHIPParticipantICERestartRequest) GetSdpFragment() string

func (*WHIPParticipantICERestartRequest) ProtoMessage added in v1.40.0

func (*WHIPParticipantICERestartRequest) ProtoMessage()

func (*WHIPParticipantICERestartRequest) ProtoReflect added in v1.40.0

func (*WHIPParticipantICERestartRequest) Reset added in v1.40.0

func (*WHIPParticipantICERestartRequest) String added in v1.40.0

type WHIPParticipantICERestartResponse added in v1.40.0

type WHIPParticipantICERestartResponse struct {
	IceSessionId string `protobuf:"bytes,1,opt,name=ice_session_id,json=iceSessionId,proto3" json:"ice_session_id,omitempty"`
	SdpFragment  string `protobuf:"bytes,2,opt,name=sdp_fragment,json=sdpFragment,proto3" json:"sdp_fragment,omitempty"`
	// contains filtered or unexported fields
}

func (*WHIPParticipantICERestartResponse) Descriptor deprecated added in v1.40.0

func (*WHIPParticipantICERestartResponse) Descriptor() ([]byte, []int)

Deprecated: Use WHIPParticipantICERestartResponse.ProtoReflect.Descriptor instead.

func (*WHIPParticipantICERestartResponse) GetIceSessionId added in v1.40.0

func (x *WHIPParticipantICERestartResponse) GetIceSessionId() string

func (*WHIPParticipantICERestartResponse) GetSdpFragment added in v1.40.0

func (x *WHIPParticipantICERestartResponse) GetSdpFragment() string

func (*WHIPParticipantICERestartResponse) ProtoMessage added in v1.40.0

func (*WHIPParticipantICERestartResponse) ProtoMessage()

func (*WHIPParticipantICERestartResponse) ProtoReflect added in v1.40.0

func (*WHIPParticipantICERestartResponse) Reset added in v1.40.0

func (*WHIPParticipantICERestartResponse) String added in v1.40.0

type WHIPParticipantICETrickleRequest added in v1.40.0

type WHIPParticipantICETrickleRequest struct {
	Room                string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
	ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
	ParticipantId       string `protobuf:"bytes,3,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	IceSessionId        string `protobuf:"bytes,4,opt,name=ice_session_id,json=iceSessionId,proto3" json:"ice_session_id,omitempty"`
	SdpFragment         string `protobuf:"bytes,5,opt,name=sdp_fragment,json=sdpFragment,proto3" json:"sdp_fragment,omitempty"`
	// contains filtered or unexported fields
}

func (*WHIPParticipantICETrickleRequest) Descriptor deprecated added in v1.40.0

func (*WHIPParticipantICETrickleRequest) Descriptor() ([]byte, []int)

Deprecated: Use WHIPParticipantICETrickleRequest.ProtoReflect.Descriptor instead.

func (*WHIPParticipantICETrickleRequest) GetIceSessionId added in v1.40.0

func (x *WHIPParticipantICETrickleRequest) GetIceSessionId() string

func (*WHIPParticipantICETrickleRequest) GetParticipantId added in v1.40.0

func (x *WHIPParticipantICETrickleRequest) GetParticipantId() string

func (*WHIPParticipantICETrickleRequest) GetParticipantIdentity added in v1.40.0

func (x *WHIPParticipantICETrickleRequest) GetParticipantIdentity() string

func (*WHIPParticipantICETrickleRequest) GetRoom added in v1.40.0

func (*WHIPParticipantICETrickleRequest) GetSdpFragment added in v1.40.0

func (x *WHIPParticipantICETrickleRequest) GetSdpFragment() string

func (*WHIPParticipantICETrickleRequest) ProtoMessage added in v1.40.0

func (*WHIPParticipantICETrickleRequest) ProtoMessage()

func (*WHIPParticipantICETrickleRequest) ProtoReflect added in v1.40.0

func (*WHIPParticipantICETrickleRequest) Reset added in v1.40.0

func (*WHIPParticipantICETrickleRequest) String added in v1.40.0

type WHIPParticipantServer added in v1.40.0

type WHIPParticipantServer[TopicTopicType ~string] interface {
	RegisterICETrickleTopic(topic TopicTopicType) error
	DeregisterICETrickleTopic(topic TopicTopicType)
	RegisterICERestartTopic(topic TopicTopicType) error
	DeregisterICERestartTopic(topic TopicTopicType)
	RegisterDeleteSessionTopic(topic TopicTopicType) error
	DeregisterDeleteSessionTopic(topic TopicTopicType)
	RegisterAllCommonTopics(topic TopicTopicType) error
	DeregisterAllCommonTopics(topic TopicTopicType)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewWHIPParticipantServer added in v1.40.0

func NewWHIPParticipantServer[TopicTopicType ~string](svc WHIPParticipantServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (WHIPParticipantServer[TopicTopicType], error)

NewWHIPParticipantServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type WHIPRTCConnectionNotifyRequest added in v1.42.0

type WHIPRTCConnectionNotifyRequest struct {
	ParticipantId string                   `protobuf:"bytes,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	Closed        bool                     `protobuf:"varint,2,opt,name=closed,proto3" json:"closed,omitempty"`
	Video         *livekit.InputVideoState `protobuf:"bytes,3,opt,name=video,proto3" json:"video,omitempty"`
	Audio         *livekit.InputAudioState `protobuf:"bytes,4,opt,name=audio,proto3" json:"audio,omitempty"`
	// contains filtered or unexported fields
}

func (*WHIPRTCConnectionNotifyRequest) Descriptor deprecated added in v1.42.0

func (*WHIPRTCConnectionNotifyRequest) Descriptor() ([]byte, []int)

Deprecated: Use WHIPRTCConnectionNotifyRequest.ProtoReflect.Descriptor instead.

func (*WHIPRTCConnectionNotifyRequest) GetAudio added in v1.42.1

func (*WHIPRTCConnectionNotifyRequest) GetClosed added in v1.42.0

func (x *WHIPRTCConnectionNotifyRequest) GetClosed() bool

func (*WHIPRTCConnectionNotifyRequest) GetParticipantId added in v1.42.0

func (x *WHIPRTCConnectionNotifyRequest) GetParticipantId() string

func (*WHIPRTCConnectionNotifyRequest) GetVideo added in v1.42.1

func (*WHIPRTCConnectionNotifyRequest) ProtoMessage added in v1.42.0

func (*WHIPRTCConnectionNotifyRequest) ProtoMessage()

func (*WHIPRTCConnectionNotifyRequest) ProtoReflect added in v1.42.0

func (*WHIPRTCConnectionNotifyRequest) Reset added in v1.42.0

func (x *WHIPRTCConnectionNotifyRequest) Reset()

func (*WHIPRTCConnectionNotifyRequest) String added in v1.42.0

type WHIPServer added in v1.40.0

type WHIPServer[TopicTopicType ~string] interface {
	RegisterCreateTopic(topic TopicTopicType) error
	DeregisterCreateTopic(topic TopicTopicType)
	RegisterAllCommonTopics(topic TopicTopicType) error
	DeregisterAllCommonTopics(topic TopicTopicType)

	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewWHIPServer added in v1.40.0

func NewWHIPServer[TopicTopicType ~string](svc WHIPServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (WHIPServer[TopicTopicType], error)

NewWHIPServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type WHIPServerImpl added in v1.40.0

type WHIPServerImpl interface {
	Create(context.Context, *WHIPCreateRequest) (*WHIPCreateResponse, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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