Documentation ¶
Index ¶
- Variables
- type Connection
- func (*Connection) Descriptor() ([]byte, []int)deprecated
- func (x *Connection) GetAddr() string
- func (x *Connection) GetExtra() map[string]string
- func (x *Connection) GetId() uint64
- func (x *Connection) GetType() *NetType
- func (*Connection) ProtoMessage()
- func (x *Connection) ProtoReflect() protoreflect.Message
- func (x *Connection) Reset()
- func (x *Connection) String() string
- type NetType
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Type_name = map[int32]string{ 0: "unknown", 1: "tcp", 2: "tcp4", 3: "tcp6", 4: "udp", 5: "udp4", 6: "udp6", 7: "ip", 8: "ip4", 9: "ip6", 10: "unix", 11: "unixgram", 12: "unixpacket", } Type_value = map[string]int32{ "unknown": 0, "tcp": 1, "tcp4": 2, "tcp6": 3, "udp": 4, "udp4": 5, "udp6": 6, "ip": 7, "ip4": 8, "ip6": 9, "unix": 10, "unixgram": 11, "unixpacket": 12, } )
Enum value maps for Type.
View Source
var File_statistic_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Type *NetType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Extra map[string]string `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Connection) Descriptor
deprecated
func (*Connection) Descriptor() ([]byte, []int)
Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) GetAddr ¶
func (x *Connection) GetAddr() string
func (*Connection) GetExtra ¶
func (x *Connection) GetExtra() map[string]string
func (*Connection) GetId ¶
func (x *Connection) GetId() uint64
func (*Connection) GetType ¶
func (x *Connection) GetType() *NetType
func (*Connection) ProtoMessage ¶
func (*Connection) ProtoMessage()
func (*Connection) ProtoReflect ¶
func (x *Connection) ProtoReflect() protoreflect.Message
func (*Connection) Reset ¶
func (x *Connection) Reset()
func (*Connection) String ¶
func (x *Connection) String() string
type NetType ¶
type NetType struct { ConnType Type `protobuf:"varint,1,opt,name=conn_type,proto3,enum=yuhaiin.statistic.Type" json:"conn_type,omitempty"` UnderlyingType Type `protobuf:"varint,2,opt,name=underlying_type,proto3,enum=yuhaiin.statistic.Type" json:"underlying_type,omitempty"` // contains filtered or unexported fields }
func (*NetType) Descriptor
deprecated
func (*NetType) GetConnType ¶
func (*NetType) GetUnderlyingType ¶
func (*NetType) ProtoMessage ¶
func (*NetType) ProtoMessage()
func (*NetType) ProtoReflect ¶
func (x *NetType) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
"tcp", "tcp4", "tcp6" "udp", "udp4", "udp6" "ip", "ip4", "ip6" "unix", "unixgram", "unixpacket"
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.