Documentation ¶
Index ¶
- Variables
- func CheckExecPath(exec string) error
- func CheckPluginPaths(pluginExec string, pluginGenesisPath string) error
- func ColorAndPrepend(reader io.Reader, writer io.Writer, prependText string, color logging.Color)
- func MkDirWithTimestamp(dirPrefix string) (string, error)
- func NetworkIDFromGenesis(genesis []byte) (uint32, error)
- func NewColorPicker() *colorPicker
- func SetJSONKey(jsonBody string, k string, v string) (string, error)
- func ToNodeID(stakingKey, stakingCert []byte) (ids.NodeID, error)
- func VMID(vmName string) (ids.ID, error)
- type ColorPicker
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckExecPath ¶
func CheckPluginPaths ¶
func ColorAndPrepend ¶
ColorAndPrepend reads each line from [reader], prepends it with [prependText] and colors it with [color], and then prints the prepended/colored line to [writer].
func MkDirWithTimestamp ¶
func NetworkIDFromGenesis ¶
Returns the network ID in the given genesis
func NewColorPicker ¶
func NewColorPicker() *colorPicker
NewColorPicker allows to assign a color to different clients
func SetJSONKey ¶
Set k=v in JSON string e.g., "whitelisted-subnets" is the key and value is "a,b,c".
Types ¶
type ColorPicker ¶
ColorPicker allows to assign a new color
Click to show internal directories.
Click to hide internal directories.