mynavigation

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL