cloud

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceMap

type DeviceMap map[string]string

func (DeviceMap) Get

func (d DeviceMap) Get(name string) string

type Model

type Model struct {
	ID string `json:"_id"`
}

type Object

type Object struct {
	ID     string `json:"_id"`
	Models struct {
		ID string
	}
	Config struct {
		Devs struct {
			Devs DeviceMap
		}
	}
}

type Service

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

func New

func New(baseURL, token, v string) (Service, error)

func (Service) LoadModel

func (s Service) LoadModel(id string) (m Model, err error)

func (Service) LoadObject

func (s Service) LoadObject(id string) (o Object, err error)

Jump to

Keyboard shortcuts

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