core

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 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,
	bServ blockservice.BlockService,
	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 {
	IP       string
	RPCPort  string
	GRPCPort string
}

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

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns default configuration for managing the node's connection to a Celestia-Core endpoint.

Jump to

Keyboard shortcuts

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