tyche

command module
v0.0.0-...-e0155c2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 20 Imported by: 0

README

Tyche

Tyche is the Greek goddess of chance, fate and fortune

Actions codecovGo Report GoDocs

Tyche is a microservice API for shifting between cryptocurrencies

Building

To run Tyche simply clone the repository:

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

Build it or Run it:

go build && ./tyche
go run main.go

Make sure the port is configured under en environment variable PORT=8080

Running flags

-local

Set this flag to run tyche 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 tyche without 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.

-dev

Set this flag to skip service availability checking on hestia. For development and debugging purposes. Meant to enable development when the services are down.

API Reference

Refer to the reference docs.

Testing

Simply run:

go test ./...

Contributing

Pull requests accepted.

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