core

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Components

func Components(cfg Config, loader core.RepoLoader) fxutil.Option

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

func HeaderCoreListener added in v0.2.0

func HeaderCoreListener(
	lc fx.Lifecycle,
	ex *core.BlockFetcher,
	bcast header.Broadcaster,
	dag format.DAGService,
) *header.CoreListener

func RemoteClient

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

RemoteClient provides a constructor for core.Client over RPC.

Types

type Config

type Config struct {
	Remote       bool
	RemoteConfig struct {
		Protocol   string
		RemoteAddr 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