Documentation ¶
Index ¶
- func EpochVar(f *pflag.FlagSet, p *beaconcommon.Epoch, name string, value beaconcommon.Epoch, ...)
- func EpochVarP(f *pflag.FlagSet, p *beaconcommon.Epoch, name, shorthand string, ...)
- func GweiVar(f *pflag.FlagSet, p *beaconcommon.Gwei, name string, value beaconcommon.Gwei, ...)
- func GweiVarP(f *pflag.FlagSet, p *beaconcommon.Gwei, name, shorthand string, ...)
- func RootVar(f *pflag.FlagSet, p *beaconcommon.Root, name string, value beaconcommon.Root, ...)
- func RootVarP(f *pflag.FlagSet, p *beaconcommon.Root, name, shorthand string, ...)
- func SlotVar(f *pflag.FlagSet, p *beaconcommon.Slot, name string, value beaconcommon.Slot, ...)
- func SlotVarP(f *pflag.FlagSet, p *beaconcommon.Slot, name, shorthand string, ...)
- type GweiValue
- type RootValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpochVar ¶
func EpochVar(f *pflag.FlagSet, p *beaconcommon.Epoch, name string, value beaconcommon.Epoch, usage string)
EpochVar registers a beaconcommon.Epoch custom flag with specified name, default value, and usage string. The argument p points to a beaconcommon.Epoch variable in which to store the value of the flag
func EpochVarP ¶
func EpochVarP(f *pflag.FlagSet, p *beaconcommon.Epoch, name, shorthand string, value beaconcommon.Epoch, usage string)
EpochVar registers a beaconcommon.Epoch custom flag with specified name and shorthand, default value, and usage string. The argument p points to a beaconcommon.Epoch variable in which to store the value of the flag
func GweiVar ¶
func GweiVar(f *pflag.FlagSet, p *beaconcommon.Gwei, name string, value beaconcommon.Gwei, usage string)
GweiVar registers a beaconcommon.Gwei custom flag with specified name, default value, and usage string. The argument p points to a beaconcommon.Gwei variable in which to store the value of the flag
func GweiVarP ¶
func GweiVarP(f *pflag.FlagSet, p *beaconcommon.Gwei, name, shorthand string, value beaconcommon.Gwei, usage string)
GweiVar registers a beaconcommon.Gwei custom flag with specified name and shorthand, default value, and usage string. The argument p points to a beaconcommon.Gwei variable in which to store the value of the flag
func RootVar ¶
func RootVar(f *pflag.FlagSet, p *beaconcommon.Root, name string, value beaconcommon.Root, usage string)
RootVar registers a beaconcommon.Root custom flag with specified name, default value, and usage string. The argument p points to a beaconcommon.Root variable in which to store the value of the flag
func RootVarP ¶
func RootVarP(f *pflag.FlagSet, p *beaconcommon.Root, name, shorthand string, value beaconcommon.Root, usage string)
RootVar registers a beaconcommon.Root custom flag with specified name and shorthand, default value, and usage string. The argument p points to a beaconcommon.Root variable in which to store the value of the flag
func SlotVar ¶
func SlotVar(f *pflag.FlagSet, p *beaconcommon.Slot, name string, value beaconcommon.Slot, usage string)
SlotVar registers a beaconcommon.Slot custom flag with specified name, default value, and usage string. The argument p points to a beaconcommon.Slot variable in which to store the value of the flag
func SlotVarP ¶
func SlotVarP(f *pflag.FlagSet, p *beaconcommon.Slot, name, shorthand string, value beaconcommon.Slot, usage string)
SlotVar registers a beaconcommon.Slot custom flag with specified name and shorthand, default value, and usage string. The argument p points to a beaconcommon.Slot variable in which to store the value of the flag
Types ¶
type GweiValue ¶
type GweiValue struct {
Gwei *beaconcommon.Gwei
}
GweiValue is a type implenting pflag.Value interface for beaconcommon.Gwei type
type RootValue ¶
type RootValue struct {
Root *beaconcommon.Root
}
RootValue is a type implenting pflag.Value interface for beaconcommon.Root type