Documentation
¶
Index ¶
- Variables
- type EgressClient
- type EgressHandlerClient
- type EgressHandlerServer
- type EgressHandlerServerImpl
- type EgressInternalClient
- type EgressInternalServer
- type EgressInternalServerImpl
- type Empty
- type ListActiveEgressRequest
- type ListActiveEgressResponse
- func (*ListActiveEgressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListActiveEgressResponse) GetEgressIds() []string
- func (*ListActiveEgressResponse) ProtoMessage()
- func (x *ListActiveEgressResponse) ProtoReflect() protoreflect.Message
- func (x *ListActiveEgressResponse) Reset()
- func (x *ListActiveEgressResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pkg_service_rpc_egress_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EgressClient ¶
type EgressClient interface {
EgressInternalClient
EgressHandlerClient
}
func NewEgressClient ¶
func NewEgressClient(nodeID livekit.NodeID, bus psrpc.MessageBus) (EgressClient, error)
type EgressHandlerClient ¶
type EgressHandlerClient interface {
UpdateStream(context.Context, string, *livekit.UpdateStreamRequest, ...psrpc1.RequestOption) (*livekit.EgressInfo, error)
StopEgress(context.Context, string, *livekit.StopEgressRequest, ...psrpc1.RequestOption) (*livekit.EgressInfo, error)
SubscribeInfoUpdate(context.Context) (psrpc1.Subscription[*livekit.EgressInfo], error)
}
func NewEgressHandlerClient ¶
func NewEgressHandlerClient(clientID string, bus psrpc1.MessageBus, opts ...psrpc1.ClientOption) (EgressHandlerClient, error)
NewEgressHandlerClient creates a psrpc client that implements the EgressHandlerClient interface.
type EgressHandlerServer ¶
type EgressHandlerServer interface {
RegisterUpdateStreamTopic(string) error
DeregisterUpdateStreamTopic(string)
RegisterStopEgressTopic(string) error
DeregisterStopEgressTopic(string)
PublishInfoUpdate(context.Context, *livekit.EgressInfo) error
// Close and wait for pending RPCs to complete
Shutdown()
// Close immediately, without waiting for pending RPCs
Kill()
}
func NewEgressHandlerServer ¶
func NewEgressHandlerServer(serverID string, svc EgressHandlerServerImpl, bus psrpc1.MessageBus, opts ...psrpc1.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, *livekit.UpdateStreamRequest) (*livekit.EgressInfo, error)
StopEgress(context.Context, *livekit.StopEgressRequest) (*livekit.EgressInfo, error)
}
type EgressInternalClient ¶
type EgressInternalClient interface {
StartEgress(context.Context, *livekit3.StartEgressRequest, ...psrpc1.RequestOption) (*livekit.EgressInfo, error)
ListActiveEgress(context.Context, *ListActiveEgressRequest, ...psrpc1.RequestOption) (<-chan *psrpc1.Response[*ListActiveEgressResponse], error)
}
func NewEgressInternalClient ¶
func NewEgressInternalClient(clientID string, bus psrpc1.MessageBus, opts ...psrpc1.ClientOption) (EgressInternalClient, error)
NewEgressInternalClient creates a psrpc client that implements the EgressInternalClient interface.
type EgressInternalServer ¶
type EgressInternalServer interface {
// Close and wait for pending RPCs to complete
Shutdown()
// Close immediately, without waiting for pending RPCs
Kill()
}
func NewEgressInternalServer ¶
func NewEgressInternalServer(serverID string, svc EgressInternalServerImpl, bus psrpc1.MessageBus, opts ...psrpc1.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, *livekit3.StartEgressRequest) (*livekit.EgressInfo, error)
StartEgressAffinity(*livekit3.StartEgressRequest) float32
ListActiveEgress(context.Context, *ListActiveEgressRequest) (*ListActiveEgressResponse, error)
}
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.