proto

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Trickle_Target_name = map[int32]string{
		0: "PUBLISHER",
		1: "SUBSCRIBER",
	}
	Trickle_Target_value = map[string]int32{
		"PUBLISHER":  0,
		"SUBSCRIBER": 1,
	}
)

Enum value maps for Trickle_Target.

View Source
var File_cmd_signal_grpc_proto_sfu_proto protoreflect.FileDescriptor

Functions

func RegisterSFUServer added in v1.1.0

func RegisterSFUServer(s grpc.ServiceRegistrar, srv SFUServer)

Types

type JoinReply

type JoinReply struct {
	Description []byte `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinReply) Descriptor deprecated

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

Deprecated: Use JoinReply.ProtoReflect.Descriptor instead.

func (*JoinReply) GetDescription added in v1.1.0

func (x *JoinReply) GetDescription() []byte

func (*JoinReply) ProtoMessage

func (*JoinReply) ProtoMessage()

func (*JoinReply) ProtoReflect

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

func (*JoinReply) Reset

func (x *JoinReply) Reset()

func (*JoinReply) String

func (x *JoinReply) String() string

type JoinRequest

type JoinRequest struct {
	Sid         string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"`
	Description []byte `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinRequest) Descriptor deprecated

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

Deprecated: Use JoinRequest.ProtoReflect.Descriptor instead.

func (*JoinRequest) GetDescription added in v1.1.0

func (x *JoinRequest) GetDescription() []byte

func (*JoinRequest) GetSid

func (x *JoinRequest) GetSid() 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 SFUClient

type SFUClient interface {
	Signal(ctx context.Context, opts ...grpc.CallOption) (SFU_SignalClient, error)
}

SFUClient is the client API for SFU 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 NewSFUClient

func NewSFUClient(cc grpc.ClientConnInterface) SFUClient

type SFUServer added in v1.1.0

type SFUServer interface {
	Signal(SFU_SignalServer) error
	// contains filtered or unexported methods
}

SFUServer is the server API for SFU service. All implementations must embed UnimplementedSFUServer for forward compatibility

type SFU_SignalClient

type SFU_SignalClient interface {
	Send(*SignalRequest) error
	Recv() (*SignalReply, error)
	grpc.ClientStream
}

type SFU_SignalServer

type SFU_SignalServer interface {
	Send(*SignalReply) error
	Recv() (*SignalRequest, error)
	grpc.ServerStream
}

type SignalReply

type SignalReply struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Payload:
	//	*SignalReply_Join
	//	*SignalReply_Description
	//	*SignalReply_Trickle
	//	*SignalReply_IceConnectionState
	//	*SignalReply_Error
	Payload isSignalReply_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*SignalReply) Descriptor deprecated

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

Deprecated: Use SignalReply.ProtoReflect.Descriptor instead.

func (*SignalReply) GetDescription added in v1.1.0

func (x *SignalReply) GetDescription() []byte

func (*SignalReply) GetError added in v1.2.0

func (x *SignalReply) GetError() string

func (*SignalReply) GetIceConnectionState added in v1.3.1

func (x *SignalReply) GetIceConnectionState() string

func (*SignalReply) GetId added in v1.1.0

func (x *SignalReply) GetId() string

func (*SignalReply) GetJoin

func (x *SignalReply) GetJoin() *JoinReply

func (*SignalReply) GetPayload

func (m *SignalReply) GetPayload() isSignalReply_Payload

func (*SignalReply) GetTrickle

func (x *SignalReply) GetTrickle() *Trickle

func (*SignalReply) ProtoMessage

func (*SignalReply) ProtoMessage()

func (*SignalReply) ProtoReflect

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

func (*SignalReply) Reset

func (x *SignalReply) Reset()

func (*SignalReply) String

func (x *SignalReply) String() string

type SignalReply_Description added in v1.1.0

type SignalReply_Description struct {
	Description []byte `protobuf:"bytes,3,opt,name=description,proto3,oneof"`
}

type SignalReply_Error added in v1.2.0

type SignalReply_Error struct {
	Error string `protobuf:"bytes,6,opt,name=error,proto3,oneof"`
}

type SignalReply_IceConnectionState added in v1.3.1

type SignalReply_IceConnectionState struct {
	IceConnectionState string `protobuf:"bytes,5,opt,name=iceConnectionState,proto3,oneof"`
}

type SignalReply_Join

type SignalReply_Join struct {
	Join *JoinReply `protobuf:"bytes,2,opt,name=join,proto3,oneof"`
}

type SignalReply_Trickle

type SignalReply_Trickle struct {
	Trickle *Trickle `protobuf:"bytes,4,opt,name=trickle,proto3,oneof"`
}

type SignalRequest

type SignalRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Payload:
	//	*SignalRequest_Join
	//	*SignalRequest_Description
	//	*SignalRequest_Trickle
	Payload isSignalRequest_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*SignalRequest) Descriptor deprecated

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

Deprecated: Use SignalRequest.ProtoReflect.Descriptor instead.

func (*SignalRequest) GetDescription added in v1.1.0

func (x *SignalRequest) GetDescription() []byte

func (*SignalRequest) GetId added in v1.1.0

func (x *SignalRequest) GetId() string

func (*SignalRequest) GetJoin

func (x *SignalRequest) GetJoin() *JoinRequest

func (*SignalRequest) GetPayload

func (m *SignalRequest) GetPayload() isSignalRequest_Payload

func (*SignalRequest) GetTrickle

func (x *SignalRequest) GetTrickle() *Trickle

func (*SignalRequest) ProtoMessage

func (*SignalRequest) ProtoMessage()

func (*SignalRequest) ProtoReflect

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

func (*SignalRequest) Reset

func (x *SignalRequest) Reset()

func (*SignalRequest) String

func (x *SignalRequest) String() string

type SignalRequest_Description added in v1.1.0

type SignalRequest_Description struct {
	Description []byte `protobuf:"bytes,3,opt,name=description,proto3,oneof"`
}

type SignalRequest_Join

type SignalRequest_Join struct {
	Join *JoinRequest `protobuf:"bytes,2,opt,name=join,proto3,oneof"`
}

type SignalRequest_Trickle

type SignalRequest_Trickle struct {
	Trickle *Trickle `protobuf:"bytes,4,opt,name=trickle,proto3,oneof"`
}

type Trickle

type Trickle struct {
	Target Trickle_Target `protobuf:"varint,1,opt,name=target,proto3,enum=sfu.Trickle_Target" json:"target,omitempty"`
	Init   string         `protobuf:"bytes,2,opt,name=init,proto3" json:"init,omitempty"`
	// contains filtered or unexported fields
}

func (*Trickle) Descriptor deprecated

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

Deprecated: Use Trickle.ProtoReflect.Descriptor instead.

func (*Trickle) GetInit

func (x *Trickle) GetInit() string

func (*Trickle) GetTarget added in v1.4.0

func (x *Trickle) GetTarget() Trickle_Target

func (*Trickle) ProtoMessage

func (*Trickle) ProtoMessage()

func (*Trickle) ProtoReflect

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

func (*Trickle) Reset

func (x *Trickle) Reset()

func (*Trickle) String

func (x *Trickle) String() string

type Trickle_Target added in v1.4.0

type Trickle_Target int32
const (
	Trickle_PUBLISHER  Trickle_Target = 0
	Trickle_SUBSCRIBER Trickle_Target = 1
)

func (Trickle_Target) Descriptor added in v1.4.0

func (Trickle_Target) Enum added in v1.4.0

func (x Trickle_Target) Enum() *Trickle_Target

func (Trickle_Target) EnumDescriptor deprecated added in v1.4.0

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

Deprecated: Use Trickle_Target.Descriptor instead.

func (Trickle_Target) Number added in v1.4.0

func (Trickle_Target) String added in v1.4.0

func (x Trickle_Target) String() string

func (Trickle_Target) Type added in v1.4.0

type UnimplementedSFUServer added in v1.1.0

type UnimplementedSFUServer struct {
}

UnimplementedSFUServer must be embedded to have forward compatible implementations.

func (UnimplementedSFUServer) Signal added in v1.1.0

type UnsafeSFUServer added in v1.1.0

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

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

Jump to

Keyboard shortcuts

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