Go Eliona is a part of the Eliona App SDK. It provides a 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
or you define import in go files:
import "github.com/eliona-smart-building-assistant/go-eliona"
and run go get
without parameters.
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.