Documentation ¶
Index ¶
- Variables
- type Addr
- type Peer
- type Router
- func (*Router) Descriptor() ([]byte, []int)deprecated
- func (x *Router) GetAsn() int32
- func (x *Router) GetLoopback() *Addr
- func (x *Router) GetPeers() []*Peer
- func (x *Router) GetUplinks() []*Uplink
- func (*Router) ProtoMessage()
- func (x *Router) ProtoReflect() protoreflect.Message
- func (x *Router) Reset()
- func (x *Router) String() string
- type Uplink
Constants ¶
This section is empty.
Variables ¶
View Source
var File_model_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Addr ¶
type Addr struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*Addr) Descriptor
deprecated
func (*Addr) ProtoMessage ¶
func (*Addr) ProtoMessage()
func (*Addr) ProtoReflect ¶
func (x *Addr) ProtoReflect() protoreflect.Message
type Peer ¶
type Peer struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Asn int32 `protobuf:"varint,2,opt,name=asn,proto3" json:"asn,omitempty"` // contains filtered or unexported fields }
func (*Peer) Descriptor
deprecated
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) ProtoReflect ¶
func (x *Peer) ProtoReflect() protoreflect.Message
type Router ¶
type Router struct { Uplinks []*Uplink `protobuf:"bytes,1,rep,name=uplinks,proto3" json:"uplinks,omitempty"` Peers []*Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` Asn int32 `protobuf:"varint,3,opt,name=asn,proto3" json:"asn,omitempty"` Loopback *Addr `protobuf:"bytes,4,opt,name=loopback,proto3" json:"loopback,omitempty"` // contains filtered or unexported fields }
func (*Router) Descriptor
deprecated
func (*Router) GetLoopback ¶
func (*Router) GetUplinks ¶
func (*Router) ProtoMessage ¶
func (*Router) ProtoMessage()
func (*Router) ProtoReflect ¶
func (x *Router) ProtoReflect() protoreflect.Message
type Uplink ¶
type Uplink struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` // contains filtered or unexported fields }
func (*Uplink) Descriptor
deprecated
func (*Uplink) ProtoMessage ¶
func (*Uplink) ProtoMessage()
func (*Uplink) ProtoReflect ¶
func (x *Uplink) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.