util

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2016 License: MIT Imports: 10 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryCost added in v0.3.1

func EntryCost(b []byte) (uint8, error)

Calculate the entry credits needed for the entry

func Trace

func Trace(params ...string)

a simple file/line trace function, with optional comment(s)

Types

type ByABlockIDAccending added in v0.3.1

type ByABlockIDAccending []common.AdminBlock

------------------------------------------------ ABlock array sorting implementation - accending

func (ByABlockIDAccending) Len added in v0.3.1

func (f ByABlockIDAccending) Len() int

func (ByABlockIDAccending) Less added in v0.3.1

func (f ByABlockIDAccending) Less(i, j int) bool

func (ByABlockIDAccending) Swap added in v0.3.1

func (f ByABlockIDAccending) Swap(i, j int)

type ByDBlockIDAccending

type ByDBlockIDAccending []common.DirectoryBlock

------------------------------------------------ DBlock array sorting implementation - accending

func (ByDBlockIDAccending) Len

func (f ByDBlockIDAccending) Len() int

func (ByDBlockIDAccending) Less

func (f ByDBlockIDAccending) Less(i, j int) bool

func (ByDBlockIDAccending) Swap

func (f ByDBlockIDAccending) Swap(i, j int)

type ByEBlockIDAccending

type ByEBlockIDAccending []common.EBlock

------------------------------------------------ EBlock array sorting implementation - accending

func (ByEBlockIDAccending) Len

func (f ByEBlockIDAccending) Len() int

func (ByEBlockIDAccending) Less

func (f ByEBlockIDAccending) Less(i, j int) bool

func (ByEBlockIDAccending) Swap

func (f ByEBlockIDAccending) Swap(i, j int)

type ByECBlockIDAccending added in v0.3.1

type ByECBlockIDAccending []common.ECBlock

------------------------------------------------ CBlock array sorting implementation - accending

func (ByECBlockIDAccending) Len added in v0.3.1

func (f ByECBlockIDAccending) Len() int

func (ByECBlockIDAccending) Less added in v0.3.1

func (f ByECBlockIDAccending) Less(i, j int) bool

func (ByECBlockIDAccending) Swap added in v0.3.1

func (f ByECBlockIDAccending) Swap(i, j int)

type ByFBlockIDAccending added in v0.3.1

type ByFBlockIDAccending []block.IFBlock

------------------------------------------------ ABlock array sorting implementation - accending

func (ByFBlockIDAccending) Len added in v0.3.1

func (f ByFBlockIDAccending) Len() int

func (ByFBlockIDAccending) Less added in v0.3.1

func (f ByFBlockIDAccending) Less(i, j int) bool

func (ByFBlockIDAccending) Swap added in v0.3.1

func (f ByFBlockIDAccending) Swap(i, j int)

type FactomdConfig

type FactomdConfig struct {
	App struct {
		PortNumber              int
		HomeDir                 string
		LdbPath                 string
		BoltDBPath              string
		DataStorePath           string
		DirectoryBlockInSeconds int
		NodeMode                string
		ServerPrivKey           string
		ExchangeRate            uint64
	}
	Anchor struct {
		ServerECKey         string
		AnchorChainID       string
		ConfirmationsNeeded int
	}
	Btc struct {
		BTCPubAddr         string
		SendToBTCinSeconds int
		WalletPassphrase   string
		CertHomePath       string
		RpcClientHost      string
		RpcClientEndpoint  string
		RpcClientUser      string
		RpcClientPass      string
		BtcTransFee        float64
		CertHomePathBtcd   string
		RpcBtcdHost        string
		RpcUser            string
		RpcPass            string
	}
	Rpc struct {
		PortNumber       int
		ApplicationName  string
		RefreshInSeconds int
	}
	Wsapi struct {
		PortNumber      int
		ApplicationName string
	}
	Log struct {
		LogPath  string
		LogLevel string
	}
	Wallet struct {
		Address          string
		Port             int
		DataFile         string
		RefreshInSeconds string
		BoltDBPath       string
		FactomdAddress   string
		FactomdPort      int
	}
	Controlpanel struct {
		Port string
	}

	Proxy          string `long:"proxy" description:"Connect via SOCKS5 proxy (eg. 127.0.0.1:9050)"`
	DisableListen  bool   `` /* 217-byte string literal not displayed */
	DisableRPC     bool   `` /* 136-byte string literal not displayed */
	DisableTLS     bool   `` /* 127-byte string literal not displayed */
	DisableDNSSeed bool   `long:"nodnsseed" description:"Disable DNS seeding for peers"`
}

func ReReadConfig added in v0.3.1

func ReReadConfig() *FactomdConfig

func ReadConfig

func ReadConfig() *FactomdConfig

GetConfig reads the default factomd.conf file and returns a FactomConfig object corresponding to the state of the file.

Jump to

Keyboard shortcuts

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