status

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerStatusCmd

type PeerStatusCmd struct {
	*base.Base
	*PeerStatusState
	Book track.StatusBook
}

func (*PeerStatusCmd) Cmd

func (c *PeerStatusCmd) Cmd(route string) (cmd interface{}, err error)

func (*PeerStatusCmd) Help

func (c *PeerStatusCmd) Help() string

type PeerStatusFollowCmd

type PeerStatusFollowCmd struct {
	*base.Base
	*PeerStatusState
	Following bool `ask:"[following]" help:"If the status should automatically follow the current chain (if any)"`
}

func (*PeerStatusFollowCmd) Default

func (c *PeerStatusFollowCmd) Default()

func (*PeerStatusFollowCmd) Help

func (c *PeerStatusFollowCmd) Help() string

func (*PeerStatusFollowCmd) Run

func (c *PeerStatusFollowCmd) Run(ctx context.Context, args ...string) error

type PeerStatusGetCmd

type PeerStatusGetCmd struct {
	*base.Base
	*PeerStatusState
}

func (*PeerStatusGetCmd) Help

func (c *PeerStatusGetCmd) Help() string

func (*PeerStatusGetCmd) Run

func (c *PeerStatusGetCmd) Run(ctx context.Context, args ...string) error

type PeerStatusPollCmd

type PeerStatusPollCmd struct {
	*base.Base
	*PeerStatusState
	Book        track.StatusBook
	Timeout     time.Duration         `ask:"--timeout" help:"request timeout, 0 to disable."`
	Interval    time.Duration         `ask:"--interval" help:"interval to request status of peers on, applied as timeout to a round of work"`
	Compression flags.CompressionFlag `ask:"--compression" help:"Compression. 'none' to disable, 'snappy' for streaming-snappy"`
}

func (*PeerStatusPollCmd) Default

func (c *PeerStatusPollCmd) Default()

func (*PeerStatusPollCmd) Help

func (c *PeerStatusPollCmd) Help() string

func (*PeerStatusPollCmd) Run

func (c *PeerStatusPollCmd) Run(ctx context.Context, args ...string) error

type PeerStatusReqCmd

type PeerStatusReqCmd struct {
	*base.Base
	*PeerStatusState
	Book        track.StatusBook
	Timeout     time.Duration         `ask:"--timeout" help:"request timeout, 0 to disable"`
	Compression flags.CompressionFlag `ask:"--compression" help:"Compression. 'none' to disable, 'snappy' for streaming-snappy"`
	PeerID      flags.PeerIDFlag      `ask:"<peer-id>" help:"Peer to fetch status from."`
}

func (*PeerStatusReqCmd) Default

func (c *PeerStatusReqCmd) Default()

func (*PeerStatusReqCmd) Help

func (c *PeerStatusReqCmd) Help() string

func (*PeerStatusReqCmd) Run

func (c *PeerStatusReqCmd) Run(ctx context.Context, args ...string) error

type PeerStatusServeCmd

type PeerStatusServeCmd struct {
	*base.Base
	*PeerStatusState
	Book        track.StatusBook
	Timeout     time.Duration         `` /* 127-byte string literal not displayed */
	Compression flags.CompressionFlag `ask:"--compression" help:"Compression. 'none' to disable, 'snappy' for streaming-snappy"`
}

func (*PeerStatusServeCmd) Default

func (c *PeerStatusServeCmd) Default()

func (*PeerStatusServeCmd) Help

func (c *PeerStatusServeCmd) Help() string

func (*PeerStatusServeCmd) Run

func (c *PeerStatusServeCmd) Run(ctx context.Context, args ...string) error

type PeerStatusSetCmd

type PeerStatusSetCmd struct {
	*base.Base
	*PeerStatusState
	ForkDigest     beacon.ForkDigest `ask:"--fork-digest" help:"Fork digest"`
	HeadRoot       beacon.Root       `ask:"--head-root" help:"Head root"`
	HeadSlot       beacon.Slot       `ask:"--head-slot" help:"Head slot"`
	FinalizedRoot  beacon.Root       `ask:"--finalized-root" help:"Finalized root"`
	FinalizedEpoch beacon.Epoch      `ask:"--finalized-epoch" help:"Finalized epoch"`
	Merge          bool              `ask:"--merge" help:"If true, only apply non-zero options to state"`
}

func (*PeerStatusSetCmd) Default

func (c *PeerStatusSetCmd) Default()

func (*PeerStatusSetCmd) Help

func (c *PeerStatusSetCmd) Help() string

func (*PeerStatusSetCmd) Run

func (c *PeerStatusSetCmd) Run(ctx context.Context, args ...string) error

type PeerStatusState

type PeerStatusState struct {
	Following bool
	Local     beacon.Status
}

func (*PeerStatusState) Routes

func (c *PeerStatusState) Routes() []string

Jump to

Keyboard shortcuts

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