-
Notifications
You must be signed in to change notification settings - Fork 16
/
location.go
45 lines (39 loc) · 892 Bytes
/
location.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package store
import "golang.org/x/net/context"
type GeoLocation struct {
Latitude string
Longitude string
}
type Connector struct {
Format string
Id string
MaxAmperage int32
MaxVoltage int32
PowerType string
Standard string
LastUpdated string
}
type Evse struct {
Connectors []Connector
EvseId *string
Status string
Uid string
LastUpdated string
}
type Location struct {
Address string
City string
Coordinates GeoLocation
Country string
Evses *[]Evse
Id string
LastUpdated string
Name string
ParkingType string
PostalCode string
}
type LocationStore interface {
SetLocation(ctx context.Context, location *Location) error
LookupLocation(ctx context.Context, locationId string) (*Location, error)
ListLocations(context context.Context, offset int, limit int) ([]*Location, error)
}