Provides services to hwsc-frontend from the cluster
The proto file and compiled proto buffers are located in hwsc-api-blocks.
- Gets the current status of the application gateway
- Creates a user
- Returns the user with password field set to empty string
- Deletes a user
- Returns the deleted user (TODO decide if we really need to return this to chrome)
- Updates a user
- Returns the updated user
- Looks through users and perform email and password match
- Returns matched user
- Retrieves all the users
- Returns a collection of users
- Retrieves a user given UUID
- Returns found user
- Shares a user's document to another user
- Creates a document
- Returns the document
- Retrieves all documents for a specific user with the given UUID
- Returns a collection of documents
- (completely) Updates a document using DUID
- Returns the updated document
- Deletes a document using DUID
- Returns the deleted document
- Adds a new file
- Returns the updated document
- Deletes a a file
- Returns the updated document
- Retrieves all the unique fields values required for the front-end drop-down filter
- Returns the query transaction
- Queries the document service with the given query parameters
- Returns a collection of documents
- GoLang version go 1.12
- Go Source Code Linter golint
- Docker
- [Optional] If a new proto file and compiled proto buffer exists in hwsc-api-blocks, update dependency
$dep ensure -update
- Install dependencies and generate vendor folder
$ go get -u; go mod download
- Update ENV variables
- Run main
$ go run main.go
- Install dependencies and generate vendor folder
$ go get -u; go mod download
$ generate_container.sh
- Find your image
$ docker images
- Acquire
env.list
configuration $ docker run --env-file ./env.list -it -p 50055:50055 <imagename>
$ cd service
- For command-line summary,
$ go test -cover -v
- For comprehensive summary,
$ bash unit_test.sh