bchwallet: github.com/gcash/bchwallet/boot Index | Files

package boot

import "github.com/gcash/bchwallet/boot"


Package Files

config.go log.go main.go params.go rpcserver.go signal.go signalsigterm.go version.go walletsetup.go


const AuthenticationTokenKey = "AuthenticationToken"

AuthenticationTokenKey is the key used in the context to authenticate clients. If this is set to anything other than "" in the config, then the server expects the client to set a key value in the context metadata to 'AuthenticationToken: cfg.AuthToken'

func SimulateInterrupt Uses

func SimulateInterrupt()

SimulateInterrupt requests invoking the clean termination process by an internal component instead of a SIGINT.

func WalletMain Uses

func WalletMain(optionalConfigPath *string) error

WalletMain is a work-around main function that is required since deferred functions (such as log flushing) are not called with calls to os.Exit. Instead, main runs this function and checks for a non-nil error, at which point any defers have already run, and if the error is non-nil, the program can be exited with an error exit status.

Package boot imports 46 packages (graph) and is imported by 3 packages. Updated 2019-12-09. Refresh now. Tools for package owners.