build

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildDefault = 0
	BuildMainnet = 0x1
)
View Source
const BuildVersion = "0.1.16"

BuildVersion is the local build version

Variables

View Source
var (
	DefaultFDLimit uint64 = 16 << 10
	NodeFDLimit    uint64 = 10_000
)
View Source
var (
	CurrentCommit string
	BuildType     int
)
View Source
var PanicReportJournalTail = defaultJournalTail

PanicReportJournalTail is the number of lines captured from the end of the titan journal to be included in the panic report.

View Source
var PanicReportingPath = "panic-reports"

PanicReportingPath is the name of the subdir created within the repoPath path provided to GeneratePanicReport

Functions

func BuildTypeString

func BuildTypeString() string

func GeneratePanicReport

func GeneratePanicReport(persistPath, repoPath, label string)

GeneratePanicReport produces a timestamped dump of the application state for inspection and debugging purposes. Call this function from any place where a panic or severe error needs to be examined. `persistPath` is the path where the reports should be saved. `repoPath` is the path where the journal should be read from. `label` is an optional string to include next to the report timestamp.

func UserVersion

func UserVersion() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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