v0

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_wgtwo_webterminal_v0_webterminal_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetMessage

func (m *Action) GetMessage() isAction_Message

func (*Action) GetToPhone

func (x *Action) GetToPhone() *ToPhone

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Answer.ProtoReflect.Descriptor instead.

func (*Answer) GetSdp

func (x *Answer) GetSdp() string

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) ProtoReflect

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

func (*Answer) Reset

func (x *Answer) Reset()

func (*Answer) String

func (x *Answer) String() string

type Bye

type Bye struct {
	// contains filtered or unexported fields
}

func (*Bye) Descriptor deprecated

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

Deprecated: Use Bye.ProtoReflect.Descriptor instead.

func (*Bye) ProtoMessage

func (*Bye) ProtoMessage()

func (*Bye) ProtoReflect

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

func (*Bye) Reset

func (x *Bye) Reset()

func (*Bye) String

func (x *Bye) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetErr

func (x *Error) GetErr() Error_Code

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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

type Idle

type Idle struct {
	// contains filtered or unexported fields
}

func (*Idle) Descriptor deprecated

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

Deprecated: Use Idle.ProtoReflect.Descriptor instead.

func (*Idle) ProtoMessage

func (*Idle) ProtoMessage()

func (*Idle) ProtoReflect

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

func (*Idle) Reset

func (x *Idle) Reset()

func (*Idle) String

func (x *Idle) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use InCall.ProtoReflect.Descriptor instead.

func (*InCall) GetMsisdn

func (x *InCall) GetMsisdn() *v0.PhoneNumber

func (*InCall) ProtoMessage

func (*InCall) ProtoMessage()

func (*InCall) ProtoReflect

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

func (*InCall) Reset

func (x *InCall) Reset()

func (*InCall) String

func (x *InCall) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Offer.ProtoReflect.Descriptor instead.

func (*Offer) GetMsisdn

func (x *Offer) GetMsisdn() *v0.PhoneNumber

func (*Offer) GetSdp

func (x *Offer) GetSdp() string

func (*Offer) ProtoMessage

func (*Offer) ProtoMessage()

func (*Offer) ProtoReflect

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

func (*Offer) Reset

func (x *Offer) Reset()

func (*Offer) String

func (x *Offer) String() string

type Ringing

type Ringing struct {
	// contains filtered or unexported fields
}

func (*Ringing) Descriptor deprecated

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

Deprecated: Use Ringing.ProtoReflect.Descriptor instead.

func (*Ringing) ProtoMessage

func (*Ringing) ProtoMessage()

func (*Ringing) ProtoReflect

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

func (*Ringing) Reset

func (x *Ringing) Reset()

func (*Ringing) String

func (x *Ringing) String() string

type ToPhone

type ToPhone struct {
	// contains filtered or unexported fields
}

func (*ToPhone) Descriptor deprecated

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

Deprecated: Use ToPhone.ProtoReflect.Descriptor instead.

func (*ToPhone) ProtoMessage

func (*ToPhone) ProtoMessage()

func (*ToPhone) ProtoReflect

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

func (*ToPhone) Reset

func (x *ToPhone) Reset()

func (*ToPhone) String

func (x *ToPhone) String() string

type UnimplementedWebTerminalServiceServer

type UnimplementedWebTerminalServiceServer struct {
}

UnimplementedWebTerminalServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedWebTerminalServiceServer) MultiPipe

func (UnimplementedWebTerminalServiceServer) Pipe

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) (WebTerminalService_PipeClient, error)
	MultiPipe(ctx context.Context, opts ...grpc.CallOption) (WebTerminalService_MultiPipeClient, 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.

type WebTerminalServiceServer

type WebTerminalServiceServer interface {
	Pipe(WebTerminalService_PipeServer) error
	MultiPipe(WebTerminalService_MultiPipeServer) error
}

WebTerminalServiceServer is the server API for WebTerminalService service. All implementations should embed UnimplementedWebTerminalServiceServer for forward compatibility

type WebTerminalService_MultiPipeClient

type WebTerminalService_MultiPipeClient interface {
	Send(*WebTerminalMessage) error
	Recv() (*WebTerminalMessage, error)
	grpc.ClientStream
}

type WebTerminalService_MultiPipeServer

type WebTerminalService_MultiPipeServer interface {
	Send(*WebTerminalMessage) error
	Recv() (*WebTerminalMessage, error)
	grpc.ServerStream
}

type WebTerminalService_PipeClient

type WebTerminalService_PipeClient interface {
	Send(*WebTerminalMessage) error
	Recv() (*WebTerminalMessage, error)
	grpc.ClientStream
}

type WebTerminalService_PipeServer

type WebTerminalService_PipeServer interface {
	Send(*WebTerminalMessage) error
	Recv() (*WebTerminalMessage, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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