Skip to content

Service to store static grid data like CGMES for other SOGNO services

License

Notifications You must be signed in to change notification settings

sogno-platform/sogno-file-service

SOGNO file-service

This service stores static grid data, like CIM CGMES network descriptions, for other SOGNO services.

Development

Compiling

$ go mod tidy
$ go build

Docker build / run

The docker build uses the file "minio.config" to store the s3 details. You will need to make sure this matches your setup.

$ docker build -t sogno-file-service .
$ docker run -p 8080:8080 sogno-file-service

Generating OpenAPI docs

# Ensure your Go bin directory is on your path (default: ~/go/bin)
swag init

Configuring

# For example:
mkdir -p ~/.config/sogno-file-service
echo '{"minio_endpoint": "s3.amazonaws.com", "minio_bucket": "'$SOGNO_FILE_SERVICE_BUCKET'"}' > ~/.config/sogno-file-service/config.json

Running

go run main.go

Documentation

Visit localhost:8080 in your web browser to view the HTML version of the API documentation. You can also view docs/swagger.yaml in the repo.

Testing

Currently, the only tests are integration tests and they require a running S3-compatible object storage server.

go test

About

Service to store static grid data like CGMES for other SOGNO services

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published