Documentation ¶
Index ¶
- Variables
- func AuthCmd(fsets ...*flag.FlagSet) *cobra.Command
- func DecodeToBytes(param string) ([]byte, error)
- func Init(fsets ...*flag.FlagSet) *cobra.Command
- func InitClient(cmd *cobra.Command, _ []string) error
- func MiscFlags() *flag.FlagSet
- func Network(ctx context.Context) p2p.Network
- func NewBridge(options ...func(*cobra.Command, []*pflag.FlagSet)) *cobra.Command
- func NewFull(options ...func(*cobra.Command, []*pflag.FlagSet)) *cobra.Command
- func NewLight(options ...func(*cobra.Command, []*pflag.FlagSet)) *cobra.Command
- 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 ParseClientFromCtx(ctx context.Context) (*rpc.Client, error)
- func ParseMiscFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)
- func ParseNodeFlags(ctx context.Context, cmd *cobra.Command, network p2p.Network) (context.Context, error)
- func ParseV0Namespace(param string) (gosquare.Namespace, error)
- func PersistentPreRunEnv(cmd *cobra.Command, nodeType node.Type, _ []string) error
- func PrintOutput(data interface{}, err error, formatData func(interface{}) interface{}) error
- func RPCFlags() *flag.FlagSet
- func RemoveConfigCmd(fsets ...*flag.FlagSet) *cobra.Command
- func ResetStore(fsets ...*flag.FlagSet) *cobra.Command
- func Start(options ...func(*cobra.Command)) *cobra.Command
- func StorePath(ctx context.Context) string
- func UpdateConfigCmd(fsets ...*flag.FlagSet) *cobra.Command
- func WithFlagSet(fset []*flag.FlagSet) func(*cobra.Command)
- func WithNetwork(ctx context.Context, network p2p.Network) context.Context
- 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 ¶
var ( LogLevelFlag = "log.level" LogLevelModuleFlag = "log.level.module" )
Functions ¶
func DecodeToBytes ¶ added in v0.11.0
DecodeToBytes decodes a Base64 or hex input string into a byte slice.
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 ParseClientFromCtx ¶ added in v0.11.0
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
func ParseNodeFlags(ctx context.Context, cmd *cobra.Command, network p2p.Network) (context.Context, error)
ParseNodeFlags parses Node flags from the given cmd and applies values to Env.
func ParseV0Namespace ¶ added in v0.11.0
ParseV0Namespace parses a namespace from a base64 or hex string. The param is expected to be the user-specified portion of a v0 namespace ID (i.e. the last 10 bytes).
func PersistentPreRunEnv ¶ added in v0.11.0
func PrintOutput ¶ added in v0.11.0
func ResetStore ¶ added in v0.9.0
ResetStore constructs a CLI command to reset the store of Celestia Node.
func Start ¶
Start constructs a CLI command to start Celestia Node daemon of any type with the given flags.
func WithFlagSet ¶ added in v0.12.1
WithFlagSet adds the given flagset to the command.
func WithNetwork ¶ added in v0.5.0
WithNetwork sets the network in the given context.
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.