gossip

package
v0.2.4-0...-f8342f3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoGossipErr = errors.New("Must start gossip-sub first. Try 'gossip start'")

Functions

This section is empty.

Types

type GossipBlacklistCmd

type GossipBlacklistCmd struct {
	*base.Base
	*metrics.GossipState
	PeerID flags.PeerIDFlag `ask:"<peer-id>" help:"The peer to blacklist"`
}

func (*GossipBlacklistCmd) Help

func (c *GossipBlacklistCmd) Help() string

func (*GossipBlacklistCmd) Run

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

type GossipCmd

func (*GossipCmd) Cmd

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

func (*GossipCmd) Help

func (c *GossipCmd) Help() string

func (*GossipCmd) Routes

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

type GossipListCmd

type GossipListCmd struct {
	*base.Base
	*metrics.GossipState
}

func (*GossipListCmd) Help

func (c *GossipListCmd) Help() string

func (*GossipListCmd) Run

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

type GossipMessageDBCmd

type GossipMessageDBCmd struct {
	*base.Base
	GossipState   *metrics.GossipState
	GossipMetrics *metrics.GossipMetrics

	MessageLimit int `ask:"--temp-msg-limit" help:"The number of Messages that will be kept on the Temporary Database (Like a Cache of messages)"`
	// For later, when the real database is stored`
	StorePath string `` /* 128-byte string literal not displayed */
}

func (*GossipMessageDBCmd) Default

func (c *GossipMessageDBCmd) Default()

func (*GossipMessageDBCmd) Help

func (c *GossipMessageDBCmd) Help() string

func (*GossipMessageDBCmd) Run

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

type GossipStartCmd

type GossipStartCmd struct {
	*base.Base
	*metrics.GossipState
	*metrics.GossipMetrics

	SeenFilter bool `ask:"--seen-filter" help:"Enable or Disable the Received Message Validation (Default: True)"`
}

func (*GossipStartCmd) Default

func (c *GossipStartCmd) Default()

func (*GossipStartCmd) Help

func (c *GossipStartCmd) Help() string

func (*GossipStartCmd) Run

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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