{"modulePath":"github.com/Oneledger/protocol","version":"v0.6.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nCopyright 2017-2018 OneLedger\n\nGets the account information, this is a node operation (and won't run if a node already is already running)\n\n### Copyright 2017-2018 OneLedger {#hdr-Copyright_2017_2018_OneLedger}\n\nEncapsulate any terminal handling, to allow scripting later.\n\n### Copyright 2017-2018 OneLedger {#hdr-Copyright_2017_2018_OneLedger}\n\nA fullnode for the OneLedger chain. Includes cli arguments to initialize, restart, etc.\n\n### Copyright 2017-2018 OneLedger {#hdr-Copyright_2017_2018_OneLedger}\n\nCli to start a node (server) running.\n\n### Copyright 2017-2018 OneLedger {#hdr-Copyright_2017_2018_OneLedger}\n\nRegister identities and accounts. This only works if the fullnode is not running, and needs a client implementation as well.\n\n### Copyright 2017-2018 OneLedger {#hdr-Copyright_2017_2018_OneLedger}\n\nSetup the root command structure for all of cli commands\n\n## Variables\n\n```go\nvar RootCmd = \u0026cobra.Command{\n\tUse:   \"fullnode\",\n\tShort: \"fullnode\",\n\tLong:  \"OneLedger chain, fullnode\",\n}\n```\n\n## Functions\n\n```go\nfunc CatchSigterm()\n```\nA polite way of bring down the service on a SIGTERM\n\n```go\nfunc Execute()\n```\n\n```go\nfunc IdentityInfo(node *app.Application, id *id.Identity)\n```\n\n```go\nfunc ListIdentities(cmd *cobra.Command, args []string)\n```\nIssueRequest sends out a sendTx to all of the nodes in the chain\n\n```go\nfunc Register()\n```\nUse the client side to broadcast an identity to all nodes.\n\n```go\nfunc RegisterUsers(cmd *cobra.Command, args []string)\n```\nIssueRequest sends out a sendTx to all of the nodes in the chain\n\n```go\nfunc StartNode(cmd *cobra.Command, args []string)\n```\nStart a node to run continously\n\n## Types\n\n```go\ntype ListArguments struct {\n\t// contains filtered or unexported fields\n}\n```\nArguments to the command\n\n```go\ntype RegisterArguments struct {\n\t// contains filtered or unexported fields\n}\n```\nArguments to the command\n\n```go\ntype Terminal interface {\n\tPrint(text ...interface{})\n\tRead() string\n}\n```\nSimple Terminal operations\n\n```go\nvar Console Terminal\n```\nDeclare a global Console that is usable from all of the cmds\n\n```go\ntype Tty struct {\n}\n```\nEnforce a type underneath\n\n```go\nfunc NewTty() *Tty\n```\n\n```go\nfunc (tty *Tty) Print(text ...interface{})\n```\nPrint to a terminal, add a layer of presentation on top.\n\n```go\nfunc (tty *Tty) Read() string\n```\nRead in user input from a terminal, if we are connected to one.\n\n","path":"github.com/Oneledger/protocol/node/cmd/fullnode","name":"main","synopsis":"","isRedistributable":true}
