Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCmd ¶
type CreateCmd struct { *base.Base GlobalPeerstores track.Peerstores CurrentPeerstore track.DynamicPeerstore ID track.PeerstoreID `ask:"[id]" help:"ID of the peerstore, random otherwise"` Switch bool `ask:"--switch" help:"If the host should immediately switch to the newly created peerstore"` StoreType string `ask:"--store-type" help:"The type of datastore to use. Options: 'mem', 'leveldb', 'badger'"` StorePath string `ask:"--store-path" help:"The path of the datastore, must be empty for memory store."` }
type ListCmd ¶
type ListCmd struct { *base.Base GlobalPeerstores track.Peerstores CurrentPeerstore track.DynamicPeerstore }
type PeerstoreCmd ¶
type PeerstoreCmd struct { *base.Base GlobalPeerstores track.Peerstores CurrentPeerstore track.DynamicPeerstore }
func (*PeerstoreCmd) Cmd ¶
func (c *PeerstoreCmd) Cmd(route string) (cmd interface{}, err error)
func (*PeerstoreCmd) Help ¶
func (c *PeerstoreCmd) Help() string
func (*PeerstoreCmd) Routes ¶
func (c *PeerstoreCmd) Routes() []string
type SwitchCmd ¶
type SwitchCmd struct { *base.Base GlobalPeerstores track.Peerstores CurrentPeerstore track.DynamicPeerstore ID track.PeerstoreID `ask:"<id>" help:"ID of the peerstore to switch to"` }
Click to show internal directories.
Click to hide internal directories.