Documentation ¶
Index ¶
- Variables
- func RegisterTunnelServer(s *grpc.Server, srv TunnelServer)
- type LogLevel
- type LogMessage
- func (*LogMessage) Descriptor() ([]byte, []int)
- func (m *LogMessage) GetLogLevel() LogLevel
- func (m *LogMessage) GetMessage() string
- func (*LogMessage) ProtoMessage()
- func (m *LogMessage) Reset()
- func (m *LogMessage) String() string
- func (m *LogMessage) XXX_DiscardUnknown()
- func (m *LogMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogMessage) XXX_Merge(src proto.Message)
- func (m *LogMessage) XXX_Size() int
- func (m *LogMessage) XXX_Unmarshal(b []byte) error
- type SocketDataRequest
- func (*SocketDataRequest) Descriptor() ([]byte, []int)
- func (m *SocketDataRequest) GetData() []byte
- func (m *SocketDataRequest) GetLogLevel() LogLevel
- func (m *SocketDataRequest) GetPort() int32
- func (m *SocketDataRequest) GetRequestId() string
- func (m *SocketDataRequest) GetScheme() TunnelScheme
- func (m *SocketDataRequest) GetShouldClose() bool
- func (*SocketDataRequest) ProtoMessage()
- func (m *SocketDataRequest) Reset()
- func (m *SocketDataRequest) String() string
- func (m *SocketDataRequest) XXX_DiscardUnknown()
- func (m *SocketDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SocketDataRequest) XXX_Merge(src proto.Message)
- func (m *SocketDataRequest) XXX_Size() int
- func (m *SocketDataRequest) XXX_Unmarshal(b []byte) error
- type SocketDataResponse
- func (*SocketDataResponse) Descriptor() ([]byte, []int)
- func (m *SocketDataResponse) GetData() []byte
- func (m *SocketDataResponse) GetHasErr() bool
- func (m *SocketDataResponse) GetLogMessage() *LogMessage
- func (m *SocketDataResponse) GetRequestId() string
- func (m *SocketDataResponse) GetShouldClose() bool
- func (*SocketDataResponse) ProtoMessage()
- func (m *SocketDataResponse) Reset()
- func (m *SocketDataResponse) String() string
- func (m *SocketDataResponse) XXX_DiscardUnknown()
- func (m *SocketDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SocketDataResponse) XXX_Merge(src proto.Message)
- func (m *SocketDataResponse) XXX_Size() int
- func (m *SocketDataResponse) XXX_Unmarshal(b []byte) error
- type TunnelClient
- type TunnelScheme
- type TunnelServer
- type Tunnel_InitTunnelClient
- type Tunnel_InitTunnelServer
- type UnimplementedTunnelServer
Constants ¶
This section is empty.
Variables ¶
View Source
var LogLevel_name = map[int32]string{
0: "INFO",
1: "VERBOSE",
2: "DEBUG",
3: "WARNING",
4: "ERROR",
}
View Source
var LogLevel_value = map[string]int32{
"INFO": 0,
"VERBOSE": 1,
"DEBUG": 2,
"WARNING": 3,
"ERROR": 4,
}
View Source
var TunnelScheme_name = map[int32]string{
0: "TCP",
1: "UDP",
}
View Source
var TunnelScheme_value = map[string]int32{
"TCP": 0,
"UDP": 1,
}
Functions ¶
func RegisterTunnelServer ¶
func RegisterTunnelServer(s *grpc.Server, srv TunnelServer)
Types ¶
type LogMessage ¶
type LogMessage struct { LogLevel LogLevel `protobuf:"varint,1,opt,name=logLevel,proto3,enum=grpc_tunnel.LogLevel" json:"logLevel,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogMessage) Descriptor ¶
func (*LogMessage) Descriptor() ([]byte, []int)
func (*LogMessage) GetLogLevel ¶
func (m *LogMessage) GetLogLevel() LogLevel
func (*LogMessage) GetMessage ¶
func (m *LogMessage) GetMessage() string
func (*LogMessage) ProtoMessage ¶
func (*LogMessage) ProtoMessage()
func (*LogMessage) Reset ¶
func (m *LogMessage) Reset()
func (*LogMessage) String ¶
func (m *LogMessage) String() string
func (*LogMessage) XXX_DiscardUnknown ¶
func (m *LogMessage) XXX_DiscardUnknown()
func (*LogMessage) XXX_Marshal ¶
func (m *LogMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogMessage) XXX_Merge ¶
func (m *LogMessage) XXX_Merge(src proto.Message)
func (*LogMessage) XXX_Size ¶
func (m *LogMessage) XXX_Size() int
func (*LogMessage) XXX_Unmarshal ¶
func (m *LogMessage) XXX_Unmarshal(b []byte) error
type SocketDataRequest ¶
type SocketDataRequest struct { Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"` LogLevel LogLevel `protobuf:"varint,3,opt,name=logLevel,proto3,enum=grpc_tunnel.LogLevel" json:"logLevel,omitempty"` Scheme TunnelScheme `protobuf:"varint,4,opt,name=scheme,proto3,enum=grpc_tunnel.TunnelScheme" json:"scheme,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` ShouldClose bool `protobuf:"varint,6,opt,name=shouldClose,proto3" json:"shouldClose,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SocketDataRequest) Descriptor ¶
func (*SocketDataRequest) Descriptor() ([]byte, []int)
func (*SocketDataRequest) GetData ¶
func (m *SocketDataRequest) GetData() []byte
func (*SocketDataRequest) GetLogLevel ¶
func (m *SocketDataRequest) GetLogLevel() LogLevel
func (*SocketDataRequest) GetPort ¶
func (m *SocketDataRequest) GetPort() int32
func (*SocketDataRequest) GetRequestId ¶
func (m *SocketDataRequest) GetRequestId() string
func (*SocketDataRequest) GetScheme ¶
func (m *SocketDataRequest) GetScheme() TunnelScheme
func (*SocketDataRequest) GetShouldClose ¶
func (m *SocketDataRequest) GetShouldClose() bool
func (*SocketDataRequest) ProtoMessage ¶
func (*SocketDataRequest) ProtoMessage()
func (*SocketDataRequest) Reset ¶
func (m *SocketDataRequest) Reset()
func (*SocketDataRequest) String ¶
func (m *SocketDataRequest) String() string
func (*SocketDataRequest) XXX_DiscardUnknown ¶
func (m *SocketDataRequest) XXX_DiscardUnknown()
func (*SocketDataRequest) XXX_Marshal ¶
func (m *SocketDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SocketDataRequest) XXX_Merge ¶
func (m *SocketDataRequest) XXX_Merge(src proto.Message)
func (*SocketDataRequest) XXX_Size ¶
func (m *SocketDataRequest) XXX_Size() int
func (*SocketDataRequest) XXX_Unmarshal ¶
func (m *SocketDataRequest) XXX_Unmarshal(b []byte) error
type SocketDataResponse ¶
type SocketDataResponse struct { HasErr bool `protobuf:"varint,1,opt,name=hasErr,proto3" json:"hasErr,omitempty"` LogMessage *LogMessage `protobuf:"bytes,2,opt,name=logMessage,proto3" json:"logMessage,omitempty"` RequestId string `protobuf:"bytes,3,opt,name=requestId,proto3" json:"requestId,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` ShouldClose bool `protobuf:"varint,5,opt,name=shouldClose,proto3" json:"shouldClose,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SocketDataResponse) Descriptor ¶
func (*SocketDataResponse) Descriptor() ([]byte, []int)
func (*SocketDataResponse) GetData ¶
func (m *SocketDataResponse) GetData() []byte
func (*SocketDataResponse) GetHasErr ¶
func (m *SocketDataResponse) GetHasErr() bool
func (*SocketDataResponse) GetLogMessage ¶
func (m *SocketDataResponse) GetLogMessage() *LogMessage
func (*SocketDataResponse) GetRequestId ¶
func (m *SocketDataResponse) GetRequestId() string
func (*SocketDataResponse) GetShouldClose ¶
func (m *SocketDataResponse) GetShouldClose() bool
func (*SocketDataResponse) ProtoMessage ¶
func (*SocketDataResponse) ProtoMessage()
func (*SocketDataResponse) Reset ¶
func (m *SocketDataResponse) Reset()
func (*SocketDataResponse) String ¶
func (m *SocketDataResponse) String() string
func (*SocketDataResponse) XXX_DiscardUnknown ¶
func (m *SocketDataResponse) XXX_DiscardUnknown()
func (*SocketDataResponse) XXX_Marshal ¶
func (m *SocketDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SocketDataResponse) XXX_Merge ¶
func (m *SocketDataResponse) XXX_Merge(src proto.Message)
func (*SocketDataResponse) XXX_Size ¶
func (m *SocketDataResponse) XXX_Size() int
func (*SocketDataResponse) XXX_Unmarshal ¶
func (m *SocketDataResponse) XXX_Unmarshal(b []byte) error
type TunnelClient ¶
type TunnelClient interface {
InitTunnel(ctx context.Context, opts ...grpc.CallOption) (Tunnel_InitTunnelClient, error)
}
TunnelClient is the client API for Tunnel service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTunnelClient ¶
func NewTunnelClient(cc *grpc.ClientConn) TunnelClient
type TunnelScheme ¶
type TunnelScheme int32
const ( TunnelScheme_TCP TunnelScheme = 0 TunnelScheme_UDP TunnelScheme = 1 )
func (TunnelScheme) EnumDescriptor ¶
func (TunnelScheme) EnumDescriptor() ([]byte, []int)
func (TunnelScheme) String ¶
func (x TunnelScheme) String() string
type TunnelServer ¶
type TunnelServer interface {
InitTunnel(Tunnel_InitTunnelServer) error
}
TunnelServer is the server API for Tunnel service.
type Tunnel_InitTunnelClient ¶
type Tunnel_InitTunnelClient interface { Send(*SocketDataRequest) error Recv() (*SocketDataResponse, error) grpc.ClientStream }
type Tunnel_InitTunnelServer ¶
type Tunnel_InitTunnelServer interface { Send(*SocketDataResponse) error Recv() (*SocketDataRequest, error) grpc.ServerStream }
type UnimplementedTunnelServer ¶
type UnimplementedTunnelServer struct { }
UnimplementedTunnelServer can be embedded to have forward compatible implementations.
func (*UnimplementedTunnelServer) InitTunnel ¶
func (*UnimplementedTunnelServer) InitTunnel(srv Tunnel_InitTunnelServer) error
Click to show internal directories.
Click to hide internal directories.