Skip to content

Provides asset and qu transfer information for integrators

License

Notifications You must be signed in to change notification settings

qubic/go-transfers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go transfers service

This integration layer service provides asset and qu transfer information to integrators. The information is based on qubic events (aka 'logging').

Requirements

  • Go (golang)
  • Postgresql database

Setup

Create database user and schema

CREATE USER some_user_name WITH PASSWORD 'some-password';
CREATE DATABASE some_database OWNER some_user_name;

Database migrations use golang-migrate and are automatically applied on startup. For manual migration you can use migrate-cli (see golang-migrate docs), for example to clean the database use down or drop:

migrate -source file://path/to/migrations -database postgres://localhost:5432/database down

Configure environment

Environment variables need to be set or necessary values need to be passed as command line arguments.

Build & Run

Run go build in the root folder. Then you can run the executable.

Run tests

Run go test -v ./... to execute all tests. To exclude system integration tests that have dependencies to external systems and therefore need configuration use the ci tag : go test -v -tags ci ./....

About

Provides asset and qu transfer information for integrators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages