tcp_pb

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (*TCPProxy) GetIp

func (m *TCPProxy) GetIp() string

func (*TCPProxy) GetNodename

func (m *TCPProxy) GetNodename() string

func (*TCPProxy) GetPort

func (m *TCPProxy) GetPort() int32

func (*TCPProxy) GetType

func (m *TCPProxy) GetType() TCPProxy_Type

func (*TCPProxy) Marshal

func (m *TCPProxy) Marshal() (dAtA []byte, err error)

func (*TCPProxy) MarshalTo

func (m *TCPProxy) MarshalTo(dAtA []byte) (int, error)

func (*TCPProxy) MarshalToSizedBuffer

func (m *TCPProxy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TCPProxy) ProtoMessage

func (*TCPProxy) ProtoMessage()

func (*TCPProxy) Reset

func (m *TCPProxy) Reset()

func (*TCPProxy) Size

func (m *TCPProxy) Size() (n int)

func (*TCPProxy) String

func (m *TCPProxy) String() string

func (*TCPProxy) Unmarshal

func (m *TCPProxy) Unmarshal(dAtA []byte) error

func (*TCPProxy) XXX_DiscardUnknown

func (m *TCPProxy) XXX_DiscardUnknown()

func (*TCPProxy) XXX_Marshal

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

func (*TCPProxy) XXX_Merge

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

func (*TCPProxy) XXX_Size

func (m *TCPProxy) XXX_Size() int

func (*TCPProxy) XXX_Unmarshal

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

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

Jump to

Keyboard shortcuts

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