sidecar

package module
v0.0.0-...-f069fcf Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

README

sidecar

build codecov

Build

Using the follow command to install necessary tools.

make prepare

And then install sidecar using the following command.

make install

Initialization

Using the follow command to initialize sidecar.

sidecar init

Default repo path is ~/sidecar. If you want to specify the repo path, you can use --repo flag.

sidecar init --repo=$HOME/sidecar

Run server

sidecar start

After initializing sidecar, it will generate the follow directory:

~/sidecar » tree                                                                                                                                                                              suyanlong@suyanlongdeMacBook-Pro-2
.
├── api
├── certs
│   └── ca.pem
├── key.json
├── logs
│   ├── sidecar.log -> /Users/suyanlong/sidecar/logs/sidecar.log20211116000000
│   └── sidecar.log20211116000000
├── node.priv
├── plugins
│   ├── chain33
│   │   └── chain33.toml
│   └── chain33-client
├── pprof
│   ├── cpu-20211116-10:53:17
│   ├── cpu-20211116-11:04:56
│   ├── mem-20211116-10:53:17
│   └── mem-20211116-11:04:56
├── sidecar.toml
└── store
    ├── 000074.log
    ├── CURRENT
    ├── CURRENT.bak
    ├── LOCK
    ├── LOG
    └── MANIFEST-000075

Configuration

title = "Sidecar"

[port]
http = 44544
pprof = 44555

[log]
level = "info"
dir = "logs"
filename = "sidecar.log"
report_caller = false

[log.module]
app          = "info"
manager      = "info"
api_server   = "info"
appchain_mgr = "info"
rule_mgr     = "info"
peer_mgr     = "info"
router       = "info"
swarm        = "info"
syncer       = "info"

[[appchains]]
enable = true
type = "appchain"
did = "did:bitxhub:chain33:."
plugin = "chain33-client"
config = "chain33"
plugin_id = "chain33"

[peer]
peers = ["/ip4/127.0.0.1/tcp/4000/p2p/QmeRiU3Nh7RDrVjG9XP4tPhVewk3Pa4S63fhHpymSNchoA","/ip4/127.0.0.1/tcp/4001/ipfs/QmfC33rPPobCDo1WBhAy8VG6ocTiLfZzFb8aaQGqv3MVv3","/ip4/127.0.0.1/tcp/4002/ipfs/QmVtRucwZjzLb2AEd4CRZ2nheLrDEuUymG8zKsfxdg2pic"]
connectors = ["localhost:60011", "localhost:60012", "localhost:60013", "localhost:60014"]
providers = 1

port.pprof: the pprof server port

log.level: log level: debug, info, warn, error, fatal

appchain.plugin: relative path in sidecar repo of appchain plugin

appchain.config: relative path of appchain config directory

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CurrentCommit current git commit hash
	CurrentCommit = ""
	// CurrentBranch current git branch
	CurrentBranch = ""
	// CurrentVersion current project version
	CurrentVersion = "1.0.0"
	// BuildDate compile date
	BuildDate = ""
	// GoVersion system go version
	GoVersion = runtime.Version()
	// Platform info
	Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
hub
client/mock_client
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.
app
appchain/mock_executor
Package mock_executor is a generated GoMock package.
Package mock_executor is a generated GoMock package.
appchain/mock_monitor
Package mock_monitor is a generated GoMock package.
Package mock_monitor is a generated GoMock package.
lite/mock_lite
Package mock_lite is a generated GoMock package.
Package mock_lite is a generated GoMock package.
peermgr/mock_peermgr
Package mock_peermgr is a generated GoMock package.
Package mock_peermgr is a generated GoMock package.
router/mock_router
Package mock_router is a generated GoMock package.
Package mock_router is a generated GoMock package.
syncer/mock_syncer
Package mock_syncer is a generated GoMock package.
Package mock_syncer is a generated GoMock package.
txcrypto/mock_txcrypto
Package mock_txcrypto is a generated GoMock package.
Package mock_txcrypto is a generated GoMock package.
model
pb
Package pb is a reverse proxy.
Package pb is a reverse proxy.
pkg
key
log
plugins/mock_client
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.
validator/mock_validator
Package mock_validator is a generated GoMock package.
Package mock_validator is a generated GoMock package.
Package errgroup provides synchronization, error propagation, and Context cancelation for groups of goroutines working on subtasks of a common task.
Package errgroup provides synchronization, error propagation, and Context cancelation for groups of goroutines working on subtasks of a common task.

Jump to

Keyboard shortcuts

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