Documentation ¶
Index ¶
- Variables
- func ErrorWrap(msg string, err error) error
- func ErrorWrapSuffix(msg string, err error, suffix string) error
- func FeedVersion(v *string) string
- func ValidateAlertType(v *string) bool
- func ValidateDay(v string) bool
- func ValidateFeedName(v string) bool
- func ValidateFormFactor(v *string) bool
- func ValidatePropulsionType(v *string) bool
- func ValidateRentalMethod(v string) bool
- func ValidateUserType(v string) bool
- func ValidateVersion(v string) bool
- type Result
- func ValidateFeedCommon(f gbfs.Feed, version string) *Result
- func ValidateFeedFreeBikeStatus(f *gbfs.FeedFreeBikeStatus, version string) *Result
- func ValidateFeedGbfs(f *gbfs.FeedGbfs, version string) *Result
- func ValidateFeedGbfsVersions(f *gbfs.FeedGbfsVersions, version string) *Result
- func ValidateFeedGeofencingZones(f *gbfs.FeedGeofencingZones, version string) *Result
- func ValidateFeedStationInformation(f *gbfs.FeedStationInformation, version string) *Result
- func ValidateFeedStationStatus(f *gbfs.FeedStationStatus, version string) *Result
- func ValidateFeedSystemAlerts(f *gbfs.FeedSystemAlerts, version string) *Result
- func ValidateFeedSystemCalendar(f *gbfs.FeedSystemCalendar, version string) *Result
- func ValidateFeedSystemHours(f *gbfs.FeedSystemHours, version string) *Result
- func ValidateFeedSystemInformation(f *gbfs.FeedSystemInformation, version string) *Result
- func ValidateFeedSystemPricingPlans(f *gbfs.FeedSystemPricingPlans, version string) *Result
- func ValidateFeedSystemRegions(f *gbfs.FeedSystemRegions, version string) *Result
- func ValidateFeedVehicleTypes(f *gbfs.FeedVehicleTypes, version string) *Result
- func (r *Result) Error(e error) *Result
- func (r *Result) ErrorW(m string, e error) *Result
- func (r *Result) ErrorWS(m string, e error, s string) *Result
- func (r *Result) ErrorWSP(m string, e error, s string) *Result
- func (r *Result) HasErrors() bool
- func (r *Result) HasInfos() bool
- func (r *Result) HasWarnings() bool
- func (r *Result) Info(e error) *Result
- func (r *Result) InfoW(m string, e error) *Result
- func (r *Result) InfoWS(m string, e error, s string) *Result
- func (r *Result) InfoWSP(m string, e error, s string) *Result
- func (r *Result) InfoWV(m string, e error, s string) *Result
- func (r *Result) Warning(e error) *Result
- func (r *Result) WarningW(m string, e error) *Result
- func (r *Result) WarningWS(m string, e error, s string) *Result
- func (r *Result) WarningWSP(m string, e error, s string) *Result
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidInput = errors.New("invalid input") ErrInconsistent = errors.New("inconsistent") ErrRequired = errors.New("required") ErrConflict = errors.New("conflict") ErrEmptyValue = errors.New("empty value") ErrInvalidType = errors.New("invalid type") ErrInvalidValue = errors.New("invalid value") ErrOutOfRange = errors.New("out of range") ErrAvailableFromVersion = errors.New("officially available from version") ErrZeroCoordinates = errors.New("zero coordinates") )
Functions ¶
func ErrorWrapSuffix ¶
ErrorWrapSuffix Wrap error
func ValidatePropulsionType ¶
ValidatePropulsionType ...
Types ¶
type Result ¶
type Result struct { Language string `json:"language,omitempty"` URL string `json:"url,omitempty"` Feed gbfs.Feed `json:"feed,omitempty"` Infos []error `json:"infos,omitempty"` Warnings []error `json:"warnings,omitempty"` Errors []error `json:"errors,omitempty"` }
Result ...
func ValidateFeedCommon ¶
ValidateFeedCommon ...
func ValidateFeedFreeBikeStatus ¶
func ValidateFeedFreeBikeStatus(f *gbfs.FeedFreeBikeStatus, version string) *Result
ValidateFeedFreeBikeStatus ...
func ValidateFeedGbfs ¶
ValidateFeedGbfs ...
func ValidateFeedGbfsVersions ¶
func ValidateFeedGbfsVersions(f *gbfs.FeedGbfsVersions, version string) *Result
ValidateFeedGbfsVersions ...
func ValidateFeedGeofencingZones ¶
func ValidateFeedGeofencingZones(f *gbfs.FeedGeofencingZones, version string) *Result
ValidateFeedGeofencingZones ...
func ValidateFeedStationInformation ¶
func ValidateFeedStationInformation(f *gbfs.FeedStationInformation, version string) *Result
ValidateFeedStationInformation ...
func ValidateFeedStationStatus ¶
func ValidateFeedStationStatus(f *gbfs.FeedStationStatus, version string) *Result
ValidateFeedStationStatus ...
func ValidateFeedSystemAlerts ¶
func ValidateFeedSystemAlerts(f *gbfs.FeedSystemAlerts, version string) *Result
ValidateFeedSystemAlerts ...
func ValidateFeedSystemCalendar ¶
func ValidateFeedSystemCalendar(f *gbfs.FeedSystemCalendar, version string) *Result
ValidateFeedSystemCalendar ...
func ValidateFeedSystemHours ¶
func ValidateFeedSystemHours(f *gbfs.FeedSystemHours, version string) *Result
ValidateFeedSystemHours ...
func ValidateFeedSystemInformation ¶
func ValidateFeedSystemInformation(f *gbfs.FeedSystemInformation, version string) *Result
ValidateFeedSystemInformation ...
func ValidateFeedSystemPricingPlans ¶
func ValidateFeedSystemPricingPlans(f *gbfs.FeedSystemPricingPlans, version string) *Result
ValidateFeedSystemPricingPlans ...
func ValidateFeedSystemRegions ¶
func ValidateFeedSystemRegions(f *gbfs.FeedSystemRegions, version string) *Result
ValidateFeedSystemRegions ...
func ValidateFeedVehicleTypes ¶
func ValidateFeedVehicleTypes(f *gbfs.FeedVehicleTypes, version string) *Result
ValidateFeedVehicleTypes ...
Source Files ¶
- validator.go
- validator_common.go
- validator_feed_common.go
- validator_feed_free_bike_status.go
- validator_feed_gbfs.go
- validator_feed_gbfs_versions.go
- validator_feed_geofencing_zones.go
- validator_feed_station_information.go
- validator_feed_station_status.go
- validator_feed_system_alerts.go
- validator_feed_system_calendar.go
- validator_feed_system_hours.go
- validator_feed_system_information.go
- validator_feed_system_pricing_plans.go
- validator_feed_system_regions.go
- validator_feed_vehicle_types.go
Click to show internal directories.
Click to hide internal directories.