Categorygithub.com/Lagrange-Labs/lsc-node/core
modulepackage
0.1.2
Repository: https://github.com/lagrange-labs/lsc-node.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Bytes2Hex converts bytes to a hex string.
GetContext returns a context with a default timeout.
GetContextWithCancel returns a context with a timeout and a cancel function.
GetContextWithTimeout returns a context with a timeout.
GetPrivateField returns the private field of the struct instance.
GetValidAddress returns a valid address from the given hex string.
GetVersion returns the version from the string.
Hex2Bytes converts a hex string to bytes.
LoadTLS loads the tls config.
NewCache creates a new Cache instance.
NewVersion creates a new version.
RandomHex generates a random hex string of length n.
Uint64ToBytes converts a uint64 to bytes.

# Constants

DefaultContextTimeout is the default timeout for context.

# Structs

Cache is a simple in-memory thread-safe cache.
CertConfig is the configuration for the certificate.
Version is the version of the node.

# Type aliases

TimeDuration is a wrapper around time.Duration that allows us to unmarshal in TOML.