Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface struct { ID uint CreatedAt time.Time UpdatedAt time.Time WBRID uint Name string IPAddress string Type string GreKey *string LlInterfaceName *string TTL *uint32 }
Interface is the gorm compatible version of InterfaceRsrc from above
func InterfaceRsrcToGORM ¶
func InterfaceRsrcToGORM(iface InterfaceRsrc) *Interface
InterfaceRsrcToGORM ...
type InterfaceRsrc ¶
type InterfaceRsrc struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` GreKey *google_protobuf1.StringValue `protobuf:"bytes,4,opt,name=gre_key,json=greKey" json:"gre_key,omitempty"` LlInterfaceName *google_protobuf1.StringValue `protobuf:"bytes,5,opt,name=ll_interface_name,json=llInterfaceName" json:"ll_interface_name,omitempty"` Ttl *google_protobuf1.UInt32Value `protobuf:"bytes,6,opt,name=ttl" json:"ttl,omitempty"` }
InterfaceRsrc pulled from a protobuf generated file
type WBR ¶
type WBR struct { ID uint32 CreatedAt time.Time UpdatedAt time.Time OphID string Name string SerialNumber string Location string BgpPassword *string BgpAsn *uint32 AggregateRoute *string Network *string Description string Interfaces []Interface }
WBR is the gorm compatible version of WBRRsrc from above
type WBRRsrc ¶
type WBRRsrc struct { Id uint32 `protobuf:"varint,11,opt,name=id" json:"id,omitempty"` OphId string `protobuf:"bytes,1,opt,name=oph_id,json=ophId" json:"oph_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` SerialNumber string `protobuf:"bytes,3,opt,name=serial_number,json=serialNumber" json:"serial_number,omitempty"` Location string `protobuf:"bytes,4,opt,name=location" json:"location,omitempty"` BgpPassword *google_protobuf1.StringValue `protobuf:"bytes,5,opt,name=bgp_password,json=bgpPassword" json:"bgp_password,omitempty"` BgpAsn *google_protobuf1.UInt32Value `protobuf:"bytes,6,opt,name=bgp_asn,json=bgpAsn" json:"bgp_asn,omitempty"` AggregateRoute *google_protobuf1.StringValue `protobuf:"bytes,7,opt,name=aggregate_route,json=aggregateRoute" json:"aggregate_route,omitempty"` Network *google_protobuf1.StringValue `protobuf:"bytes,8,opt,name=network" json:"network,omitempty"` Description string `protobuf:"bytes,9,opt,name=description" json:"description,omitempty"` Interfaces []*InterfaceRsrc `protobuf:"bytes,10,rep,name=interfaces" json:"interfaces,omitempty"` }
WBRRsrc pulled from a protobuf generated file
type WBRWithBloat ¶
type WBRWithBloat struct { ID uint32 CreatedAt time.Time UpdatedAt time.Time Name string SerialNumber string Location string BgpPassword *string BgpAsn *uint32 AggregateRoute *string Network *string Description string Interfaces []Interface Bloat1 string Bloat2 string Bloat3 string Bloat4 string Bloat5 string Bloat6 string Bloat7 string Bloat8 string Bloat9 string Bloat10 string Bloat11 string Bloat12 string OphID string }
WBRWithBloat also has a number of unused fields before the last case mismatch
Click to show internal directories.
Click to hide internal directories.