ipv1

package
v1.36.11-2024102212432... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const IP_Addr_not_set_case case_IP_Addr = 0
View Source
const IP_V4_case case_IP_Addr = 1
View Source
const IP_V6_case case_IP_Addr = 2

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) ClearAddr

func (x *AddrPort) ClearAddr()

func (*AddrPort) GetAddr

func (x *AddrPort) GetAddr() *IP

func (*AddrPort) GetPort

func (x *AddrPort) GetPort() uint32

func (*AddrPort) HasAddr

func (x *AddrPort) HasAddr() bool

func (*AddrPort) ProtoMessage

func (*AddrPort) ProtoMessage()

func (*AddrPort) ProtoReflect

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

func (*AddrPort) Reset

func (x *AddrPort) Reset()

func (*AddrPort) SetAddr

func (x *AddrPort) SetAddr(v *IP)

func (*AddrPort) SetPort

func (x *AddrPort) SetPort(v uint32)

func (*AddrPort) String

func (x *AddrPort) String() string

type AddrPort_builder

type AddrPort_builder struct {
	Addr *IP
	Port uint32
	// contains filtered or unexported fields
}

func (AddrPort_builder) Build

func (b0 AddrPort_builder) Build() *AddrPort

type IP

type IP struct {

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

func (*IP) ClearAddr

func (x *IP) ClearAddr()

func (*IP) ClearV4

func (x *IP) ClearV4()

func (*IP) ClearV6

func (x *IP) ClearV6()

func (*IP) GetAddr

func (x *IP) GetAddr() isIP_Addr

func (*IP) GetV4

func (x *IP) GetV4() *IPv4

func (*IP) GetV6

func (x *IP) GetV6() *IPv6

func (*IP) HasAddr

func (x *IP) HasAddr() bool

func (*IP) HasV4

func (x *IP) HasV4() bool

func (*IP) HasV6

func (x *IP) HasV6() bool

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) ProtoReflect

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

func (*IP) Reset

func (x *IP) Reset()

func (*IP) SetV4

func (x *IP) SetV4(v *IPv4)

func (*IP) SetV6

func (x *IP) SetV6(v *IPv6)

func (*IP) String

func (x *IP) String() string

func (*IP) WhichAddr

func (x *IP) WhichAddr() case_IP_Addr

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 IP_builder

type IP_builder struct {

	// Fields of oneof Addr:
	V4 *IPv4
	V6 *IPv6
	// contains filtered or unexported fields
}

func (IP_builder) Build

func (b0 IP_builder) Build() *IP

type IPv4

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

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) SetIp

func (x *IPv4) SetIp(v uint32)

func (*IPv4) String

func (x *IPv4) String() string

type IPv4_builder

type IPv4_builder struct {
	Ip uint32
	// contains filtered or unexported fields
}

func (IPv4_builder) Build

func (b0 IPv4_builder) Build() *IPv4

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) 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) SetHi

func (x *IPv6) SetHi(v uint64)

func (*IPv6) SetLo

func (x *IPv6) SetLo(v uint64)

func (*IPv6) String

func (x *IPv6) String() string

type IPv6_builder

type IPv6_builder struct {
	Hi uint64
	Lo uint64
	// contains filtered or unexported fields
}

func (IPv6_builder) Build

func (b0 IPv6_builder) Build() *IPv6

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) ClearAddr

func (x *Prefix) ClearAddr()

func (*Prefix) GetAddr

func (x *Prefix) GetAddr() *IP

func (*Prefix) GetBits

func (x *Prefix) GetBits() int32

func (*Prefix) HasAddr

func (x *Prefix) HasAddr() bool

func (*Prefix) ProtoMessage

func (*Prefix) ProtoMessage()

func (*Prefix) ProtoReflect

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

func (*Prefix) Reset

func (x *Prefix) Reset()

func (*Prefix) SetAddr

func (x *Prefix) SetAddr(v *IP)

func (*Prefix) SetBits

func (x *Prefix) SetBits(v int32)

func (*Prefix) String

func (x *Prefix) String() string

type Prefix_builder

type Prefix_builder struct {
	Addr *IP
	Bits int32
	// contains filtered or unexported fields
}

func (Prefix_builder) Build

func (b0 Prefix_builder) Build() *Prefix

Source Files

  • ip.pb.go

Jump to

Keyboard shortcuts

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