util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2015 License: MIT Imports: 5 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trace

func Trace(params ...string)

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

Types

type ByCBlockIDAccending

type ByCBlockIDAccending []notaryapi.CBlock

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

func (ByCBlockIDAccending) Len

func (f ByCBlockIDAccending) Len() int

func (ByCBlockIDAccending) Less

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

func (ByCBlockIDAccending) Swap

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

type ByDBlockIDAccending

type ByDBlockIDAccending []notaryapi.DBlock

------------------------------------------------ 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 []notaryapi.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 FactomdConfig

type FactomdConfig struct {
	App struct {
		PortNumber              int
		LdbPath                 string
		DataStorePath           string
		DirectoryBlockInSeconds int
		NodeMode                string
		FederatedId             string
	}
	Btc struct {
		BTCPubAddr         string
		SendToBTCinSeconds int
		WalletPassphrase   string
		CertHomePath       string
		RpcClientHost      string
		RpcClientEndpoint  string
		RpcClientUser      string
		RpcClientPass      string
		BtcTransFee        float64
		CertHomePathBtcd   string
		RpcBtcdHost        string
	}
	Rpc struct {
		PortNumber       int
		ApplicationName  string
		RefreshInSeconds int
	}
	Log struct {
		LogPath  string
		LogLevel 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 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