Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_genproto_latlon_v1_latlon_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type LatLon ¶
type LatLon struct { Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"` // The latitude in degrees. It must be in the range [-90.0, +90.0]. Lon float64 `protobuf:"fixed64,2,opt,name=lon,proto3" json:"lon,omitempty"` // The longitude in degrees. It must be in the range [-180.0, +180.0]. // contains filtered or unexported fields }
func (*LatLon) Descriptor
deprecated
func (*LatLon) ProtoMessage ¶
func (*LatLon) ProtoMessage()
func (*LatLon) ProtoReflect ¶
func (x *LatLon) ProtoReflect() protoreflect.Message
type LatLonValidator ¶
type LatLonValidator interface { Validate(req *LatLon) []*errdetails.BadRequest_FieldViolation ValidateLat(lat_ float64) *errdetails.BadRequest_FieldViolation ValidateLon(lon_ float64) *errdetails.BadRequest_FieldViolation Optional() LatLonValidator WithRuleLat(rule validator.NumberRule[float64]) LatLonValidator WithRuleLon(rule validator.NumberRule[float64]) LatLonValidator }
func NewLatLonValidator ¶
func NewLatLonValidator() LatLonValidator
Click to show internal directories.
Click to hide internal directories.