Documentation ¶
Overview ¶
Package mynavigation contains an example navigation service that only stores waypoints, and returns a fixed, configurable location.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Model = resource.NewModel("acme", "demo", "mynavigation")
Model is the full model definition.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.10.0
type Config struct { Lat *float64 `json:"lat,omitempty"` // omitempty for a pointer to a float64 defaults to nil in golang Long *float64 `json:"long,omitempty"` // Embed TriviallyValidateConfig to make config validation a no-op. We will not check if any attributes exist // or are set to anything in particular, and there will be no implicit dependencies. // Config structs used in resource registration must implement Validate. resource.TriviallyValidateConfig }
Config is the navigation model's config.
Click to show internal directories.
Click to hide internal directories.