Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("storage", fx.Provide( fx.Annotate( NewStorageService, fx.As(new(storage.Service)), fx.As(new(ucan.AccessGrantService)), fx.As(new(ucan.BlobAllocateService)), fx.As(new(ucan.BlobAcceptService)), fx.As(new(ucan.PDPInfoService)), fx.As(new(ucan.ReplicaAllocateService)), ), ), )
Functions ¶
func NewStorageService ¶
func NewStorageService(params StorageServiceParams) (storage.Service, error)
NewStorageService creates a new storage service
Types ¶
type StorageServiceParams ¶
type StorageServiceParams struct {
fx.In
Config app.AppConfig
ID principal.Signer
Blobs blobs.Blobs
Claims claims.Claims
PDP pdp.PDP `optional:"true"`
ReceiptStore receiptstore.ReceiptStore
Replicator replicator.Replicator
ClaimValidationContext validator.ClaimContext
}
StorageServiceParams contains all dependencies for the storage service
Click to show internal directories.
Click to hide internal directories.