Skip to content

eliona-smart-building-assistant/go-eliona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Eliona

Go Eliona is a part of the Eliona App SDK. It provides a Go library for accessing resources within an Eliona environment.

Installation

To get go-eliona you can use command line:

go get github.com/eliona-smart-building-assistant/go-eliona

or you define import in go files:

import "github.com/eliona-smart-building-assistant/go-eliona"

and run go get without parameters.

Configuration

The API_ENDPOINT variable configures the endpoint to access the Eliona API. If the app runs as a Docker container inside an Eliona environment, the environment must provide this variable. If you run the app standalone you must set this variable. Otherwise, the app can't be initialized and started. The default endpoint is http://api-v2:3000/v2

export API_ENDPOINT=http://api-v2:3000/v2

The API_TOKEN defines the secret to authenticate the app and access the API.

Usage

  • App functions for apps and patches
  • Asset asset and asset type management
  • Dashboard functions for dashboards
  • Frontend functions for frontend