Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2021 Changes in this version + 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 struct + Addr string + Token []byte + func GetAPIInfo(ctx *cli.Context, t repo.RepoType) (APIInfo, error) + func ParseApiInfo(s string) APIInfo + func (a APIInfo) AuthHeader() http.Header + func (a APIInfo) DialArgs() (string, error) + func (a APIInfo) Host() (string, error) + type GetStorageMinerOption func(*GetStorageMinerOptions) + type GetStorageMinerOptions struct + PreferHttp bool