Documentation
¶
Index ¶
- func DaemonContext(cctx *cli.Context) context.Context
- func GetAPI(ctx *cli.Context) (common.ICommon, jsonrpc.ClientCloser, error)
- func GetAPIInfo(ctx *cli.Context) (httpparse.APIInfo, error)
- func GetFullAPI(ctx *cli.Context) (api.IFullAPI, jsonrpc.ClientCloser, error)
- func GetFullAPIWithPWD(ctx *cli.Context) (api.IFullAPI, jsonrpc.ClientCloser, error)
- func GetRawAPI(ctx *cli.Context) (string, http.Header, error)
- func ReqContext(cctx *cli.Context) context.Context
- func ShowHelp(cctx *cli.Context, err error) error
- type ErrCmdFailed
- type PrintHelpErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DaemonContext ¶
func GetAPIInfo ¶
func GetFullAPI ¶
func GetFullAPI(ctx *cli.Context) (api.IFullAPI, jsonrpc.ClientCloser, error)
func GetFullAPIWithPWD ¶
func GetFullAPIWithPWD(ctx *cli.Context) (api.IFullAPI, jsonrpc.ClientCloser, error)
func ReqContext ¶
ReqContext returns context for cli execution. Calling it for the first time installs SIGTERM handler that will close returned context. Not safe for concurrent execution.
Types ¶
type ErrCmdFailed ¶
type ErrCmdFailed struct {
// contains filtered or unexported fields
}
func (*ErrCmdFailed) Error ¶
func (e *ErrCmdFailed) Error() string
type PrintHelpErr ¶
type PrintHelpErr struct { Err error Ctx *cli.Context }
func (*PrintHelpErr) Error ¶
func (e *PrintHelpErr) Error() string
func (*PrintHelpErr) Is ¶
func (e *PrintHelpErr) Is(o error) bool
func (*PrintHelpErr) Unwrap ¶
func (e *PrintHelpErr) Unwrap() error
Click to show internal directories.
Click to hide internal directories.