예제 #1
0
파일: log.go 프로젝트: ZhuZhengyi/eris-db
package core_client

import (
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
)

var log = log15.New("module", "core_client")
예제 #2
0
파일: log.go 프로젝트: ZhuZhengyi/eris-db
package rpcserver

import (
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
)

var log = log15.New("module", "rpcserver")
예제 #3
0
파일: serve.go 프로젝트: ZhuZhengyi/eris-db
	ep "github.com/eris-ltd/eris-db/erisdb/pipe"
	"github.com/eris-ltd/eris-db/server"

	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/eris-ltd/mint-client/mintx/core"

	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
	acm "github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/tendermint/account"
	. "github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/tendermint/common"
	cfg "github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/tendermint/config"
	tmcfg "github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/tendermint/config/tendermint"
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/tendermint/node"
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/tendermint/p2p"
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/tendermint/types"
)

var log = log15.New("module", "eris/erisdb_server")
var tmConfig cfg.Config

// This function returns a properly configured ErisDb server process with a running
// tendermint node attached to it. To start listening for incoming requests, call
// 'Start()' on the process. Make sure to register any start event listeners before
// that.
func ServeErisDB(workDir string) (*server.ServeProcess, error) {
	log.Info("ErisDB Serve initializing.")
	errEns := EnsureDir(workDir)

	if errEns != nil {
		return nil, errEns
	}

	var sConf *server.ServerConfig
예제 #4
0
파일: log.go 프로젝트: ZhuZhengyi/eris-db
package erisdbss

import (
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
)

var log = log15.New("module", "eris/serverserver")
예제 #5
0
파일: log.go 프로젝트: ZhuZhengyi/eris-db
package config

import (
	// We can't use github.com/tendermint/tendermint/logger
	// because that would create a dependency cycle.
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
)

var log = log15.New("module", "config")
예제 #6
0
파일: log.go 프로젝트: ZhuZhengyi/eris-db
package rpcclient

import (
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
)

var log = log15.New("module", "rpcclient")
예제 #7
0
파일: log.go 프로젝트: ZhuZhengyi/eris-db
package core

import (
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
)

var log = log15.New("module", "rpc")
예제 #8
0
파일: log.go 프로젝트: ZhuZhengyi/eris-db
package files

import (
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
)

var log = log15.New("module", "eris/server/files")
예제 #9
0
package pipe

import (
	"github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/log15"
	cfg "github.com/eris-ltd/eris-db/Godeps/_workspace/src/github.com/tendermint/tendermint/config"
)

var log = log15.New("module", "eris/erisdb_pipe")
var config cfg.Config

func init() {
	cfg.OnConfig(func(newConfig cfg.Config) {
		config = newConfig
	})
}