kamereon

package
v0.0.0-...-e6e1b3f Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API is a kamereon API implementation

func New

func New(apiG func() (interface{}, error)) *API

New returns a kamereon API implementation

func (*API) FinishTime

func (v *API) FinishTime() (time.Time, error)

FinishTime implements the api.VehicleFinishTimer interface

func (*API) Range

func (v *API) Range() (int64, error)

Range implements the api.VehicleRange interface

func (*API) SoC

func (v *API) SoC() (float64, error)

SoC implements the api.Vehicle interface

func (*API) Status

func (v *API) Status() (api.ChargeStatus, error)

Status implements the api.ChargeState interface

type Response

type Response struct {
	Data data `json:"data"`
}

Response structure for kamereon api

Jump to

Keyboard shortcuts

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