statistic

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Deprecated: Use NetType.ProtoReflect.Descriptor instead.

func (*NetType) GetConnType

func (x *NetType) GetConnType() Type

func (*NetType) GetUnderlyingType

func (x *NetType) GetUnderlyingType() Type

func (*NetType) ProtoMessage

func (*NetType) ProtoMessage()

func (*NetType) ProtoReflect

func (x *NetType) ProtoReflect() protoreflect.Message

func (*NetType) Reset

func (x *NetType) Reset()

func (*NetType) String

func (x *NetType) String() string

type Type

type Type int32

"tcp", "tcp4", "tcp6" "udp", "udp4", "udp6" "ip", "ip4", "ip6" "unix", "unixgram", "unixpacket"

const (
	Type_unknown    Type = 0
	Type_tcp        Type = 1
	Type_tcp4       Type = 2
	Type_tcp6       Type = 3
	Type_udp        Type = 4
	Type_udp4       Type = 5
	Type_udp6       Type = 6
	Type_ip         Type = 7
	Type_ip4        Type = 8
	Type_ip6        Type = 9
	Type_unix       Type = 10
	Type_unixgram   Type = 11
	Type_unixpacket Type = 12
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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