ladon

command module
v0.0.0-...-41575ae Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 20 Imported by: 0

README

Ladon

Ladon was the serpent-like dragon that twined and twisted around the tree in the Garden of the Hesperides and guarded the golden apples

Actions codecov Go Report GoDocs

Ladon Microservice API to purchase vouchers from PolisPay

Deploy

Docker

To deploy to docker, simply pull the image

docker pull kindynos/ladon:latest

Run the docker image

docker run -p 8080:8080 --env-file .env kindynos/ladon:latest 

Building

To run Ladon from the source code, first you need to install golang, follow this guide:

https://golang.org/doc/install

To run Ladon simply clone de repository:

git clone https://github.com/grupokindynos/ladon 

Install dependencies

go mod download

Running flags

-local

Set this flag to run Ladon using the testing Hestia database. Default is false (production mode). When using this flag you must be running hestia locally on port 8080.

-port=xxxx

Specifies the running port. Default is 8080.

-stop-proc

Set this flag to run Ladon without the processor.

-no-txs

Set this flag to avoid publishing txs on the Blockchain but store them on the database. WARNING: -local flag must be set in order to use this flag.

-skip-val

Set this flag to skip validations on txs (currently just skipping the minimum amount of confirmations required to process a tx) WARNING: -local flag must be set in order to use this flag.

API Reference

Documentation: API Reference

Testing

Simply run:

go test ./...

Contributing

To contribute to this repository, please fork it, create a new branch and submit a pull request.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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