Documentation ¶
Index ¶
- func DaemonContext(cctx *cli.Context) context.Context
- func EnvForRepo(t repo.RepoType) string
- func GetAPI(ctx *cli.Context) (api.Common, jsonrpc.ClientCloser, error)
- func GetFullNodeAPI(ctx *cli.Context) (api.FullNode, jsonrpc.ClientCloser, error)
- func GetGatewayAPI(ctx *cli.Context) (api.GatewayAPI, jsonrpc.ClientCloser, error)
- func GetRawAPI(ctx *cli.Context, t repo.RepoType) (string, http.Header, error)
- func GetStorageMinerAPI(ctx *cli.Context, opts ...GetStorageMinerOption) (api.StorageMiner, jsonrpc.ClientCloser, error)
- func GetWorkerAPI(ctx *cli.Context) (api.WorkerAPI, jsonrpc.ClientCloser, error)
- func ReqContext(cctx *cli.Context) context.Context
- func StorageMinerUseHttp(opts *GetStorageMinerOptions)
- type APIInfo
- type GetStorageMinerOption
- type GetStorageMinerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DaemonContext ¶
func EnvForRepo ¶
func GetFullNodeAPI ¶
func GetGatewayAPI ¶
func GetGatewayAPI(ctx *cli.Context) (api.GatewayAPI, jsonrpc.ClientCloser, error)
func GetStorageMinerAPI ¶
func GetStorageMinerAPI(ctx *cli.Context, opts ...GetStorageMinerOption) (api.StorageMiner, jsonrpc.ClientCloser, error)
func GetWorkerAPI ¶
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.
func StorageMinerUseHttp ¶
func StorageMinerUseHttp(opts *GetStorageMinerOptions)
Types ¶
type GetStorageMinerOption ¶
type GetStorageMinerOption func(*GetStorageMinerOptions)
type GetStorageMinerOptions ¶
type GetStorageMinerOptions struct {
PreferHttp bool
}
Click to show internal directories.
Click to hide internal directories.