示例#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
	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
	})
}