|
|
|
|
@ -918,6 +918,8 @@ func (v *DERPRegionView) UnmarshalJSON(b []byte) error { |
|
|
|
|
func (v DERPRegionView) RegionID() int { return v.ж.RegionID } |
|
|
|
|
func (v DERPRegionView) RegionCode() string { return v.ж.RegionCode } |
|
|
|
|
func (v DERPRegionView) RegionName() string { return v.ж.RegionName } |
|
|
|
|
func (v DERPRegionView) Latitude() float64 { return v.ж.Latitude } |
|
|
|
|
func (v DERPRegionView) Longitude() float64 { return v.ж.Longitude } |
|
|
|
|
func (v DERPRegionView) Avoid() bool { return v.ж.Avoid } |
|
|
|
|
func (v DERPRegionView) Nodes() views.SliceView[*DERPNode, DERPNodeView] { |
|
|
|
|
return views.SliceOfViews[*DERPNode, DERPNodeView](v.ж.Nodes) |
|
|
|
|
@ -928,6 +930,8 @@ var _DERPRegionViewNeedsRegeneration = DERPRegion(struct { |
|
|
|
|
RegionID int |
|
|
|
|
RegionCode string |
|
|
|
|
RegionName string |
|
|
|
|
Latitude float64 |
|
|
|
|
Longitude float64 |
|
|
|
|
Avoid bool |
|
|
|
|
Nodes []*DERPNode |
|
|
|
|
}{}) |
|
|
|
|
@ -1374,6 +1378,8 @@ func (v LocationView) Country() string { return v.ж.Country } |
|
|
|
|
func (v LocationView) CountryCode() string { return v.ж.CountryCode } |
|
|
|
|
func (v LocationView) City() string { return v.ж.City } |
|
|
|
|
func (v LocationView) CityCode() string { return v.ж.CityCode } |
|
|
|
|
func (v LocationView) Latitude() float64 { return v.ж.Latitude } |
|
|
|
|
func (v LocationView) Longitude() float64 { return v.ж.Longitude } |
|
|
|
|
func (v LocationView) Priority() int { return v.ж.Priority } |
|
|
|
|
|
|
|
|
|
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
|
|
|
|
|
@ -1382,6 +1388,8 @@ var _LocationViewNeedsRegeneration = Location(struct { |
|
|
|
|
CountryCode string |
|
|
|
|
City string |
|
|
|
|
CityCode string |
|
|
|
|
Latitude float64 |
|
|
|
|
Longitude float64 |
|
|
|
|
Priority int |
|
|
|
|
}{}) |
|
|
|
|
|
|
|
|
|
|