Versions in this module Expand all Collapse all v0 v0.6.1 Mar 20, 2020 v0.6.0 Mar 19, 2020 Changes in this version + const MULTIADDR_WSS_CODE + func BootstrapAddresses(bootstrapHost p2p.Node) []string + func NewDefaultBadger(path string) (datastore.Batching, error) + func NewS3(hsc *HumanStorageConfig) (datastore.Batching, error) + type Config struct + Blockstore blockstore.Blockstore + BootstrapNodes []string + BootstrapOnly bool + CertificateCache string + Datastore datastore.Batching + Gossip3NotaryGroupConfig *g3types.Config + Namespace string + NotaryGroupConfig *types.Config + Port int + PrivateKeySet *PrivateKeySet + PublicIP string + SecureWebSocketDomain string + TracingSystem TracingSystem + WebSocketPort int + func HumanConfigToConfig(hc HumanConfig) (*Config, error) + func TomlToConfig(path string) (*Config, error) + type HumanConfig struct + BootstrapOnly bool + CertificateCache string + Gossip3NotaryGroupConfig string + Namespace string + NotaryGroupConfig string + Port int + PrivateKeySet *HumanPrivateKeySet + PublicIP string + SecureWebSocketDomain string + Storage HumanStorageConfig + TracingSystem string + WebSocketPort int + type HumanPrivateKeySet struct + DestKeyHex string + SignKeyHex string + func (hpks *HumanPrivateKeySet) ToPrivateKeySet() (*PrivateKeySet, error) + type HumanStorageConfig struct + AccessKey string + Bucket string + CacheSize int + Kind string + LocalS3 bool + Path string + Region string + RegionEndpoint string + RootDirectory string + SecretKey string + func (hsc *HumanStorageConfig) ToBlockstore() (blockstore.Blockstore, error) + func (hsc *HumanStorageConfig) ToDatastore() (datastore.Batching, error) + type LegacyPrivateKeySet struct + BlsHexPrivateKey string + EcdsaHexPrivateKey string + func (lpks *LegacyPrivateKeySet) ToPrivateKeySet() (*PrivateKeySet, error) + type LegacyPublicKeySet struct + BlsHexPublicKey string + EcdsaHexPublicKey string + PeerIDBase58Key string + func (lpks *LegacyPublicKeySet) ToPublicKeySet() (*types.PublicKeySet, error) + type LocalNetwork struct + BootstrapAddrrs []string + BootstrapNode p2p.Node + Builders []*NodeBuilder + ClientNode p2p.Node + Nodes []p2p.Node + NotaryGroup *types.NotaryGroup + func NewLocalNetwork(ctx context.Context, namespace string, keys []*PrivateKeySet, ...) (*LocalNetwork, error) + func (ln *LocalNetwork) BootstrappedP2PNode(ctx context.Context, opts ...p2p.Option) (p2p.Node, error) + type NoDialWebSocketTransport struct + func NewNoDialWebsocketTransport(u *tptu.Upgrader) *NoDialWebSocketTransport + func (ndwst *NoDialWebSocketTransport) CanDial(a ma.Multiaddr) bool + type NodeBuilder struct + Config *Config + func (nb *NodeBuilder) Actor() *actor.PID + func (nb *NodeBuilder) Host() p2p.Node + func (nb *NodeBuilder) NotaryGroup() (*types.NotaryGroup, error) + func (nb *NodeBuilder) Start(ctx context.Context) error + func (nb *NodeBuilder) StartTracing() + func (nb *NodeBuilder) Stop() error + type PrivateKeySet struct + DestKey *ecdsa.PrivateKey + SignKey *bls.SignKey + type TracingSystem int + const ElasticTracing + const JaegerTracing + const NoTracing