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 piece.PieceDealInfo, ...) (lapi.SectorOffset, error)
- func (p *CurioAPI) Cordon(ctx context.Context) error
- func (p *CurioAPI) Info(ctx context.Context) (*ltypes.NodeInfo, 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) Uncordon(ctx context.Context) error
- func (p *CurioAPI) Version(context.Context) ([]int, 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 (p *CurioAPI) AllocatePieceToSector(ctx context.Context, maddr address.Address, piece piece.PieceDealInfo, rawSize int64, source url.URL, header http.Header) (lapi.SectorOffset, error)
this method is currently unused, might be back when we get markets into curio
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.