sealworker

package
v1.16.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: Apache-2.0, MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WorkerHandler

func WorkerHandler(authv func(ctx context.Context, token string) ([]auth.Permission, error), remote http.HandlerFunc, a api.Worker, permissioned bool) http.Handler

Types

type Worker

type Worker struct {
	*sectorstorage.LocalWorker

	LocalStore *stores.Local
	Storage    stores.LocalStorage
	// contains filtered or unexported fields
}

func (*Worker) Discover

func (w *Worker) Discover(ctx context.Context) (apitypes.OpenRPCDocument, error)

func (*Worker) Enabled

func (w *Worker) Enabled(ctx context.Context) (bool, error)

func (*Worker) ProcessSession

func (w *Worker) ProcessSession(ctx context.Context) (uuid.UUID, error)

func (*Worker) Session

func (w *Worker) Session(ctx context.Context) (uuid.UUID, error)

func (*Worker) SetEnabled

func (w *Worker) SetEnabled(ctx context.Context, enabled bool) error

func (*Worker) StorageAddLocal

func (w *Worker) StorageAddLocal(ctx context.Context, path string) error

func (*Worker) Version

func (w *Worker) Version(context.Context) (api.Version, error)

func (*Worker) WaitQuiet

func (w *Worker) WaitQuiet(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL