Documentation
¶
Index ¶
- Variables
- func NewLiteNode(ctx context.Context, config *Node, storagePath string) (peer.Node, error)
- func NewNode(ctx context.Context, config *Node, storagePath string) (peer.Node, error)
- type ConfigBuilder
- type DVKey
- type DomainValidation
- type Domains
- type DomainsWhiteList
- type Node
- type Plugin
- type Plugins
- type Ports
- type ProtoCommandIface
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultRoot = "/tb" DefaultP2PListenFormat = "/ip4/0.0.0.0/tcp/%d" DefaultHTTPListen = "0.0.0.0:443" )
View Source
var WaitForSwamDuration = 10 * time.Second
Functions ¶
func NewLiteNode ¶
Types ¶
type ConfigBuilder ¶
type DomainValidation ¶
type Domains ¶
type Domains struct { Key DVKey `yaml:"key"` Whitelist DomainsWhiteList `yaml:"whitelist"` Generated string `yaml:"generated"` }
type DomainsWhiteList ¶
type Node ¶ added in v1.0.5
type Node struct { Root string Shape string Protocols []string Peers []string P2PListen []string P2PAnnounce []string Ports map[string]int // TODO: use a struct Location *seerIface.Location NetworkFqdn string HttpListen string GeneratedDomain string ServicesDomain string Node peer.Node PrivateKey []byte Databases kvdb.Factory ClientNode peer.Node SwarmKey []byte Http http.Service EnableHTTPS bool Verbose bool DevMode bool Plugins DomainValidation DomainValidation }
type Ports ¶ added in v1.0.5
type ProtoCommandIface ¶
type Source ¶
type Source struct { Privatekey string Swarmkey string Protocols []string `yaml:",omitempty"` P2PListen []string `yaml:"p2p-listen"` P2PAnnounce []string `yaml:"p2p-announce"` Ports Ports `yaml:"ports"` Location *seerIface.Location `yaml:"location,omitempty"` Peers []string `yaml:",omitempty"` NetworkFqdn string `yaml:"network-fqdn"` Domains Domains `yaml:"domains"` Plugins }
Click to show internal directories.
Click to hide internal directories.