net

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 73

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type IPAddress

type IPAddress struct {

	// Types that are assignable to Ip:
	//
	//	*IPAddress_Ipv4
	//	*IPAddress_Ipv6
	Ip isIPAddress_Ip `protobuf_oneof:"ip"`
	// contains filtered or unexported fields
}

func (*IPAddress) Descriptor deprecated

func (*IPAddress) Descriptor() ([]byte, []int)

Deprecated: Use IPAddress.ProtoReflect.Descriptor instead.

func (*IPAddress) GetIp

func (m *IPAddress) GetIp() isIPAddress_Ip

func (*IPAddress) GetIpv4

func (x *IPAddress) GetIpv4() uint32

func (*IPAddress) GetIpv6

func (x *IPAddress) GetIpv6() *IPv6

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) ProtoReflect added in v0.1.13

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

func (*IPAddress) Reset

func (x *IPAddress) Reset()

func (*IPAddress) String

func (x *IPAddress) String() string

type IPAddress_Ipv4

type IPAddress_Ipv4 struct {
	Ipv4 uint32 `protobuf:"fixed32,1,opt,name=ipv4,proto3,oneof"`
}

type IPAddress_Ipv6

type IPAddress_Ipv6 struct {
	Ipv6 *IPv6 `protobuf:"bytes,2,opt,name=ipv6,proto3,oneof"`
}

type IPNetwork added in v0.2.0

type IPNetwork struct {
	Ip        *IPAddress `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	PrefixLen uint32     `protobuf:"varint,2,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"`
	// contains filtered or unexported fields
}

func (*IPNetwork) Descriptor deprecated added in v0.2.0

func (*IPNetwork) Descriptor() ([]byte, []int)

Deprecated: Use IPNetwork.ProtoReflect.Descriptor instead.

func (*IPNetwork) GetIp added in v0.2.0

func (x *IPNetwork) GetIp() *IPAddress

func (*IPNetwork) GetPrefixLen added in v0.2.0

func (x *IPNetwork) GetPrefixLen() uint32

func (*IPNetwork) ProtoMessage added in v0.2.0

func (*IPNetwork) ProtoMessage()

func (*IPNetwork) ProtoReflect added in v0.2.0

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

func (*IPNetwork) Reset added in v0.2.0

func (x *IPNetwork) Reset()

func (*IPNetwork) String added in v0.2.0

func (x *IPNetwork) String() string

type IPv6

type IPv6 struct {
	First uint64 `protobuf:"fixed64,1,opt,name=first,proto3" json:"first,omitempty"` // hextets 1-4
	Last  uint64 `protobuf:"fixed64,2,opt,name=last,proto3" json:"last,omitempty"`   // hextets 5-8
	// contains filtered or unexported fields
}

func (*IPv6) Descriptor deprecated

func (*IPv6) Descriptor() ([]byte, []int)

Deprecated: Use IPv6.ProtoReflect.Descriptor instead.

func (*IPv6) GetFirst

func (x *IPv6) GetFirst() uint64

func (*IPv6) GetLast

func (x *IPv6) GetLast() uint64

func (*IPv6) ProtoMessage

func (*IPv6) ProtoMessage()

func (*IPv6) ProtoReflect added in v0.1.13

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

func (*IPv6) Reset

func (x *IPv6) Reset()

func (*IPv6) String

func (x *IPv6) String() string

type TcpAddress

type TcpAddress struct {
	Ip   *IPAddress `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port uint32     `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*TcpAddress) Descriptor deprecated

func (*TcpAddress) Descriptor() ([]byte, []int)

Deprecated: Use TcpAddress.ProtoReflect.Descriptor instead.

func (*TcpAddress) GetIp

func (x *TcpAddress) GetIp() *IPAddress

func (*TcpAddress) GetPort

func (x *TcpAddress) GetPort() uint32

func (*TcpAddress) ProtoMessage

func (*TcpAddress) ProtoMessage()

func (*TcpAddress) ProtoReflect added in v0.1.13

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

func (*TcpAddress) Reset

func (x *TcpAddress) Reset()

func (*TcpAddress) String

func (x *TcpAddress) String() string

Jump to

Keyboard shortcuts

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