model

package
v0.0.0-...-4d74943 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 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 Connector

type Connector struct {
	ID     string
	Name   string
	Speed  string
	Status string
}

func NewConnector

func NewConnector(id string) *Connector

func (Connector) String

func (connector Connector) String() string

type Device

type Device struct {
	ID     string
	Status string

	StatusHistory []Status
	Connectors    []Connector
	// contains filtered or unexported fields
}

func NewDevice

func NewDevice(id string) *Device

func (Device) LastHistoryStatus

func (device Device) LastHistoryStatus() string

func (Device) String

func (device Device) String() string

type Location

type Location struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

Location indicates coordinates.

func (Location) String

func (location Location) String() string

type Station

type Station struct {
	ID               string
	Name             string
	NetworkName      string
	FormattedAddress string
	PostCode         string
	Location         Location
	Devices          []*Device
	DistanceInKm     float64
}

func NewStation

func NewStation(id string) *Station

func (Station) String

func (station Station) String() string

type Status

type Status struct {
	Description string
	Date        time.Time
	DateTitle   string
}

func (Status) String

func (status Status) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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