lightclient

package
v1.77.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, newCli func() Lighter)

Register register light client

Types

type Config

type Config struct {
	EnableClients []string    `json:"clients,omitempty"`
	CommitAddr    string      `json:"commitAddr,omitempty"`
	CommitKey     string      `json:"commitKey,omitempty"`
	Neutrino      interface{} `json:"neutrino,omitempty"`
	Btc           interface{} `json:"btc,omitempty"`
}

Config light client config

type Lighter

type Lighter interface {
	// Init init client context
	Init(ctx context.Context, q queue.Queue, cfg *Config) error
	// Start client routine
	Start()
}

Lighter light client interface

func New

func New(name string) Lighter

New create light client

Directories

Path Synopsis
Package neutrino integrate btc light client neutrino
Package neutrino integrate btc light client neutrino

Jump to

Keyboard shortcuts

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