Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Init = cmd.Sub{ Name: "init", Alias: "i", Short: "Initialize the decentralized node configuration file.", Args: &InitArgs{}, Run: InitRun, }
Init creates a configuration for a Discovery P2P Interface.
View Source
var ( // RevLookup allow quick lookups of an incoming stream // for security before accepting or responding to any data. RevLookup map[string]string )
View Source
var Root *cmd.Root
Root is the main command.
View Source
var Up = cmd.Sub{ Name: "up", Alias: "up", Short: "Create and Bring Up a Discovery P2P Interface.", Args: &UpArgs{}, Flags: &UpFlags{}, Run: UpRun, }
Up creates and brings up a Discovery P2P Interface.
Functions ¶
Types ¶
type DataMessage ¶
ChatMessage gets converted to/from JSON and sent in the body of pubsub messages.
type GlobalFlags ¶
type GlobalFlags struct {
Config string `short:"c" long:"config" desc:"Specify a custom config path."`
}
GlobalFlags contains the flags for commands.
type InitArgs ¶
type InitArgs struct {
InterfaceName string
}
InitArgs handles the specific arguments for the init command.
Click to show internal directories.
Click to hide internal directories.