Documentation ¶
Index ¶
- func ConstructModule(tp node.Type, cfg *Config, options ...fx.Option) fx.Option
- func Flags() *flag.FlagSet
- func ParseFlags(cmd *cobra.Command, cfg *Config) error
- func Remote(cfg Config) (core.Client, error)
- func WithClient(client core.Client) fx.Option
- func WithHeaderConstructFn(construct header.ConstructFn) fx.Option
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructModule ¶
ConstructModule collects all the components and services related to managing the relationship with the Core node.
func ParseFlags ¶
ParseFlags parses Core flags from the given cmd and saves them to the passed config.
func WithClient ¶
WithClient sets custom client for core process
func WithHeaderConstructFn ¶
func WithHeaderConstructFn(construct header.ConstructFn) fx.Option
WithHeaderConstructFn sets custom func that creates extended header
Types ¶
type Config ¶
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.
Click to show internal directories.
Click to hide internal directories.