bitcoind

package
v0.0.0-...-3b153a2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Native   Mode = "native"
	External      = "external"
	Neutrino      = "neutrino"
	Light         = "light"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base = base.Service

type BaseConfig

type BaseConfig = base.Config

type Config

type Config struct {
	BaseConfig

	Mode           string `usage:"%(name)s service mode"`
	Rpchost        string `usage:"External %(name)s RPC hostname"`
	Rpcport        uint16 `usage:"External %(name)s RPC port"`
	Rpcuser        string `usage:"External %(name)s RPC username"`
	Rpcpass        string `usage:"External %(name)s RPC password"`
	Zmqpubrawblock string `usage:"External %(name)s ZeroMQ raw blocks publication address"`
	Zmqpubrawtx    string `usage:"External %(name)s ZeroMQ raw transactions publication address"`
}

type Mode

type Mode string

type RpcParams

type RpcParams struct {
	Type           string `json:"type"`
	Host           string `json:"host"`
	Port           uint16 `json:"port"`
	Username       string `json:"username"`
	Password       string `json:"password"`
	Zmqpubrawblock string `json:"zmqpubrawblock"`
	Zmqpubrawtx    string `json:"zmqpubrawtx"`
}

type Service

type Service struct {
	*Base
	ContainerDataDir string
	RpcParams        RpcParams
	Mode             Mode
}

func New

func New(ctx types.Context, name string) (*Service, error)

func (*Service) Apply

func (t *Service) Apply(cfg interface{}) error

func (*Service) GetDefaultConfig

func (t *Service) GetDefaultConfig() interface{}

func (*Service) GetMode

func (t *Service) GetMode() string

func (*Service) GetRpcParams

func (t *Service) GetRpcParams() (interface{}, error)

Jump to

Keyboard shortcuts

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