modulepackage
0.11.1
Repository: https://github.com/irisnet/iris-api-server.git
Documentation: pkg.go.dev
# README
IRISHub Server
A Thrift RPC server that allows light clients to interact with IRIS hub
Structure
config
: config of projectenv
: environment of projecterrors
: define customer errorsmodels
: database model which definedmodules
: modules of projectrpc
: define rpc entranceservices
: business logic, handle api requestutils
: define common constants and functionsmain.go
: bootstrap project
RPC Structure
please see irisnet-rpc
Build And Run
- Build:
make build
- Run:
make run
- Cross compilation:
make build-linux
Run with docker
You can run application with docker.
Example:
# docker build -t irishub-server:v1 .
# docker run --name irishub-server -v /mnt/data/iris-log:/irishub-server/log -p 9080:9080 -e "DB_ADDR=127.0.0.1:27017" -e "ENV=stage" -d irishub-server:v1
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author