constellation

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConstellationIsntInit = errors.New("Constellation not in use")
)

Functions

func RunNode

func RunNode(socketPath string) error

Types

type Client

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

func NewClient

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

func (*Client) ReceivePayload

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

func (*Client) SendPayload

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

func (*Client) SendSignedPayload

func (c *Client) SendSignedPayload(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)

type Constellation

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

func MaybeNew

func MaybeNew(path string) *Constellation

func MustNew

func MustNew(path string) *Constellation

func New

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

func (*Constellation) Receive

func (g *Constellation) Receive(data []byte) ([]byte, error)

func (*Constellation) Send

func (g *Constellation) Send(data []byte, from string, to []string) (out []byte, err error)

func (*Constellation) SendSignedTx

func (g *Constellation) SendSignedTx(data []byte, to []string) (out []byte, err error)

Jump to

Keyboard shortcuts

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