Documentation
¶
Index ¶
- Variables
- func RegisterRTCServer(s grpc.ServiceRegistrar, srv RTCServer)
- type Description
- func (*Description) Descriptor() ([]byte, []int)deprecated
- func (x *Description) GetDescription() []byte
- func (x *Description) GetId() string
- func (x *Description) GetTarget() Target
- func (*Description) ProtoMessage()
- func (x *Description) ProtoReflect() protoreflect.Message
- func (x *Description) Reset()
- func (x *Description) String() string
- type Error
- type Join
- func (*Join) Descriptor() ([]byte, []int)deprecated
- func (m *Join) GetPayload() isJoin_Payload
- func (x *Join) GetReply() *JoinReply
- func (x *Join) GetReq() *JoinRequest
- func (*Join) ProtoMessage()
- func (x *Join) ProtoReflect() protoreflect.Message
- func (x *Join) Reset()
- func (x *Join) String() string
- type JoinReply
- type JoinRequest
- func (*JoinRequest) Descriptor() ([]byte, []int)deprecated
- func (x *JoinRequest) GetParameters() map[string]string
- func (x *JoinRequest) GetSid() string
- func (x *JoinRequest) GetUid() string
- func (*JoinRequest) ProtoMessage()
- func (x *JoinRequest) ProtoReflect() protoreflect.Message
- func (x *JoinRequest) Reset()
- func (x *JoinRequest) String() string
- type Join_Reply
- type Join_Req
- type RTCClient
- type RTCServer
- type RTC_SignalClient
- type RTC_SignalServer
- type Signalling
- func (*Signalling) Descriptor() ([]byte, []int)deprecated
- func (x *Signalling) GetDescription() *Description
- func (x *Signalling) GetError() *Error
- func (x *Signalling) GetJoin() *Join
- func (m *Signalling) GetPayload() isSignalling_Payload
- func (x *Signalling) GetTrickle() *Trickle
- func (*Signalling) ProtoMessage()
- func (x *Signalling) ProtoReflect() protoreflect.Message
- func (x *Signalling) Reset()
- func (x *Signalling) String() string
- type Signalling_Description
- type Signalling_Error
- type Signalling_Join
- type Signalling_Trickle
- type Target
- type Trickle
- func (*Trickle) Descriptor() ([]byte, []int)deprecated
- func (x *Trickle) GetCandidate() []byte
- func (x *Trickle) GetId() string
- func (x *Trickle) GetTarget() Target
- func (*Trickle) ProtoMessage()
- func (x *Trickle) ProtoReflect() protoreflect.Message
- func (x *Trickle) Reset()
- func (x *Trickle) String() string
- type UnimplementedRTCServer
- type UnsafeRTCServer
Constants ¶
This section is empty.
Variables ¶
var ( Target_name = map[int32]string{ 0: "PUBLISHER", 1: "SUBSCRIBER", } Target_value = map[string]int32{ "PUBLISHER": 0, "SUBSCRIBER": 1, } )
Enum value maps for Target.
var File_protos_rtc_proto protoreflect.FileDescriptor
var RTC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rtc.RTC", HandlerType: (*RTCServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Signal", Handler: _RTC_Signal_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "protos/rtc.proto", }
RTC_ServiceDesc is the grpc.ServiceDesc for RTC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRTCServer ¶
func RegisterRTCServer(s grpc.ServiceRegistrar, srv RTCServer)
Types ¶
type Description ¶
type Description struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Target Target `protobuf:"varint,2,opt,name=target,proto3,enum=rtc.Target" json:"target,omitempty"` Description []byte `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Description) Descriptor
deprecated
func (*Description) Descriptor() ([]byte, []int)
Deprecated: Use Description.ProtoReflect.Descriptor instead.
func (*Description) GetDescription ¶
func (x *Description) GetDescription() []byte
func (*Description) GetId ¶
func (x *Description) GetId() string
func (*Description) GetTarget ¶
func (x *Description) GetTarget() Target
func (*Description) ProtoMessage ¶
func (*Description) ProtoMessage()
func (*Description) ProtoReflect ¶
func (x *Description) ProtoReflect() protoreflect.Message
func (*Description) Reset ¶
func (x *Description) Reset()
func (*Description) String ¶
func (x *Description) String() string
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Join ¶
type Join struct { // Types that are assignable to Payload: // *Join_Req // *Join_Reply Payload isJoin_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*Join) Descriptor
deprecated
func (*Join) GetPayload ¶
func (m *Join) GetPayload() isJoin_Payload
func (*Join) GetReq ¶
func (x *Join) GetReq() *JoinRequest
func (*Join) ProtoMessage ¶
func (*Join) ProtoMessage()
func (*Join) ProtoReflect ¶
func (x *Join) ProtoReflect() protoreflect.Message
type JoinReply ¶
type JoinReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // room is full ? // contains filtered or unexported fields }
func (*JoinReply) Descriptor
deprecated
func (*JoinReply) GetSuccess ¶
func (*JoinReply) ProtoMessage ¶
func (*JoinReply) ProtoMessage()
func (*JoinReply) ProtoReflect ¶
func (x *JoinReply) ProtoReflect() protoreflect.Message
type JoinRequest ¶
type JoinRequest struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` Parameters map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*JoinRequest) Descriptor
deprecated
func (*JoinRequest) Descriptor() ([]byte, []int)
Deprecated: Use JoinRequest.ProtoReflect.Descriptor instead.
func (*JoinRequest) GetParameters ¶
func (x *JoinRequest) GetParameters() map[string]string
func (*JoinRequest) GetSid ¶
func (x *JoinRequest) GetSid() string
func (*JoinRequest) GetUid ¶
func (x *JoinRequest) GetUid() string
func (*JoinRequest) ProtoMessage ¶
func (*JoinRequest) ProtoMessage()
func (*JoinRequest) ProtoReflect ¶
func (x *JoinRequest) ProtoReflect() protoreflect.Message
func (*JoinRequest) Reset ¶
func (x *JoinRequest) Reset()
func (*JoinRequest) String ¶
func (x *JoinRequest) String() string
type Join_Reply ¶
type Join_Reply struct {
Reply *JoinReply `protobuf:"bytes,2,opt,name=reply,proto3,oneof"`
}
type Join_Req ¶
type Join_Req struct {
Req *JoinRequest `protobuf:"bytes,1,opt,name=req,proto3,oneof"`
}
type RTCClient ¶
type RTCClient interface {
Signal(ctx context.Context, opts ...grpc.CallOption) (RTC_SignalClient, error)
}
RTCClient is the client API for RTC 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 NewRTCClient ¶
func NewRTCClient(cc grpc.ClientConnInterface) RTCClient
type RTCServer ¶
type RTCServer interface { Signal(RTC_SignalServer) error // contains filtered or unexported methods }
RTCServer is the server API for RTC service. All implementations must embed UnimplementedRTCServer for forward compatibility
type RTC_SignalClient ¶
type RTC_SignalClient interface { Send(*Signalling) error Recv() (*Signalling, error) grpc.ClientStream }
type RTC_SignalServer ¶
type RTC_SignalServer interface { Send(*Signalling) error Recv() (*Signalling, error) grpc.ServerStream }
type Signalling ¶
type Signalling struct { // Types that are assignable to Payload: // *Signalling_Join // *Signalling_Description // *Signalling_Trickle // *Signalling_Error Payload isSignalling_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*Signalling) Descriptor
deprecated
func (*Signalling) Descriptor() ([]byte, []int)
Deprecated: Use Signalling.ProtoReflect.Descriptor instead.
func (*Signalling) GetDescription ¶
func (x *Signalling) GetDescription() *Description
func (*Signalling) GetError ¶
func (x *Signalling) GetError() *Error
func (*Signalling) GetJoin ¶
func (x *Signalling) GetJoin() *Join
func (*Signalling) GetPayload ¶
func (m *Signalling) GetPayload() isSignalling_Payload
func (*Signalling) GetTrickle ¶
func (x *Signalling) GetTrickle() *Trickle
func (*Signalling) ProtoMessage ¶
func (*Signalling) ProtoMessage()
func (*Signalling) ProtoReflect ¶
func (x *Signalling) ProtoReflect() protoreflect.Message
func (*Signalling) Reset ¶
func (x *Signalling) Reset()
func (*Signalling) String ¶
func (x *Signalling) String() string
type Signalling_Description ¶
type Signalling_Description struct {
Description *Description `protobuf:"bytes,2,opt,name=description,proto3,oneof"`
}
type Signalling_Error ¶
type Signalling_Error struct {
Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof"`
}
type Signalling_Join ¶
type Signalling_Join struct {
Join *Join `protobuf:"bytes,1,opt,name=join,proto3,oneof"`
}
type Signalling_Trickle ¶
type Signalling_Trickle struct {
Trickle *Trickle `protobuf:"bytes,3,opt,name=trickle,proto3,oneof"`
}
type Target ¶
type Target int32
func (Target) Descriptor ¶
func (Target) Descriptor() protoreflect.EnumDescriptor
func (Target) EnumDescriptor
deprecated
func (Target) Number ¶
func (x Target) Number() protoreflect.EnumNumber
func (Target) Type ¶
func (Target) Type() protoreflect.EnumType
type Trickle ¶
type Trickle struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Target Target `protobuf:"varint,2,opt,name=target,proto3,enum=rtc.Target" json:"target,omitempty"` Candidate []byte `protobuf:"bytes,3,opt,name=candidate,proto3" json:"candidate,omitempty"` // contains filtered or unexported fields }
func (*Trickle) Descriptor
deprecated
func (*Trickle) GetCandidate ¶
func (*Trickle) ProtoMessage ¶
func (*Trickle) ProtoMessage()
func (*Trickle) ProtoReflect ¶
func (x *Trickle) ProtoReflect() protoreflect.Message
type UnimplementedRTCServer ¶
type UnimplementedRTCServer struct { }
UnimplementedRTCServer must be embedded to have forward compatible implementations.
func (UnimplementedRTCServer) Signal ¶
func (UnimplementedRTCServer) Signal(RTC_SignalServer) error
type UnsafeRTCServer ¶
type UnsafeRTCServer interface {
// contains filtered or unexported methods
}
UnsafeRTCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RTCServer will result in compilation errors.