Documentation ¶
Index ¶
- Variables
- type TCPProxy
- func (*TCPProxy) Descriptor() ([]byte, []int)
- func (m *TCPProxy) GetIp() string
- func (m *TCPProxy) GetNodename() string
- func (m *TCPProxy) GetPort() int32
- func (m *TCPProxy) GetType() TCPProxy_Type
- func (m *TCPProxy) Marshal() (dAtA []byte, err error)
- func (m *TCPProxy) MarshalTo(dAtA []byte) (int, error)
- func (m *TCPProxy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TCPProxy) ProtoMessage()
- func (m *TCPProxy) Reset()
- func (m *TCPProxy) Size() (n int)
- func (m *TCPProxy) String() string
- func (m *TCPProxy) Unmarshal(dAtA []byte) error
- func (m *TCPProxy) XXX_DiscardUnknown()
- func (m *TCPProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TCPProxy) XXX_Merge(src proto.Message)
- func (m *TCPProxy) XXX_Size() int
- func (m *TCPProxy) XXX_Unmarshal(b []byte) error
- type TCPProxy_Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTcpproxy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTcpproxy = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTcpproxy = fmt.Errorf("proto: unexpected end of group") )
View Source
var TCPProxy_Type_name = map[int32]string{
0: "CONNECT",
1: "SUCCESS",
2: "FAILED",
}
View Source
var TCPProxy_Type_value = map[string]int32{
"CONNECT": 0,
"SUCCESS": 1,
"FAILED": 2,
}
Functions ¶
This section is empty.
Types ¶
type TCPProxy ¶
type TCPProxy struct { Type *TCPProxy_Type `protobuf:"varint,1,opt,name=type,enum=tcp.pb.TCPProxy_Type" json:"type,omitempty"` Nodename *string `protobuf:"bytes,2,opt,name=nodename" json:"nodename,omitempty"` Ip *string `protobuf:"bytes,3,opt,name=ip" json:"ip,omitempty"` Port *int32 `protobuf:"varint,4,opt,name=port" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TCPProxy) Descriptor ¶
func (*TCPProxy) GetNodename ¶
func (*TCPProxy) GetType ¶
func (m *TCPProxy) GetType() TCPProxy_Type
func (*TCPProxy) MarshalToSizedBuffer ¶
func (*TCPProxy) ProtoMessage ¶
func (*TCPProxy) ProtoMessage()
func (*TCPProxy) XXX_DiscardUnknown ¶
func (m *TCPProxy) XXX_DiscardUnknown()
func (*TCPProxy) XXX_Marshal ¶
func (*TCPProxy) XXX_Unmarshal ¶
type TCPProxy_Type ¶
type TCPProxy_Type int32
const ( TCPProxy_CONNECT TCPProxy_Type = 0 TCPProxy_SUCCESS TCPProxy_Type = 1 TCPProxy_FAILED TCPProxy_Type = 2 )
func (TCPProxy_Type) Enum ¶
func (x TCPProxy_Type) Enum() *TCPProxy_Type
func (TCPProxy_Type) EnumDescriptor ¶
func (TCPProxy_Type) EnumDescriptor() ([]byte, []int)
func (TCPProxy_Type) String ¶
func (x TCPProxy_Type) String() string
func (*TCPProxy_Type) UnmarshalJSON ¶
func (x *TCPProxy_Type) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.