node

package
v1.0.0-release Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecuraChainDataDirectory

func CreateSecuraChainDataDirectory(log *ipfsLog.ZapEventLogger, config *config.Config) (string, error)

func GenerateKeys

func GenerateKeys(cfg *config.Config, log *ipfsLog.ZapEventLogger)

func Initialize

func Initialize(log *ipfsLog.ZapEventLogger, cfg config.Config) host.Host

func InitializeIPFSNode

func InitializeIPFSNode(ctx context.Context, cfg *config.Config, log *ipfsLog.ZapEventLogger) (iface.CoreAPI, *core.IpfsNode)

func LoadConfig

func LoadConfig(yamlConfigFilePath *string, log *ipfsLog.ZapEventLogger) *config.Config

func LoadKeys

func LoadKeys(cfg *config.Config, log *ipfsLog.ZapEventLogger) (ecdsa.KeyPair, aes.Key)

func PubsubKeepRelayConnectionAlive

func PubsubKeepRelayConnectionAlive(ctx context.Context,
	ps *pubsub.PubSub, host host.Host, cfg *config.Config, log *ipfsLog.ZapEventLogger)

func PubsubNetworkVisualisation

func PubsubNetworkVisualisation(ctx context.Context, ps *pubsub.PubSub, host host.Host,
	nodeType string, cfg *config.Config, log *ipfsLog.ZapEventLogger)

func SetupDHTDiscovery

func SetupDHTDiscovery(ctx context.Context, cfg *config.Config, host host.Host, bootstrapNode bool, log *ipfsLog.ZapEventLogger) *network.DHT

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL