Documentation ¶
Overview ¶
Package rpc provides all direct access to this node.
Index ¶
- func CurioHandler(authv func(ctx context.Context, token string) ([]auth.Permission, error), ...) http.Handler
- func GetCurioAPI(ctx *cli.Context) (api.Curio, jsonrpc.ClientCloser, error)
- func ListenAndServe(ctx context.Context, dependencies *deps.Deps, shutdownChan chan struct{}) error
- type CurioAPI
- func (p *CurioAPI) AllocatePieceToSector(ctx context.Context, maddr address.Address, piece api.PieceDealInfo, ...) (api.SectorOffset, error)
- func (p *CurioAPI) LogList(ctx context.Context) ([]string, error)
- func (p *CurioAPI) LogSetLevel(ctx context.Context, subsystem, level string) error
- func (p *CurioAPI) Shutdown(context.Context) error
- func (p *CurioAPI) StorageAddLocal(ctx context.Context, path string) error
- func (p *CurioAPI) StorageDetachLocal(ctx context.Context, path string) error
- func (p *CurioAPI) StorageInit(ctx context.Context, path string, opts storiface.LocalStorageMeta) error
- func (p *CurioAPI) StorageLocal(ctx context.Context) (map[storiface.ID]string, error)
- func (p *CurioAPI) StorageStat(ctx context.Context, id storiface.ID) (fsutil.FsStat, error)
- func (p *CurioAPI) Version(context.Context) (api.Version, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurioHandler ¶
func GetCurioAPI ¶
Types ¶
type CurioAPI ¶
type CurioAPI struct { *deps.Deps paths.SectorIndex ShutdownChan chan struct{} }
func (*CurioAPI) AllocatePieceToSector ¶
func (*CurioAPI) LogSetLevel ¶
func (*CurioAPI) StorageAddLocal ¶
func (*CurioAPI) StorageDetachLocal ¶
func (*CurioAPI) StorageInit ¶
func (*CurioAPI) StorageLocal ¶
func (*CurioAPI) StorageStat ¶
Click to show internal directories.
Click to hide internal directories.