github.com/Tri-stone/burrow@v0.25.0/vent/config/config.go (about)

     1  package config
     2  
     3  import (
     4  	"github.com/hyperledger/burrow/vent/types"
     5  )
     6  
     7  const DefaultPostgresDBURL = "postgres://postgres@localhost:5432/postgres?sslmode=disable"
     8  
     9  // VentConfig is a set of configuration parameters
    10  type VentConfig struct {
    11  	DBAdapter      string
    12  	DBURL          string
    13  	DBSchema       string
    14  	GRPCAddr       string
    15  	HTTPAddr       string
    16  	LogLevel       string
    17  	SpecFileOrDirs []string
    18  	AbiFileOrDirs  []string
    19  	DBBlockTx      bool
    20  }
    21  
    22  // DefaultFlags returns a configuration with default values
    23  func DefaultVentConfig() *VentConfig {
    24  	return &VentConfig{
    25  		DBAdapter: types.PostgresDB,
    26  		DBURL:     DefaultPostgresDBURL,
    27  		DBSchema:  "vent",
    28  		GRPCAddr:  "localhost:10997",
    29  		HTTPAddr:  "0.0.0.0:8080",
    30  		LogLevel:  "debug",
    31  		DBBlockTx: false,
    32  	}
    33  }