pbtun

package
v0.0.0-...-2f326a3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTunnelServiceServer

func RegisterTunnelServiceServer(s *grpc.Server, srv TunnelServiceServer)

Types

type CloseRequest

type CloseRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CloseRequest) Descriptor

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

func (*CloseRequest) ProtoMessage

func (*CloseRequest) ProtoMessage()

func (*CloseRequest) Reset

func (m *CloseRequest) Reset()

func (*CloseRequest) String

func (m *CloseRequest) String() string

func (*CloseRequest) XXX_DiscardUnknown

func (m *CloseRequest) XXX_DiscardUnknown()

func (*CloseRequest) XXX_Marshal

func (m *CloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CloseRequest) XXX_Merge

func (m *CloseRequest) XXX_Merge(src proto.Message)

func (*CloseRequest) XXX_Size

func (m *CloseRequest) XXX_Size() int

func (*CloseRequest) XXX_Unmarshal

func (m *CloseRequest) XXX_Unmarshal(b []byte) error

type MessageFromServer

type MessageFromServer struct {
	// Types that are valid to be assigned to MessageBody:
	//	*MessageFromServer_Payload
	//	*MessageFromServer_RegisterRequest
	//	*MessageFromServer_CloseRequest
	MessageBody          isMessageFromServer_MessageBody `protobuf_oneof:"MessageBody"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

func (*MessageFromServer) Descriptor

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

func (*MessageFromServer) GetCloseRequest

func (m *MessageFromServer) GetCloseRequest() *CloseRequest

func (*MessageFromServer) GetMessageBody

func (m *MessageFromServer) GetMessageBody() isMessageFromServer_MessageBody

func (*MessageFromServer) GetPayload

func (m *MessageFromServer) GetPayload() *StreamPayload

func (*MessageFromServer) GetRegisterRequest

func (m *MessageFromServer) GetRegisterRequest() *RegisterRequest

func (*MessageFromServer) ProtoMessage

func (*MessageFromServer) ProtoMessage()

func (*MessageFromServer) Reset

func (m *MessageFromServer) Reset()

func (*MessageFromServer) String

func (m *MessageFromServer) String() string

func (*MessageFromServer) XXX_DiscardUnknown

func (m *MessageFromServer) XXX_DiscardUnknown()

func (*MessageFromServer) XXX_Marshal

func (m *MessageFromServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageFromServer) XXX_Merge

func (m *MessageFromServer) XXX_Merge(src proto.Message)

func (*MessageFromServer) XXX_OneofWrappers

func (*MessageFromServer) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MessageFromServer) XXX_Size

func (m *MessageFromServer) XXX_Size() int

func (*MessageFromServer) XXX_Unmarshal

func (m *MessageFromServer) XXX_Unmarshal(b []byte) error

type MessageFromServer_CloseRequest

type MessageFromServer_CloseRequest struct {
	CloseRequest *CloseRequest `protobuf:"bytes,3,opt,name=close_request,json=closeRequest,proto3,oneof"`
}

type MessageFromServer_Payload

type MessageFromServer_Payload struct {
	Payload *StreamPayload `protobuf:"bytes,1,opt,name=payload,proto3,oneof"`
}

type MessageFromServer_RegisterRequest

type MessageFromServer_RegisterRequest struct {
	RegisterRequest *RegisterRequest `protobuf:"bytes,2,opt,name=register_request,json=registerRequest,proto3,oneof"`
}

type MessageToServer

type MessageToServer struct {
	// Types that are valid to be assigned to MessageBody:
	//	*MessageToServer_Payload
	//	*MessageToServer_RegisterRequest
	//	*MessageToServer_CloseRequest
	MessageBody          isMessageToServer_MessageBody `protobuf_oneof:"MessageBody"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

func (*MessageToServer) Descriptor

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

func (*MessageToServer) GetCloseRequest

func (m *MessageToServer) GetCloseRequest() *CloseRequest

func (*MessageToServer) GetMessageBody

func (m *MessageToServer) GetMessageBody() isMessageToServer_MessageBody

func (*MessageToServer) GetPayload

func (m *MessageToServer) GetPayload() *StreamPayload

func (*MessageToServer) GetRegisterRequest

func (m *MessageToServer) GetRegisterRequest() *RegisterRequest

func (*MessageToServer) ProtoMessage

func (*MessageToServer) ProtoMessage()

func (*MessageToServer) Reset

func (m *MessageToServer) Reset()

func (*MessageToServer) String

func (m *MessageToServer) String() string

func (*MessageToServer) XXX_DiscardUnknown

func (m *MessageToServer) XXX_DiscardUnknown()

func (*MessageToServer) XXX_Marshal

func (m *MessageToServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageToServer) XXX_Merge

func (m *MessageToServer) XXX_Merge(src proto.Message)

func (*MessageToServer) XXX_OneofWrappers

func (*MessageToServer) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MessageToServer) XXX_Size

