blackbox

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBlackboxIsNotStarted = errors.New("blackbox is not started")
)

Functions

func RunNode

func RunNode(socketPath string) error

Types

type Blackbox

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

func CreateNew

func CreateNew(path string) *Blackbox

func New

func New(path string) (*Blackbox, error)

func (*Blackbox) Get

func (b *Blackbox) Get(data []byte) ([]byte, error)

func (*Blackbox) Post

func (b *Blackbox) Post(data []byte, from string, to []string) (out []byte, err error)

func (*Blackbox) PostRawTransaction

func (b *Blackbox) PostRawTransaction(data []byte, to []string) (out []byte, err error)

type Client

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

func CreateClient

func CreateClient(socketPath string) (*Client, error)

func (*Client) GetData

func (c *Client) GetData(key []byte) ([]byte, error)

func (*Client) PostData

func (c *Client) PostData(pl []byte, b64From string, b64To []string) ([]byte, error)

func (*Client) PostDataRawTransaction

func (c *Client) PostDataRawTransaction(signedPayload []byte, b64To []string) ([]byte, error)

type Config

type Config struct {
	Socket  string `toml:"socket"`
	WorkDir string `toml:"workdir"`

	// Deprecated
	SocketPath string `toml:"socketPath"`
}

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

Jump to

Keyboard shortcuts

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