wormhole-explorer/api
gipsh 2306d103d8
321 replace redis to elasticcache (#467)
* redis prefix support for caches

* fly support for prefix

* unit tests

* redis prefix for notional cache updater

* fix test

* fix tests

* use redis-prfix from config map
2023-06-28 15:04:36 -03:00
..
cacheable
docs [API] Expose emitter native addresses (#466) 2023-06-28 14:54:51 -03:00
handlers [API] Expose emitter native addresses (#466) 2023-06-28 14:54:51 -03:00
internal 321 replace redis to elasticcache (#467) 2023-06-28 15:04:36 -03:00
middleware
response
routes [API] Expose emitter native addresses (#466) 2023-06-28 14:54:51 -03:00
rpc
types
.gitignore
Dockerfile
Makefile
README.md
go.mod 321 replace redis to elasticcache (#467) 2023-06-28 15:04:36 -03:00
go.sum 321 replace redis to elasticcache (#467) 2023-06-28 15:04:36 -03:00
main.go 321 replace redis to elasticcache (#467) 2023-06-28 15:04:36 -03:00

README.md

API

How to build

make build

Config

You will need to set some env variables with the prefix WORMSCAN

  • WORMSCAN_DB_MONGO
  • WORMSCAN_DB_NAME
  • WORMSCAN_PORT

for example:

WORMSCAN_DB_URL=mongodb://localhost:27017/wormhole WORMSCAN_PORT=5555 ./api

API Documentation

Documentation is automagically generated via swaggo using annotations on code and placed inside doc/ folder.

To install swag tool run this

go install github.com/swaggo/swag/cmd/swag@latest

To generate or update the doc run:

make doc