Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterWebTerminalServiceServer(s grpc.ServiceRegistrar, srv WebTerminalServiceServer)
- type Action
- type Action_ToPhone
- type Answer
- type Bye
- type Error
- type Error_Code
- type Idle
- type InCall
- type Offer
- type Ringing
- type ToPhone
- type UnimplementedWebTerminalServiceServer
- type UnsafeWebTerminalServiceServer
- type WebTerminalMessage
- func (*WebTerminalMessage) Descriptor() ([]byte, []int)deprecated
- func (x *WebTerminalMessage) GetAction() *Action
- func (x *WebTerminalMessage) GetAnswer() *Answer
- func (x *WebTerminalMessage) GetBye() *Bye
- func (x *WebTerminalMessage) GetCallId() string
- func (x *WebTerminalMessage) GetError() *Error
- func (x *WebTerminalMessage) GetIdle() *Idle
- func (x *WebTerminalMessage) GetInCall() *InCall
- func (m *WebTerminalMessage) GetMessage() isWebTerminalMessage_Message
- func (x *WebTerminalMessage) GetOffer() *Offer
- func (x *WebTerminalMessage) GetRinging() *Ringing
- func (*WebTerminalMessage) ProtoMessage()
- func (x *WebTerminalMessage) ProtoReflect() protoreflect.Message
- func (x *WebTerminalMessage) Reset()
- func (x *WebTerminalMessage) String() string
- type WebTerminalMessage_Action
- type WebTerminalMessage_Answer
- type WebTerminalMessage_Bye
- type WebTerminalMessage_Error
- type WebTerminalMessage_Idle
- type WebTerminalMessage_InCall
- type WebTerminalMessage_Offer
- type WebTerminalMessage_Ringing
- type WebTerminalServiceClient
- type WebTerminalServiceServer
- type WebTerminalService_MultiPipeClient
- type WebTerminalService_MultiPipeServer
- type WebTerminalService_PipeClient
- type WebTerminalService_PipeServer
Constants ¶
const ( WebTerminalService_Pipe_FullMethodName = "/wgtwo.webterminal.v0.WebTerminalService/Pipe" WebTerminalService_MultiPipe_FullMethodName = "/wgtwo.webterminal.v0.WebTerminalService/MultiPipe" )
Variables ¶
var ( Error_Code_name = map[int32]string{ 0: "UNKNOWN", 1: "NOT_INCALL", 2: "TRY_AGAIN", 3: "INVALID_CALL_ID", 4: "RATE_LIMIT_HIT", } Error_Code_value = map[string]int32{ "UNKNOWN": 0, "NOT_INCALL": 1, "TRY_AGAIN": 2, "INVALID_CALL_ID": 3, "RATE_LIMIT_HIT": 4, } )
Enum value maps for Error_Code.
var File_wgtwo_webterminal_v0_webterminal_proto protoreflect.FileDescriptor
var WebTerminalService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wgtwo.webterminal.v0.WebTerminalService", HandlerType: (*WebTerminalServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Pipe", Handler: _WebTerminalService_Pipe_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "MultiPipe", Handler: _WebTerminalService_MultiPipe_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "wgtwo/webterminal/v0/webterminal.proto", }
WebTerminalService_ServiceDesc is the grpc.ServiceDesc for WebTerminalService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWebTerminalServiceServer ¶
func RegisterWebTerminalServiceServer(s grpc.ServiceRegistrar, srv WebTerminalServiceServer)
Types ¶
type Action ¶
type Action struct { // Types that are assignable to Message: // // *Action_ToPhone Message isAction_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
func (*Action) GetMessage ¶
func (m *Action) GetMessage() isAction_Message
func (*Action) GetToPhone ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
type Action_ToPhone ¶
type Action_ToPhone struct {
ToPhone *ToPhone `protobuf:"bytes,1,opt,name=toPhone,proto3,oneof"`
}
type Answer ¶
type Answer struct { Sdp string `protobuf:"bytes,1,opt,name=sdp,proto3" json:"sdp,omitempty"` // contains filtered or unexported fields }
func (*Answer) Descriptor
deprecated
func (*Answer) ProtoMessage ¶
func (*Answer) ProtoMessage()
func (*Answer) ProtoReflect ¶
func (x *Answer) ProtoReflect() protoreflect.Message
type Bye ¶
type Bye struct {
// contains filtered or unexported fields
}
func (*Bye) Descriptor
deprecated
func (*Bye) ProtoMessage ¶
func (*Bye) ProtoMessage()
func (*Bye) ProtoReflect ¶
func (x *Bye) ProtoReflect() protoreflect.Message
type Error ¶
type Error struct { Err Error_Code `protobuf:"varint,1,opt,name=err,proto3,enum=wgtwo.webterminal.v0.Error_Code" json:"err,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetErr ¶
func (x *Error) GetErr() Error_Code
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Error_Code ¶
type Error_Code int32
const ( Error_UNKNOWN Error_Code = 0 Error_NOT_INCALL Error_Code = 1 Error_TRY_AGAIN Error_Code = 2 Error_INVALID_CALL_ID Error_Code = 3 Error_RATE_LIMIT_HIT Error_Code = 4 )
func (Error_Code) Descriptor ¶
func (Error_Code) Descriptor() protoreflect.EnumDescriptor
func (Error_Code) Enum ¶
func (x Error_Code) Enum() *Error_Code
func (Error_Code) EnumDescriptor
deprecated
func (Error_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use Error_Code.Descriptor instead.
func (Error_Code) Number ¶
func (x Error_Code) Number() protoreflect.EnumNumber
func (Error_Code) String ¶
func (x Error_Code) String() string
func (Error_Code) Type ¶
func (Error_Code) Type() protoreflect.EnumType
type Idle ¶
type Idle struct {
// contains filtered or unexported fields
}
func (*Idle) Descriptor
deprecated
func (*Idle) ProtoMessage ¶
func (*Idle) ProtoMessage()
func (*Idle) ProtoReflect ¶
func (x *Idle) ProtoReflect() protoreflect.Message
type InCall ¶
type InCall struct { Msisdn *v0.PhoneNumber `protobuf:"bytes,1,opt,name=msisdn,proto3" json:"msisdn,omitempty"` // contains filtered or unexported fields }
func (*InCall) Descriptor
deprecated
func (*InCall) GetMsisdn ¶
func (x *InCall) GetMsisdn() *v0.PhoneNumber
func (*InCall) ProtoMessage ¶
func (*InCall) ProtoMessage()
func (*InCall) ProtoReflect ¶
func (x *InCall) ProtoReflect() protoreflect.Message
type Offer ¶
type Offer struct { Sdp string `protobuf:"bytes,1,opt,name=sdp,proto3" json:"sdp,omitempty"` Msisdn *v0.PhoneNumber `protobuf:"bytes,2,opt,name=msisdn,proto3" json:"msisdn,omitempty"` // contains filtered or unexported fields }
func (*Offer) Descriptor
deprecated
func (*Offer) GetMsisdn ¶
func (x *Offer) GetMsisdn() *v0.PhoneNumber
func (*Offer) ProtoMessage ¶
func (*Offer) ProtoMessage()
func (*Offer) ProtoReflect ¶
func (x *Offer) ProtoReflect() protoreflect.Message
type Ringing ¶
type Ringing struct {
// contains filtered or unexported fields
}
func (*Ringing) Descriptor
deprecated
func (*Ringing) ProtoMessage ¶
func (*Ringing) ProtoMessage()
func (*Ringing) ProtoReflect ¶
func (x *Ringing) ProtoReflect() protoreflect.Message
type ToPhone ¶
type ToPhone struct {
// contains filtered or unexported fields
}
func (*ToPhone) Descriptor
deprecated
func (*ToPhone) ProtoMessage ¶
func (*ToPhone) ProtoMessage()
func (*ToPhone) ProtoReflect ¶
func (x *ToPhone) ProtoReflect() protoreflect.Message
type UnimplementedWebTerminalServiceServer ¶
type UnimplementedWebTerminalServiceServer struct{}
UnimplementedWebTerminalServiceServer should 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.
type UnsafeWebTerminalServiceServer ¶
type UnsafeWebTerminalServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWebTerminalServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebTerminalServiceServer will result in compilation errors.
type WebTerminalMessage ¶
type WebTerminalMessage struct { // Types that are assignable to Message: // // *WebTerminalMessage_Offer // *WebTerminalMessage_Answer // *WebTerminalMessage_Ringing // *WebTerminalMessage_Bye // *WebTerminalMessage_Idle // *WebTerminalMessage_InCall // *WebTerminalMessage_Error // *WebTerminalMessage_Action Message isWebTerminalMessage_Message `protobuf_oneof:"message"` CallId string `protobuf:"bytes,10,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"` // contains filtered or unexported fields }
func (*WebTerminalMessage) Descriptor
deprecated
func (*WebTerminalMessage) Descriptor() ([]byte, []int)
Deprecated: Use WebTerminalMessage.ProtoReflect.Descriptor instead.
func (*WebTerminalMessage) GetAction ¶
func (x *WebTerminalMessage) GetAction() *Action
func (*WebTerminalMessage) GetAnswer ¶
func (x *WebTerminalMessage) GetAnswer() *Answer
func (*WebTerminalMessage) GetBye ¶
func (x *WebTerminalMessage) GetBye() *Bye
func (*WebTerminalMessage) GetCallId ¶
func (x *WebTerminalMessage) GetCallId() string
func (*WebTerminalMessage) GetError ¶
func (x *WebTerminalMessage) GetError() *Error
func (*WebTerminalMessage) GetIdle ¶
func (x *WebTerminalMessage) GetIdle() *Idle
func (*WebTerminalMessage) GetInCall ¶
func (x *WebTerminalMessage) GetInCall() *InCall
func (*WebTerminalMessage) GetMessage ¶
func (m *WebTerminalMessage) GetMessage() isWebTerminalMessage_Message
func (*WebTerminalMessage) GetOffer ¶
func (x *WebTerminalMessage) GetOffer() *Offer
func (*WebTerminalMessage) GetRinging ¶
func (x *WebTerminalMessage) GetRinging() *Ringing
func (*WebTerminalMessage) ProtoMessage ¶
func (*WebTerminalMessage) ProtoMessage()
func (*WebTerminalMessage) ProtoReflect ¶
func (x *WebTerminalMessage) ProtoReflect() protoreflect.Message
func (*WebTerminalMessage) Reset ¶
func (x *WebTerminalMessage) Reset()
func (*WebTerminalMessage) String ¶
func (x *WebTerminalMessage) String() string
type WebTerminalMessage_Action ¶
type WebTerminalMessage_Action struct {
Action *Action `protobuf:"bytes,9,opt,name=action,proto3,oneof"`
}
type WebTerminalMessage_Answer ¶
type WebTerminalMessage_Answer struct {
Answer *Answer `protobuf:"bytes,2,opt,name=answer,proto3,oneof"`
}
type WebTerminalMessage_Bye ¶
type WebTerminalMessage_Bye struct {
Bye *Bye `protobuf:"bytes,4,opt,name=bye,proto3,oneof"`
}
type WebTerminalMessage_Error ¶
type WebTerminalMessage_Error struct {
Error *Error `protobuf:"bytes,7,opt,name=error,proto3,oneof"`
}
type WebTerminalMessage_Idle ¶
type WebTerminalMessage_Idle struct {
Idle *Idle `protobuf:"bytes,5,opt,name=idle,proto3,oneof"`
}
type WebTerminalMessage_InCall ¶
type WebTerminalMessage_InCall struct {
InCall *InCall `protobuf:"bytes,6,opt,name=in_call,json=inCall,proto3,oneof"`
}
type WebTerminalMessage_Offer ¶
type WebTerminalMessage_Offer struct {
Offer *Offer `protobuf:"bytes,1,opt,name=offer,proto3,oneof"`
}
type WebTerminalMessage_Ringing ¶
type WebTerminalMessage_Ringing struct {
Ringing *Ringing `protobuf:"bytes,3,opt,name=ringing,proto3,oneof"`
}
type WebTerminalServiceClient ¶
type WebTerminalServiceClient interface { Pipe(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WebTerminalMessage, WebTerminalMessage], error) MultiPipe(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WebTerminalMessage, WebTerminalMessage], error) }
WebTerminalServiceClient is the client API for WebTerminalService 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.
Gateway for WebTerminalProtocol. Requires user's consent to answer and initiate calls.
func NewWebTerminalServiceClient ¶
func NewWebTerminalServiceClient(cc grpc.ClientConnInterface) WebTerminalServiceClient
type WebTerminalServiceServer ¶
type WebTerminalServiceServer interface { Pipe(grpc.BidiStreamingServer[WebTerminalMessage, WebTerminalMessage]) error MultiPipe(grpc.BidiStreamingServer[WebTerminalMessage, WebTerminalMessage]) error }
WebTerminalServiceServer is the server API for WebTerminalService service. All implementations should embed UnimplementedWebTerminalServiceServer for forward compatibility.
Gateway for WebTerminalProtocol. Requires user's consent to answer and initiate calls.
type WebTerminalService_MultiPipeClient ¶
type WebTerminalService_MultiPipeClient = grpc.BidiStreamingClient[WebTerminalMessage, WebTerminalMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WebTerminalService_MultiPipeServer ¶
type WebTerminalService_MultiPipeServer = grpc.BidiStreamingServer[WebTerminalMessage, WebTerminalMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WebTerminalService_PipeClient ¶
type WebTerminalService_PipeClient = grpc.BidiStreamingClient[WebTerminalMessage, WebTerminalMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WebTerminalService_PipeServer ¶
type WebTerminalService_PipeServer = grpc.BidiStreamingServer[WebTerminalMessage, WebTerminalMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.