Documentation
¶
Index ¶
- Variables
- func NewLiteNode(ctx context.Context, config *Protocol, databaseName string) (peer.Node, error)
- func NewNode(ctx context.Context, config *Protocol, databaseName string) (peer.Node, error)
- type ConfigBuilder
- type DVKey
- type DomainValidation
- type Domains
- type DomainsWhiteList
- type Plugin
- type Plugins
- type ProtoCommandIface
- type Protocol
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DatabasePath string = "/tb/storage/databases/" DefaultP2PListenFormat string = "/ip4/0.0.0.0/tcp/%d" DefaultHTTPListen string = "0.0.0.0:443" DefaultCAFileName string = "/tb/priv/fullchain.pem" DefaultKeyFileName string = "/tb/priv/privkey.pem" )
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"`
Services string `yaml:"services"`
Generated string `yaml:"generated"`
}
type DomainsWhiteList ¶
type ProtoCommandIface ¶
type Protocol ¶
type Protocol struct {
Root string
Shape string
Branch string
Protocols []string
Peers []string
P2PListen []string
P2PAnnounce []string
Ports map[string]int // TODO: use a struct
Location *seerIface.Location
NetworkUrl 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 Source ¶
type Source struct {
Privatekey string
Swarmkey string
Protocols []string `yaml:",omitempty"`
P2PListen []string `yaml:"p2p-listen"`
P2PAnnounce []string `yaml:"p2p-announce"`
Ports map[string]int
Location *seerIface.Location `yaml:"location,omitempty"`
Peers []string `yaml:",omitempty"`
HttpListen string `yaml:"http-listen,omitempty"`
NetworkUrl string `yaml:"network-url"`
Domains Domains `yaml:"domains"`
Plugins
}
Click to show internal directories.
Click to hide internal directories.