Documentation
¶
Index ¶
- Variables
- func InitConfig()
- func InitFlags()
- func InitLogger()
- func InitRPC()
- func InitSuperCollider()
- func Initialize(tinnitusMode TinnitusMode)
- func PackagePath() string
- type ClippedTransaction
- type GetBitcoinBlockVerboseResult
- type GetZcashBlockVerboseResult
- type RPCClient
- type RPCConfig
- type SCClient
- type SCConfig
- type Tinnitus
- type TinnitusConfig
- type TinnitusFlags
- type TinnitusMode
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.SugaredLogger
View Source
var ShouldExitGracefully = func() bool { shouldExit := len(ctrlC) > 0 if shouldExit { Logger.Info("Shutting down gracefully.") } return shouldExit }
Functions ¶
func InitConfig ¶
func InitConfig()
func InitLogger ¶
func InitLogger()
func InitSuperCollider ¶
func InitSuperCollider()
func Initialize ¶
func Initialize(tinnitusMode TinnitusMode)
func PackagePath ¶
func PackagePath() string
Types ¶
type ClippedTransaction ¶
type GetBitcoinBlockVerboseResult ¶
type GetBitcoinBlockVerboseResult struct { *btcjson.GetBlockVerboseResult Tx []btcjson.TxRawResult `json:"tx,omitempty"` }
type GetZcashBlockVerboseResult ¶
type GetZcashBlockVerboseResult struct { Hash string `json:"hash"` Confirmations int64 `json:"confirmations"` StrippedSize int32 `json:"strippedsize"` Size int32 `json:"size"` Weight int32 `json:"weight"` Height int64 `json:"height"` Version int32 `json:"version"` VersionHex string `json:"versionHex"` MerkleRoot string `json:"merkleroot"` Tx []btcjson.TxRawResult `json:"tx,omitempty"` Time int64 `json:"time"` Nonce string `json:"nonce"` Bits string `json:"bits"` Difficulty float64 `json:"difficulty"` PreviousHash string `json:"previousblockhash"` NextHash string `json:"nextblockhash,omitempty"` }
type RPCClient ¶
var RPC *RPCClient
func (*RPCClient) GetBitcoinBlockVerboseTx ¶
func (client *RPCClient) GetBitcoinBlockVerboseTx(blockHash *chainhash.Hash) (*GetBitcoinBlockVerboseResult, error)
func (*RPCClient) GetZcashBlockVerboseTx ¶
func (client *RPCClient) GetZcashBlockVerboseTx(blockHeight int64) (*GetZcashBlockVerboseResult, error)
type Tinnitus ¶
type Tinnitus struct {
// contains filtered or unexported fields
}
func NewTinnitus ¶
func NewTinnitus() *Tinnitus
type TinnitusConfig ¶
type TinnitusConfig struct { SC SCConfig `yaml:"sc"` RPC RPCConfig `yaml:"rpc"` Logger zap.Config `yaml:"logger"` SleepDuration time.Duration `yaml:"sleep_duration"` }
var Config *TinnitusConfig = &TinnitusConfig{}
type TinnitusFlags ¶
type TinnitusFlags struct { Verbose *bool Debug *bool Version *bool Log *string Config *string Live *bool From *int64 To *int64 }
var Flags TinnitusFlags
type TinnitusMode ¶
type TinnitusMode int
const ( DefaultTinnitusMode TinnitusMode = iota TestingTinnitusMode )
var Mode TinnitusMode
Source Files
¶
Click to show internal directories.
Click to hide internal directories.