Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { GetVehicles() []api.Vehicle Acquire(api.Vehicle) Release(api.Vehicle) IdentifyVehicleByStatus() api.Vehicle GetVehicleIndex(api.Vehicle) int }
API is the coordinator API
func NewAdapter ¶
func NewAdapter(lp loadpoint.API, c *Coordinator) API
NewAdapter exposes the coordinator for a given loadpoint. Using an adapter simplifies the method signatures seen from the loadpoint.
type Coordinator ¶
type Coordinator struct {
// contains filtered or unexported fields
}
Coordinator coordinates vehicle access between loadpoints
func New ¶
func New(log *util.Logger, vehicles []api.Vehicle) *Coordinator
New creates a coordinator for a set of vehicles
func (*Coordinator) GetVehicles ¶
func (c *Coordinator) GetVehicles() []api.Vehicle
GetVehicles returns the list of all vehicles
Click to show internal directories.
Click to hide internal directories.