ip

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ip_v1_ip_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddrPort

type AddrPort struct {
	Addr *IP    `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*AddrPort) Descriptor deprecated

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

Deprecated: Use AddrPort.ProtoReflect.Descriptor instead.

func (*AddrPort) GetAddr

func (x *AddrPort) GetAddr() *IP

func (*AddrPort) GetPort

func (x *AddrPort) GetPort() uint32

func (*AddrPort) MarshalBinary

func (x *AddrPort) MarshalBinary() (data []byte, err error)

func (*AddrPort) MarshalText

func (x *AddrPort) MarshalText() ([]byte, error)

func (*AddrPort) NetAddrPort

func (x *AddrPort) NetAddrPort() netip.AddrPort

func (*AddrPort) ProtoMessage

func (*AddrPort) ProtoMessage()

func (*AddrPort) ProtoReflect

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

func (*AddrPort) Reset

func (x *AddrPort) Reset()

func (*AddrPort) Scan

func (x *AddrPort) Scan(src any) error

func (*AddrPort) SetAddrPort

func (x *AddrPort) SetAddrPort(ap netip.AddrPort)

func (*AddrPort) String

func (x *AddrPort) String() string

func (*AddrPort) UnmarshalBinary

func (x *AddrPort) UnmarshalBinary(data []byte) error

func (*AddrPort) UnmarshalText

func (x *AddrPort) UnmarshalText(text []byte) error

func (*AddrPort) Value

func (x *AddrPort) Value() (driver.Value, error)

type IP

type IP struct {

	// Types that are assignable to Addr:
	//
	//	*IP_V4
	//	*IP_V6
	Addr isIP_Addr `protobuf_oneof:"addr"`
	// contains filtered or unexported fields
}

func (*IP) Descriptor deprecated

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

Deprecated: Use IP.ProtoReflect.Descriptor instead.

func (*IP) GetAddr

func (m *IP) GetAddr() isIP_Addr

func (*IP) GetV4

func (x *IP) GetV4() *IPv4

func (*IP) GetV6

func (x *IP) GetV6() *IPv6

func (*IP) IsIPv4

func (x *IP) IsIPv4() bool

func (*IP) IsIPv6

func (x *IP) IsIPv6() bool

func (*IP) MarshalBinary

func (x *IP) MarshalBinary() (data []byte, err error)

func (*IP) MarshalText

func (x *IP) MarshalText() ([]byte, error)

func (*IP) NetIP

func (x *IP) NetIP() netip.Addr

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) ProtoReflect

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

func (*IP) Reset

func (x *IP) Reset()

func (*IP) Scan

func (x *IP) Scan(src any) error

func (*IP) SetIP

func (x *IP) SetIP(ip netip.Addr)

func (*IP) String

func (x *IP) String() string

func (*IP) UnmarshalBinary

func (x *IP) UnmarshalBinary(data []byte) error

func (*IP) UnmarshalText

func (x *IP) UnmarshalText(text []byte) error

func (*IP) Value

func (x *IP) Value() (driver.Value, error)

type IP_V4

type IP_V4 struct {
	V4 *IPv4 `protobuf:"bytes,1,opt,name=v4,proto3,oneof"`
}

type IP_V6

type IP_V6 struct {
	V6 *IPv6 `protobuf:"bytes,2,opt,name=v6,proto3,oneof"`
}

type IPv4

type IPv4 struct {
	Ip uint32 `protobuf:"fixed32,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*IPv4) Descriptor deprecated

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

Deprecated: Use IPv4.ProtoReflect.Descriptor instead.

func (*IPv4) GetIp

func (x *IPv4) GetIp() uint32

func (*IPv4) ProtoMessage

func (*IPv4) ProtoMessage()

func (*IPv4) ProtoReflect

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

func (*IPv4) Reset

func (x *IPv4) Reset()

func (*IPv4) String

func (x *IPv4) String() string

type IPv6

type IPv6 struct {
	Hi uint64 `protobuf:"fixed64,1,opt,name=hi,proto3" json:"hi,omitempty"`
	Lo uint64 `protobuf:"fixed64,2,opt,name=lo,proto3" json:"lo,omitempty"`
	// contains filtered or unexported fields
}

func (*IPv6) Descriptor deprecated

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

Deprecated: Use IPv6.ProtoReflect.Descriptor instead.

func (*IPv6) GetHi

func (x *IPv6) GetHi() uint64

func (*IPv6) GetLo

func (x *IPv6) GetLo() uint64

func (*IPv6) ProtoMessage

func (*IPv6) ProtoMessage()

func (*IPv6) ProtoReflect

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

func (*IPv6) Reset

func (x *IPv6) Reset()

func (*IPv6) String

func (x *IPv6) String() string

type Prefix

type Prefix struct {
	Addr *IP   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Bits int32 `protobuf:"varint,2,opt,name=bits,proto3" json:"bits,omitempty"`
	// contains filtered or unexported fields
}

func (*Prefix) Descriptor deprecated

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

Deprecated: Use Prefix.ProtoReflect.Descriptor instead.

func (*Prefix) GetAddr

func (x *Prefix) GetAddr() *IP

func (*Prefix) GetBits

func (x *Prefix) GetBits() int32

func (*Prefix) NetPrefix

func (x *Prefix) NetPrefix() netip.Prefix

func (*Prefix) ProtoMessage

func (*Prefix) ProtoMessage()

func (*Prefix) ProtoReflect

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

func (*Prefix) Reset

func (x *Prefix) Reset()

func (*Prefix) SetPrefix

func (x *Prefix) SetPrefix(p netip.Prefix)

func (*Prefix) String

func (x *Prefix) String() string

Jump to

Keyboard shortcuts

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