util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error, out io.Writer, msg string, args ...interface{}) bool

func ItSSZ added in v0.1.0

func ItSSZ(obj interface{}, spec *beacon.Spec) (beacon.SSZObj, error)

func LoadSSZ

func LoadSSZ(path string, dst codec.Deserializable) error

func LoadSSZInput added in v0.0.2

func LoadSSZInput(r io.Reader, dst codec.Deserializable) error

func LoadSSZInputPath

func LoadSSZInputPath(cmd *cobra.Command, inPath string, stdInFallback bool, dst codec.Deserializable) error

func LoadSpec added in v0.1.0

func LoadSpec(cmd *cobra.Command) (*beacon.Spec, error)

func LoadStateInput

func LoadStateInput(r io.Reader, spec *beacon.Spec) (*beacon.BeaconState, error)

func LoadStateInputPath

func LoadStateInputPath(cmd *cobra.Command, inPath string, stdInFallback bool, spec *beacon.Spec) (*beacon.BeaconState, error)

func LoadStateViewInputFlag added in v0.0.29

func LoadStateViewInputFlag(cmd *cobra.Command, inputKey string, stdInFallback bool, spec *beacon.Spec) (*beacon.BeaconStateView, error)

func LoadStateViewInputPath added in v0.0.29

func LoadStateViewInputPath(cmd *cobra.Command, inPath string, stdInFallback bool, spec *beacon.Spec) (*beacon.BeaconStateView, error)

func Report

func Report(out io.Writer, msg string, args ...interface{})

func WriteStateOutputFile added in v0.0.20

func WriteStateOutputFile(cmd *cobra.Command, outPath string, state *beacon.BeaconState, spec *beacon.Spec) (err error)

func WriteStateViewOutput added in v0.0.29

func WriteStateViewOutput(cmd *cobra.Command, outKey string, state *beacon.BeaconStateView) error

func WriteStateViewOutputFile added in v0.0.29

func WriteStateViewOutputFile(cmd *cobra.Command, outPath string, state *beacon.BeaconStateView) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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