services

package
v0.0.0-...-dba23ac Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: ISC Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureFile

func EnsureFile(filename string) error

func SimpleCmd

func SimpleCmd(cmdString ...string) (output string, err error)

Types

type Bitcoind

type Bitcoind struct {
	sync.RWMutex

	ModeStart chan bool
	// contains filtered or unexported fields
}

func (*Bitcoind) Finalise

func (bitcoind *Bitcoind) Finalise() error

func (*Bitcoind) GetInfo

func (bitcoind *Bitcoind) GetInfo() ([]byte, error)

func (*Bitcoind) Initialise

func (bitcoind *Bitcoind) Initialise() error

func (*Bitcoind) IsRunning

func (bitcoind *Bitcoind) IsRunning() bool

func (*Bitcoind) Run

func (bitcoind *Bitcoind) Run(args interface{}, shutdown <-chan struct{})

type BitmarkCli

type BitmarkCli struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*BitmarkCli) Finalise

func (bitmarkCli *BitmarkCli) Finalise() error

func (*BitmarkCli) Generate

func (bitmarkCli *BitmarkCli) Generate() ([]byte, error)

func (*BitmarkCli) Info

func (bitmarkCli *BitmarkCli) Info(bitmarkCliConfigFile string) ([]byte, error)

func (*BitmarkCli) Initialise

func (bitmarkCli *BitmarkCli) Initialise() error

func (*BitmarkCli) Issue

func (bitmarkCli *BitmarkCli) Issue(bitmarkCliIssue BitmarkCliIssueType) ([]byte, error)

func (*BitmarkCli) KeyPair

func (bitmarkCli *BitmarkCli) KeyPair(bitmarkCliKeyPair BitmarkCliKeyPairType, bitmarkCliConfigFile string) ([]byte, error)

func (*BitmarkCli) Setup

func (bitmarkCli *BitmarkCli) Setup(bitmarkCliSetup BitmarkCliSetupType, filePath string, bitmarkWebguiConfig *configuration.Configuration) ([]byte, error)

func (*BitmarkCli) Transfer

func (bitmarkCli *BitmarkCli) Transfer(bitmarkCliTransfer BitmarkCliTransferType) ([]byte, error)

type BitmarkCliIssueType

type BitmarkCliIssueType struct {
	Config      string `json:"config"`
	Identity    string `json:"identity"`
	Password    string `json:"password"`
	Asset       string `json:"asset"`
	Description string `json:"description"`
	Fingerprint string `json:"fingerprint"`
	Quantity    int    `json:"quantity"`
}

type BitmarkCliKeyPairType

type BitmarkCliKeyPairType struct {
	Password string `json:"password"`
}

type BitmarkCliSetupType

type BitmarkCliSetupType struct {
	Config      string `json:"config"`
	Identity    string `json:"identity"`
	Password    string `json:"password"`
	Network     string `json:"network"`
	Connect     string `json:"connect"`
	Description string `json:"description"`
	PrivateKey  string `json:"private_key"`
}

type BitmarkCliTransferType

type BitmarkCliTransferType struct {
	Config   string `json:"config"`
	Identity string `json:"identity"`
	Password string `json:"password"`
	Txid     string `json:"txid"`
	Receiver string `json:"receiver"`
}

type BitmarkConsole

type BitmarkConsole struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*BitmarkConsole) Finalise

func (bitmarkConsole *BitmarkConsole) Finalise() error

func (*BitmarkConsole) Initialise

func (bitmarkConsole *BitmarkConsole) Initialise(binFile string) error

func (*BitmarkConsole) IsRunning

func (bitmarkConsole *BitmarkConsole) IsRunning() bool

func (*BitmarkConsole) Port

func (bitmarkConsole *BitmarkConsole) Port() string

func (*BitmarkConsole) StartBitmarkConsole

func (bitmarkConsole *BitmarkConsole) StartBitmarkConsole() error

func (*BitmarkConsole) StopBitmarkConsole

func (bitmarkConsole *BitmarkConsole) StopBitmarkConsole() error

type BitmarkPay

type BitmarkPay struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*BitmarkPay) Decrypt

func (bitmarkPay *BitmarkPay) Decrypt(bitmarkPayType BitmarkPayType) error

func (*BitmarkPay) Encrypt

func (bitmarkPay *BitmarkPay) Encrypt(bitmarkPayType BitmarkPayType) error

func (*BitmarkPay) Finalise

func (bitmarkPay *BitmarkPay) Finalise() error

func (*BitmarkPay) GetBitmarkPayJobHash

func (bitmarkPay *BitmarkPay) GetBitmarkPayJobHash() string

func (*BitmarkPay) GetBitmarkPayJobResult

func (bitmarkPay *BitmarkPay) GetBitmarkPayJobResult(bitmarkPayType BitmarkPayType) ([]byte, error)

func (*BitmarkPay) GetBitmarkPayJobType

