aosrestapi

package
v0.0.0-...-3667945 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AosServerApi

type AosServerApi struct {
	Address  string
	Port     int
	User     string
	Password string
	Protocol string

	Token string

	sync.RWMutex      // following fields are protected by this lock
	Blueprints        map[string]aosBlueprint
	Systems           map[string]aosSystem
	StreamingSessions []string
}

func NewAosServerApi

func NewAosServerApi(address string, port int, user string, password string, protocol string) *AosServerApi

func (*AosServerApi) GetBlueprintById

func (api *AosServerApi) GetBlueprintById(blueprintId string) *aosBlueprint

func (*AosServerApi) GetBlueprints

func (api *AosServerApi) GetBlueprints() error

func (*AosServerApi) GetSystemByKey

func (api *AosServerApi) GetSystemByKey(deviceKey string) *aosSystem

func (*AosServerApi) GetSystems

func (api *AosServerApi) GetSystems() error

func (*AosServerApi) GetSystemsInBlueprint

func (api *AosServerApi) GetSystemsInBlueprint(blueprintId string) (*aosBlueprintSystemNodeList, error)

func (*AosServerApi) Login

func (api *AosServerApi) Login() (err error)

func (*AosServerApi) StartStreaming

func (api *AosServerApi) StartStreaming(streamingType string, address string, port int) error

func (*AosServerApi) StopStreaming

func (api *AosServerApi) StopStreaming() error

type AosToken

type AosToken struct {
	Token string
}

Jump to

Keyboard shortcuts

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