Documentation ¶
Index ¶
- Variables
- type IP
- func (*IP) Descriptor() ([]byte, []int)
- func (m *IP) GetHigher() uint64
- func (m *IP) GetLower() uint64
- func (m *IP) GetVersion() IP_Version
- func (*IP) ProtoMessage()
- func (m *IP) Reset()
- func (m *IP) String() string
- func (m *IP) XXX_DiscardUnknown()
- func (m *IP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IP) XXX_Merge(src proto.Message)
- func (m *IP) XXX_Size() int
- func (m *IP) XXX_Unmarshal(b []byte) error
- type IP_Version
- type Prefix
- func (*Prefix) Descriptor() ([]byte, []int)
- func (m *Prefix) GetAddress() *IP
- func (m *Prefix) GetPfxlen() uint32
- func (*Prefix) ProtoMessage()
- func (m *Prefix) Reset()
- func (m *Prefix) String() string
- func (m *Prefix) XXX_DiscardUnknown()
- func (m *Prefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Prefix) XXX_Merge(src proto.Message)
- func (m *Prefix) XXX_Size() int
- func (m *Prefix) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var IP_Version_name = map[int32]string{
0: "IPv4",
1: "IPv6",
}
View Source
var IP_Version_value = map[string]int32{
"IPv4": 0,
"IPv6": 1,
}
Functions ¶
This section is empty.
Types ¶
type IP ¶
type IP struct { Higher uint64 `protobuf:"varint,1,opt,name=higher,proto3" json:"higher,omitempty"` Lower uint64 `protobuf:"varint,2,opt,name=lower,proto3" json:"lower,omitempty"` Version IP_Version `protobuf:"varint,3,opt,name=version,proto3,enum=bio.net.IP_Version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IP) Descriptor ¶
func (*IP) GetVersion ¶
func (m *IP) GetVersion() IP_Version
func (*IP) ProtoMessage ¶
func (*IP) ProtoMessage()
func (*IP) XXX_DiscardUnknown ¶
func (m *IP) XXX_DiscardUnknown()
func (*IP) XXX_Unmarshal ¶
type IP_Version ¶
type IP_Version int32
const ( IP_IPv4 IP_Version = 0 IP_IPv6 IP_Version = 1 )
func (IP_Version) EnumDescriptor ¶
func (IP_Version) EnumDescriptor() ([]byte, []int)
func (IP_Version) String ¶
func (x IP_Version) String() string
type Prefix ¶
type Prefix struct { Address *IP `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Pfxlen uint32 `protobuf:"varint,2,opt,name=pfxlen,proto3" json:"pfxlen,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Prefix) Descriptor ¶
func (*Prefix) GetAddress ¶
func (*Prefix) ProtoMessage ¶
func (*Prefix) ProtoMessage()
func (*Prefix) XXX_DiscardUnknown ¶
func (m *Prefix) XXX_DiscardUnknown()
func (*Prefix) XXX_Marshal ¶
func (*Prefix) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.