func (bitmarkPay *BitmarkPay) GetBitmarkPayJobType(hashString string) string

func (*BitmarkPay) Info

func (bitmarkPay *BitmarkPay) Info(bitmarkPayType BitmarkPayType) error

func (*BitmarkPay) Initialise

func (bitmarkPay *BitmarkPay) Initialise(binFile string) error

func (*BitmarkPay) Kill

func (bitmarkPay *BitmarkPay) Kill() error

func (*BitmarkPay) Pay

func (bitmarkPay *BitmarkPay) Pay(bitmarkPayType BitmarkPayType) error

func (*BitmarkPay) Restore

func (bitmarkPay *BitmarkPay) Restore(bitmarkPayType BitmarkPayType) error

func (*BitmarkPay) Status

func (bitmarkPay *BitmarkPay) Status(hashString string) (string, error)

type BitmarkPayInterface

type BitmarkPayInterface interface {
	Encrypt(BitmarkPayType) error
	Decrypt(BitmarkPayType) error
	Info(BitmarkPayType) error
	Pay(BitmarkPayType) error
	Restore(BitmarkPayType) error
	Status(string) (string, error)
	Kill() error
	GetBitmarkPayJobHash() string
	GetBitmarkPayJobResult(BitmarkPayType) ([]byte, error)
	GetBitmarkPayJobType(string) string
}

type BitmarkPayJob

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

type BitmarkPayType

type BitmarkPayType struct {
	Net       string   `json:"net"`
	Config    string   `json:"config"`
	Password  string   `json:"password"`
	Txid      string   `json:"txid"`
	Addresses []string `json:"addresses"`
	JobHash   string   `json:"job_hash"`
	Seed      string   `json:"seed"`
}

type Bitmarkd

type Bitmarkd struct {
	sync.RWMutex

	ModeStart chan bool
	// contains filtered or unexported fields
}

func (*Bitmarkd) Connect

func (bitmarkd *Bitmarkd) Connect(connect string) (net.Conn, error)

connect to bitmarkd RPC

func (*Bitmarkd) Finalise

func (bitmarkd *Bitmarkd) Finalise() error

func (*Bitmarkd) GetInfo

func (bitmarkd *Bitmarkd) GetInfo(client *netrpc.Client) (*rpc.InfoReply, error)

func (*Bitmarkd) Initialise

func (bitmarkd *Bitmarkd) Initialise(configFile string) error

func (*Bitmarkd) IsRunning

func (bitmarkd *Bitmarkd) IsRunning() bool

func (*Bitmarkd) Run

func (bitmarkd *Bitmarkd) Run(args interface{}, shutdown <-chan struct{})

func (*Bitmarkd) Setup

func (bitmarkd *Bitmarkd) Setup(chain string, webguiConfigFile string, webguiConfig *configuration.Configuration) error

type MockBitmarkPay

type MockBitmarkPay struct {
	mock.Mock
}

func (*MockBitmarkPay) Encrypt

func (mock *MockBitmarkPay) Encrypt(bitmarkPayType BitmarkPayType) error

func (*MockBitmarkPay) GetBitmarkPayJobHash

func (mock *MockBitmarkPay) GetBitmarkPayJobHash() string

func (*MockBitmarkPay) GetBitmarkPayJobResult

func (mock *MockBitmarkPay) GetBitmarkPayJobResult(bitmarkPayType BitmarkPayType) ([]byte, error)

func (*MockBitmarkPay) GetBitmarkPayJobType

func (mock *MockBitmarkPay) GetBitmarkPayJobType(hashString string) string

func (*MockBitmarkPay) Info

func (mock *MockBitmarkPay) Info(bitmarkPayType BitmarkPayType) error

func (*MockBitmarkPay) Kill

func (mock *MockBitmarkPay) Kill() error

func (*MockBitmarkPay) Pay

func (mock *MockBitmarkPay) Pay(bitmarkPayType BitmarkPayType) error

func (*MockBitmarkPay) Restore

func (mock *MockBitmarkPay) Restore(bitmarkPayType BitmarkPayType) error

func (*MockBitmarkPay) Status

func (mock *MockBitmarkPay) Status(hashString string) string

type Prooferd

type Prooferd struct {
	sync.RWMutex

	ModeStart chan bool
	// contains filtered or unexported fields
}

func (*Prooferd) Finalise

func (prooferd *Prooferd) Finalise() error

func (*Prooferd) Initialise

func (prooferd *Prooferd) Initialise(configFile string) error

func (*Prooferd) IsRunning

func (prooferd *Prooferd) IsRunning() bool

func (*Prooferd) Run

func (prooferd *Prooferd) Run(args interface{}, shutdown <-chan struct{})

func (*Prooferd) Setup

func (prooferd *Prooferd) Setup(chain string, webguiConfigFile string, webguiConfig *configuration.Configuration) error

Jump to

Keyboard shortcuts

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