driver

package
v0.0.0-...-80bd5bb Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Soterd

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

Soterd provides a bit of an abstraction from the soterd rpctest.Harness interface. (at some point we may want to pull soterd-driver-functionality out of rpctest package)

func NewSoterd

func NewSoterd(net *chaincfg.Params) (*Soterd, error)

NewSoterd returns a new soterd process

func (*Soterd) Addrs

func (s *Soterd) Addrs() ([]string, []string, error)

Addrs returns p2p address info for the node, and peer addresses its aware of

func (*Soterd) Client

func (s *Soterd) Client() *rpcclient.Client

Client returns a pointer to an rpc client connection to the soterd process

func (*Soterd) IsConnectedTo

func (s *Soterd) IsConnectedTo(to string) (bool, error)

IsConnectedTo returns true if the node is connected to the address

func (*Soterd) Start

func (s *Soterd) Start() error

Start starts the soterd process

func (*Soterd) Stop

func (s *Soterd) Stop() error

Stop stops the soterd process

Jump to

Keyboard shortcuts

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