core

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.9"

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeConfig

type NodeConfig struct {
	WalletConfig w.Config
	LogLevel     logging.Level
	LogFiles     bool
}

NodeConfig is used to configure the node

type TextileNode

type TextileNode struct {
	Wallet *w.Wallet
	// contains filtered or unexported fields
}

TextileNode is the main node interface for textile functionality

var Node *TextileNode

Node is the single TextileNode instance

func NewNode

func NewNode(config NodeConfig) (*TextileNode, string, error)

NewNode creates a new TextileNode

func (*TextileNode) GetGatewayAddr

func (t *TextileNode) GetGatewayAddr() string

GetGatewayAddr returns the gateway's address

func (*TextileNode) StartGateway

func (t *TextileNode) StartGateway(addr string)

StartGateway starts the gateway

func (*TextileNode) StartWallet

func (t *TextileNode) StartWallet() error

StopWallet starts the wallet

func (*TextileNode) StopGateway

func (t *TextileNode) StopGateway() error

StopGateway stops the gateway

func (*TextileNode) StopWallet

func (t *TextileNode) StopWallet() error

StopWallet stops the wallet

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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