cloud

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionConfig added in v0.2.0

type ActionConfig struct {
	ID        string
	Connector string
	Type      string
	Interval  string
	Payload   []byte
}

type Children added in v0.2.0

type Children struct {
	ID       string
	Name     string
	Type     string
	DataType string
	Active   bool
	Edge     struct {
		Read struct {
			Type     string
			Command  string
			Interval string
			Expr     string
		}
		Write struct {
			Expr string
		}
	}
	Command  string
	Params   map[string]interface{}
	Children []Children
}

type Model

type Model struct {
	ID   string `json:"_id"`
	Data struct {
		Children []Children
	}
	// contains filtered or unexported fields
}

func (Model) Actions added in v0.2.0

func (m Model) Actions() map[string]ActionConfig

func (Model) Expressions added in v0.6.6

func (m Model) Expressions() map[string]string

type Object

type Object struct {
	OID    string `json:"_id"`
	ID     string
	Models struct {
		ID string
	}
	Config objx.Map
}

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