github.com/celestiaorg/celestia-node@v0.15.0-beta.1/nodebuilder/core/opts.go (about) 1 package core 2 3 import ( 4 "go.uber.org/fx" 5 6 "github.com/celestiaorg/celestia-node/core" 7 "github.com/celestiaorg/celestia-node/header" 8 "github.com/celestiaorg/celestia-node/libs/fxutil" 9 ) 10 11 // WithClient sets custom client for core process 12 func WithClient(client core.Client) fx.Option { 13 return fxutil.ReplaceAs(client, new(core.Client)) 14 } 15 16 // WithHeaderConstructFn sets custom func that creates extended header 17 func WithHeaderConstructFn(construct header.ConstructFn) fx.Option { 18 return fx.Replace(construct) 19 }