core

package
v0.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Components

func Components(cfg Config) fx.Option

Components collects all the components and services related to managing the relationship with the Core node.

func HeaderListener added in v0.3.0

func HeaderListener(
	lc fx.Lifecycle,
	ex *core.BlockFetcher,
	bcast header.Broadcaster,
	dag format.DAGService,
	construct header.ConstructFn,
) *headercore.Listener

func RemoteClient

func RemoteClient(cfg Config) (core.Client, error)

RemoteClient provides a constructor for core.Client over RPC.

Types

type Config

type Config struct {
	Protocol   string
	RemoteAddr string
	GRPCAddr   string
}

Config combines all configuration fields for managing the relationship with a Core node.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns default configuration for Core subsystem.

Jump to

Keyboard shortcuts

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