base

package
v1.0.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagHome          = cli.HomeFlag
	FlagEVMPassphrase = "evm.passphrase"
)
View Source
const (
	FlagBootstrappers    = "p2p.bootstrappers"
	FlagP2PListenAddress = "p2p.listen-addr"
	FlagP2PNickname      = "p2p.nickname"
	FlagGRPCInsecure     = "grpc.insecure"
)

Variables

This section is empty.

Functions

func AddBootstrappersFlag

func AddBootstrappersFlag(cmd *cobra.Command)

func AddGRPCInsecureFlag

func AddGRPCInsecureFlag(cmd *cobra.Command)

func AddP2PListenAddressFlag

func AddP2PListenAddressFlag(cmd *cobra.Command)

func AddP2PNicknameFlag

func AddP2PNicknameFlag(cmd *cobra.Command)

func DefaultServicePath

func DefaultServicePath(serviceName string) (string, error)

DefaultServicePath constructs the default Blobstream store path for the provided service. It tries to get the home directory from an environment variable called `<service_name_in_upper_case>_HOME`. If not set, then reverts to using the default user home directory and returning `~/.<service_name_in_lower_case>`.

Types

type Config

type Config struct {
	Home          string
	EVMPassphrase string
}

Config contains the base config that all commands should have. Logger related configuration will be added later.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL