Documentation
¶
Index ¶
- Variables
- func AsNetips(pb []*AddrPort) []netip.AddrPort
- type Addr
- type AddrPort
- func (a *AddrPort) AsNetip() netip.AddrPort
- func (*AddrPort) Descriptor() ([]byte, []int)deprecated
- func (x *AddrPort) GetAddr() *Addr
- func (x *AddrPort) GetPort() uint32
- func (*AddrPort) ProtoMessage()
- func (x *AddrPort) ProtoReflect() protoreflect.Message
- func (x *AddrPort) Reset()
- func (x *AddrPort) String() string
- type Endpoint
- type HostPort
- type Role
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Role_name = map[int32]string{ 0: "RoleUnknown", 1: "RoleDestination", 2: "RoleSource", } Role_value = map[string]int32{ "RoleUnknown": 0, "RoleDestination": 1, "RoleSource": 2, } )
Enum value maps for Role.
View Source
var File_model_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Addr ¶
type Addr struct { V4 []byte `protobuf:"bytes,1,opt,name=v4,proto3" json:"v4,omitempty"` V6 []byte `protobuf:"bytes,2,opt,name=v6,proto3" json:"v6,omitempty"` // contains filtered or unexported fields }
func AddrFromNetip ¶
func (*Addr) Descriptor
deprecated
func (*Addr) ProtoMessage ¶
func (*Addr) ProtoMessage()
func (*Addr) ProtoReflect ¶
func (x *Addr) ProtoReflect() protoreflect.Message
type AddrPort ¶
type AddrPort struct { Addr *Addr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // really uint16, but not a thing in protobuf // contains filtered or unexported fields }
func AddrPortFromNetip ¶
func AsAddrPorts ¶
func (*AddrPort) Descriptor
deprecated
func (*AddrPort) ProtoMessage ¶
func (*AddrPort) ProtoMessage()
func (*AddrPort) ProtoReflect ¶
func (x *AddrPort) ProtoReflect() protoreflect.Message
type Endpoint ¶ added in v0.9.0
type Endpoint struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Endpoint) Descriptor
deprecated
added in
v0.9.0
func (*Endpoint) ProtoMessage ¶ added in v0.9.0
func (*Endpoint) ProtoMessage()
func (*Endpoint) ProtoReflect ¶ added in v0.9.0
func (x *Endpoint) ProtoReflect() protoreflect.Message
type HostPort ¶
type HostPort struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*HostPort) Descriptor
deprecated
func (*HostPort) ProtoMessage ¶
func (*HostPort) ProtoMessage()
func (*HostPort) ProtoReflect ¶
func (x *HostPort) ProtoReflect() protoreflect.Message
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.