utils

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtoDeterministicMarshal

func ProtoDeterministicMarshal(m proto.Message) ([]byte, error)

func WriteDurationLog

func WriteDurationLog(filename string, durationTime int64, function string, optionalParams ...string)

func WriteEventLog

func WriteEventLog(filename string, time time.Time, name string)

func WriteEventLogBeginBlock

func WriteEventLogBeginBlock(filename string, time time.Time, name string, height int64, numTxs int64)

func WriteEventLogQuery

func WriteEventLogQuery(filename string, time time.Time, name string, function string)

func WriteEventLogTx

func WriteEventLogTx(filename string, time time.Time, name string, function string, nonce string)

Types

type DurationLog

type DurationLog struct {
	Duration int64  `json:"duration"`
	Function string `json:"function"`
	Method   string `json:"method"`
	Nonce    string `json:"nonce"`
}

type EventLog

type EventLog struct {
	Datetime int64  `json:"datetime"`
	Name     string `json:"name"`
}

type EventLogBeginBlock

type EventLogBeginBlock struct {
	Datetime int64  `json:"datetime"`
	Name     string `json:"name"`
	Height   int64  `json:"height"`
	NumTxs   int64  `json:"numTxs"`
}

type EventLogQuery

type EventLogQuery struct {
	Datetime int64  `json:"datetime"`
	Name     string `json:"name"`
	Function string `json:"function"`
}

type EventLogTx

type EventLogTx struct {
	Datetime int64  `json:"datetime"`
	Name     string `json:"name"`
	Function string `json:"function"`
	Nonce    string `json:"nonce"`
}

Jump to

Keyboard shortcuts

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