Documentation ¶
Index ¶
- func Init(fsets ...*flag.FlagSet) *cobra.Command
- func MiscFlags() *flag.FlagSet
- func NodeConfig(ctx context.Context) nodebuilder.Config
- func NodeFlags() *flag.FlagSet
- func NodeOptions(ctx context.Context) []fx.Option
- func NodeType(ctx context.Context) node.Type
- func ParseMiscFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)
- func ParseNodeFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)
- func Start(fsets ...*flag.FlagSet) *cobra.Command
- func StorePath(ctx context.Context) string
- func WithNodeConfig(ctx context.Context, config *nodebuilder.Config) context.Context
- func WithNodeOptions(ctx context.Context, opts ...fx.Option) context.Context
- func WithNodeType(ctx context.Context, tp node.Type) context.Context
- func WithStorePath(ctx context.Context, storePath string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init constructs a CLI command to initialize Celestia Node of any type with the given flags.
func NodeConfig ¶ added in v0.4.0
func NodeConfig(ctx context.Context) nodebuilder.Config
NodeConfig reads the node config from the context.
func NodeOptions ¶ added in v0.3.0
NodeOptions returns config options parsed from Environment(Flags, ENV vars, etc)
func ParseMiscFlags ¶ added in v0.2.0
ParseMiscFlags parses miscellaneous flags from the given cmd and applies values to Env.
func ParseNodeFlags ¶ added in v0.2.0
ParseNodeFlags parses Node flags from the given cmd and applies values to Env.
func Start ¶
Start constructs a CLI command to start Celestia Node daemon of any type with the given flags.
func WithNodeConfig ¶ added in v0.4.0
WithNodeConfig sets the node config in the Env.
func WithNodeOptions ¶ added in v0.3.0
WithNodeOptions add new options to Env.
func WithNodeType ¶ added in v0.3.0
WithNodeType sets the node type in the given context.
Types ¶
This section is empty.