Documentation ¶
Index ¶
- Variables
- func DaemonContext(cctx *cli.Context) context.Context
- func GetAPI(ctx *cli.Context) (api.Common, jsonrpc.ClientCloser, error)
- func GetRawAPI(ctx *cli.Context, t repo.RepoType) (string, http.Header, error)
- func NewCliError(s string) error
- func ReqContext(cctx *cli.Context) context.Context
- type APIInfo
- type ApiConnector
- type ErrCmdFailed
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []*cli.Command{
withCategory("basic", blsCmd),
}
View Source
var CommonCommands = []*cli.Command{
blsCmd,
}
Functions ¶
func DaemonContext ¶
func NewCliError ¶
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 APIInfo ¶
type APIInfo struct { Addr multiaddr.Multiaddr Token []byte }
func (APIInfo) AuthHeader ¶
type ErrCmdFailed ¶
type ErrCmdFailed struct {
// contains filtered or unexported fields
}
func (*ErrCmdFailed) Error ¶
func (e *ErrCmdFailed) Error() string
Click to show internal directories.
Click to hide internal directories.