helpers

package
v0.0.0-...-93280a9 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Project = "fabric-orderer-benchmark"

Functions

func GetConfigPath

func GetConfigPath(filename string) string

func GetCryptoConfigPath

func GetCryptoConfigPath(filename string) string

func GetLogger

func GetLogger() *logs.BeeLogger

func GetSampleConfigPath

func GetSampleConfigPath() string

Types

type AppConf

type AppConf struct {
	Conf Application `yaml:"application"`
}

func GetAppConf

func GetAppConf() *AppConf

type Application

type Application struct {
	LogPath      string         `yaml:"logPath"`
	LogLevel     int8           `yaml:"logLevel"`
	Local        bool           `yaml:"local"`
	Clients      uint32         `yaml:"clients"`
	CPUs         int            `yaml:"cpus"`
	ConnOrderers []*OrdererInfo `yaml:"orderers"`
	OrdererMsp   string         `yaml:"ordererMsp"`
	Profile      string         `yaml:"profile"`
	Channels     []string       `yaml:"channels"`
	TlsEnabled   bool           `yaml:"tlsEnabled"`
	ReqTimeout   int64          `yaml:"reqTimeout"`
}

type OrdererInfo

type OrdererInfo struct {
	Name string `yaml:"name"`
	Host string `yaml:"host"`
	Port uint16 `yaml:"port"`
}

Jump to

Keyboard shortcuts

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