Documentation ¶
Index ¶
- func AuthCmd(fsets ...*flag.FlagSet) *cobra.Command
- func DefaultNodeStorePath(tp string, network string) (string, error)
- func Init(fsets ...*flag.FlagSet) *cobra.Command
- func MiscFlags() *flag.FlagSet
- func Network(ctx context.Context) p2p.Network
- func NodeConfig(ctx context.Context) nodebuilder.Config
- func NodeFlags() *flag.FlagSet
- func NodeInfo(ctx context.Context) node.BuildInfo
- 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, network p2p.Network) (context.Context, error)
- func RemoveConfigCmd(fsets ...*flag.FlagSet) *cobra.Command
- func ResetStore(fsets ...*flag.FlagSet) *cobra.Command
- func Start(fsets ...*flag.FlagSet) *cobra.Command
- func StorePath(ctx context.Context) string
- func UpdateConfigCmd(fsets ...*flag.FlagSet) *cobra.Command
- func WithNetwork(ctx context.Context, network p2p.Network) context.Context
- func WithNodeBuildInfo(ctx context.Context, info *node.BuildInfo) 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 ¶
This section is empty.
Functions ¶
func DefaultNodeStorePath ¶
DefaultNodeStorePath constructs the default node store path using the given node type and network.
func Init ¶
Init constructs a CLI command to initialize Elysium Node of any type with the given flags.
func NodeConfig ¶
func NodeConfig(ctx context.Context) nodebuilder.Config
NodeConfig reads the node config from the context.
func NodeOptions ¶
NodeOptions returns config options parsed from Environment(Flags, ENV vars, etc)
func ParseMiscFlags ¶
ParseMiscFlags parses miscellaneous flags from the given cmd and applies values to Env.
func ParseNodeFlags ¶
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 ResetStore ¶
ResetStore constructs a CLI command to reset the store of Elysium Node.
func Start ¶
Start constructs a CLI command to start Elysium Node daemon of any type with the given flags.
func WithNetwork ¶
WithNetwork sets the network in the given context.
func WithNodeBuildInfo ¶
WithNodeConfig sets the node config build information.
func WithNodeConfig ¶
WithNodeConfig sets the node config in the Env.
func WithNodeOptions ¶
WithNodeOptions add new options to Env.
func WithNodeType ¶
WithNodeType sets the node type in the given context.
Types ¶
This section is empty.