cache

module
v1.0.1-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more

README

pipeline status coverage report

Cache service

Cache service exposes HTTP interface for working with Redis.

Basic Architecture
flowchart LR  
	A[Client] -- request --> B[HTTP API] 
	subgraph cache 
		B --> C[(Redis)] 
	end
API Documentation

The API Documentation is accessible at /swagger-ui path in OAS 3.0 format. If you use the docker-compose environment, it's exposed at http://localhost:8083/swagger-ui

Dependencies

There must be a running instance of Redis visible to the service. The address, username and password of Redis must be provided as environment variables.

Example:

REDIS_ADDR="localhost:6379"
REDIS_USER="user"
REDIS_PASS="pass"
Development

This service uses Goa framework v3 as a backbone. This is a good starting point for learning to use the framework.

Dependencies and Vendor

The project uses Go modules for managing dependencies, and we commit the vendor directory. When you add/change dependencies, be sure to clean and update the vendor directory before submitting your Merge Request for review.

go mod tidy
go mod vendor
Tests and Linters

To execute the units tests for the service go to the root project directory and run:

go test -race ./...

To run the linters go to the root project directory and run:

golangci-lint run

GDPR

GDPR

Dependencies

Dependencies

License

Apache 2.0 license

Directories

Path Synopsis
cmd
nolint:revive
nolint:revive
gen
internal
service/cache/cachefakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL