Documentation
¶
Index ¶
- Constants
- type RPC
- type RPCClient
- type RPCServer
- type RedisRPC
- func (r *RedisRPC) GetEntityChannel(ctx context.Context) (utils.PubSub, error)
- func (r *RedisRPC) GetUpdateChannel(ctx context.Context) (utils.PubSub, error)
- func (r *RedisRPC) IngressSubscription(ctx context.Context, ingressID string) (utils.PubSub, error)
- func (r *RedisRPC) SendRequest(ctx context.Context, request proto.Message) (*livekit.IngressInfo, error)
- func (r *RedisRPC) SendResponse(ctx context.Context, request proto.Message, info *livekit.IngressInfo, ...) error
- func (r *RedisRPC) SendUpdate(ctx context.Context, info *livekit.IngressInfo) error
Constants ¶
View Source
const (
RequestExpiration = time.Second * 2
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCClient ¶
type RPCClient interface {
// GetUpdateChannel returns a subscription for ingress info updates
GetUpdateChannel(ctx context.Context) (utils.PubSub, error)
// SendRequest sends a request to all available instances
SendRequest(ctx context.Context, req proto.Message) (*livekit.IngressInfo, error)
}
RPCClient is used by LiveKit Server
type RPCServer ¶
type RPCServer interface {
// IngressSubscription subscribes to requests for a specific ingress ID
IngressSubscription(ctx context.Context, ingressID string) (utils.PubSub, error)
// SendResponse returns an RPC response
SendResponse(ctx context.Context, request proto.Message, info *livekit.IngressInfo, err error) error
// SendUpdate sends an ingress info update
SendUpdate(ctx context.Context, info *livekit.IngressInfo) error
// GetEntityChannel returns a subscription for entity requests
GetEntityChannel(ctx context.Context) (utils.PubSub, error)
}
RPCServer is used by Ingress
type RedisRPC ¶
type RedisRPC struct {
// contains filtered or unexported fields
}
func (*RedisRPC) GetEntityChannel ¶
func (*RedisRPC) GetUpdateChannel ¶
func (*RedisRPC) IngressSubscription ¶
func (*RedisRPC) SendRequest ¶
func (*RedisRPC) SendResponse ¶
func (*RedisRPC) SendUpdate ¶
Click to show internal directories.
Click to hide internal directories.