xud

package
v0.0.0-...-db461f0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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

	PreserveConfig bool `usage:"Preserve xud.conf file during updates"`
}

type ConnextInfo

type ConnextInfo struct {
	Status string
}

type Info

type Info struct {
	Lndbtc  LndInfo
	Lndltc  LndInfo
	Connext ConnextInfo
}

type LndInfo

type LndInfo struct {
	Status string
}

type RpcParams

type RpcParams struct {
	Type    string `json:"type"`
	Host    string `json:"host"`
	Port    uint16 `json:"port"`
	TlsCert string `json:"tlsCert"`
}

type Service

type Service struct {
	*Base
	RpcParams RpcParams
}

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) GetInfo

func (t *Service) GetInfo(ctx context.Context) (*Info, error)

func (*Service) GetRpcParams

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

func (*Service) GetStatus

func (t *Service) GetStatus(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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