func (m *MessageToServer) XXX_Size() int

func (*MessageToServer) XXX_Unmarshal

func (m *MessageToServer) XXX_Unmarshal(b []byte) error

type MessageToServer_CloseRequest

type MessageToServer_CloseRequest struct {
	CloseRequest *CloseRequest `protobuf:"bytes,3,opt,name=close_request,json=closeRequest,proto3,oneof"`
}

type MessageToServer_Payload

type MessageToServer_Payload struct {
	Payload *StreamPayload `protobuf:"bytes,1,opt,name=payload,proto3,oneof"`
}

type MessageToServer_RegisterRequest

type MessageToServer_RegisterRequest struct {
	RegisterRequest *RegisterRequest `protobuf:"bytes,2,opt,name=register_request,json=registerRequest,proto3,oneof"`
}

type RegisterRequest

type RegisterRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) GetName

func (m *RegisterRequest) GetName() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

func (*RegisterRequest) XXX_DiscardUnknown

func (m *RegisterRequest) XXX_DiscardUnknown()

func (*RegisterRequest) XXX_Marshal

func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterRequest) XXX_Merge

func (m *RegisterRequest) XXX_Merge(src proto.Message)

func (*RegisterRequest) XXX_Size

func (m *RegisterRequest) XXX_Size() int

func (*RegisterRequest) XXX_Unmarshal

func (m *RegisterRequest) XXX_Unmarshal(b []byte) error

type StreamPayload

type StreamPayload struct {
	Body                 []byte   `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StreamPayload) Descriptor

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

func (*StreamPayload) GetBody

func (m *StreamPayload) GetBody() []byte

func (*StreamPayload) ProtoMessage

func (*StreamPayload) ProtoMessage()

func (*StreamPayload) Reset

func (m *StreamPayload) Reset()

func (*StreamPayload) String

func (m *StreamPayload) String() string

func (*StreamPayload) XXX_DiscardUnknown

func (m *StreamPayload) XXX_DiscardUnknown()

func (*StreamPayload) XXX_Marshal

func (m *StreamPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamPayload) XXX_Merge

func (m *StreamPayload) XXX_Merge(src proto.Message)

func (*StreamPayload) XXX_Size

func (m *StreamPayload) XXX_Size() int

func (*StreamPayload) XXX_Unmarshal

func (m *StreamPayload) XXX_Unmarshal(b []byte) error

type TunnelServiceClient

type TunnelServiceClient interface {
	Tunnel(ctx context.Context, opts ...grpc.CallOption) (TunnelService_TunnelClient, error)
}

TunnelServiceClient is the client API for TunnelService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTunnelServiceClient

func NewTunnelServiceClient(cc *grpc.ClientConn) TunnelServiceClient

type TunnelServiceServer

type TunnelServiceServer interface {
	Tunnel(TunnelService_TunnelServer) error
}

TunnelServiceServer is the server API for TunnelService service.

type TunnelService_TunnelClient

type TunnelService_TunnelClient interface {
	Send(*MessageToServer) error
	Recv() (*MessageFromServer, error)
	grpc.ClientStream
}

type TunnelService_TunnelServer

type TunnelService_TunnelServer interface {
	Send(*MessageFromServer) error
	Recv() (*MessageToServer, error)
	grpc.ServerStream
}

type UnimplementedTunnelServiceServer

type UnimplementedTunnelServiceServer struct {
}

UnimplementedTunnelServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTunnelServiceServer) Tunnel

Jump to

Keyboard shortcuts

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