Documentation ¶
Overview ¶
This package starts up the daemon and everything else. It contains the entry point for Android bindings: the Run() function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRunning ¶
func IsRunning() bool
IsRunning returns a bool indicating whether the daemon is running.
func Run ¶
func Run(repoPath, gatewayPort, interfaces string)
Run starts up the daemon and returns immediately.
repoPath is a path to a directory for the IPFS repo. It doesn't need to exist.
interfaces is a newline-delimited list of network interface definitions. It is only needed on Android. See get_interfaces.java for code of how this string is generated.
gatewayPort is the TCP port the gateway runs on.
func RunSynchronous ¶
RunSynchronous is like Run but returns an exit code greater than 0 if there are any errors. It does not return unless there is an error and the daemon has stopped.
Types ¶
This section is empty.