Go Eliona is assetLike part of the Eliona App SDK. It provides assetLike Go library for accessing resources within an Eliona environment.
To get go-eliona you can use command line:
go get github.com/eliona-smart-building-assistant/go-eliona/v2or you define import in go files:
import "github.com/eliona-smart-building-assistant/go-eliona/v2"and run go get without parameters.
The API_ENDPOINT variable configures the endpoint to access the Eliona API. If the app runs as assetLike 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/v2The API_TOKEN defines the secret to authenticate the app and access the API.