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 Bundle
- type BundleOrigin
- type DVKey
- type DomainValidation
- type Domains
- 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 Bundle ¶ added in v1.1.1
type Bundle struct { Origin BundleOrigin `yaml:"origin"` Source }
type BundleOrigin ¶ added in v1.1.1
type DomainValidation ¶
type Node ¶ added in v1.0.5
type Node struct { Root string Shape string Services []string Peers []string P2PListen []string P2PAnnounce []string Ports map[string]int // TODO: use a struct Location *seerIface.Location NetworkFqdn string GeneratedDomain string AliasDomains []string HttpListen string AliasDomainsRegExp []*regexp.Regexp GeneratedDomainRegExp *regexp.Regexp ServicesDomainRegExp *regexp.Regexp 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 `yaml:"privatekey"` Swarmkey string `yaml:"swarmkey"` Services []string `yaml:"services,omitempty"` P2PListen []string `yaml:"p2p-listen"` P2PAnnounce []string `yaml:"p2p-announce"` Ports Ports `yaml:"ports"` Location *seerIface.Location `yaml:"location,omitempty"` Peers []string `yaml:"peers,omitempty"` NetworkFqdn string `yaml:"network-fqdn"` Domains Domains `yaml:"domains"` Plugins }
Click to show internal directories.
Click to hide internal directories.