daemon

package
v0.0.0-...-bebc87d Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendCommand

func SendCommand(command *Command, server string) error

SendCommand connects to the address on the network with a timeout and encodes the connection into JSON

Types

type Command

type Command struct {
	Command string
	Args    []string
	Opts    map[string]interface{}
}

Command accepts user input and can be sent to the running IPFS node

func NewCommand

func NewCommand() *Command

type DaemonListener

type DaemonListener struct {
	// contains filtered or unexported fields
}

DaemonListener listens to an initialized IPFS node and can send it commands instead of starting up a new set of connections

func NewDaemonListener

func NewDaemonListener(ipfsnode *core.IpfsNode, addr *ma.Multiaddr) (*DaemonListener, error)

func (*DaemonListener) Close

func (dl *DaemonListener) Close() error

func (*DaemonListener) Listen

func (dl *DaemonListener) Listen()

Jump to

Keyboard shortcuts

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