Documentation
¶
Index ¶
- Variables
- func ProvidePDPService(params Params) (*service.PDPService, error)
- func ProvideProofSetIDProvider(cfg app.UCANServiceConfig) (types.ProofSetIDProvider, error)
- func ProvideSigningService(cfg app.PDPServiceConfig, proofService proofs.ProofService) (signertypes.SigningService, error)
- type Params
- type TODO_PDP_Impl
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("pdp-service", fx.Provide( eip712.NewExtraDataEncoder, ProvideSigningService, fx.Annotate( ProvidePDPService, fx.As(fx.Self()), fx.As(new(types.API)), fx.As(new(types.ProofSetAPI)), fx.As(new(types.PieceAPI)), fx.As(new(types.PieceWriterAPI)), fx.As(new(types.PieceCommPAPI)), ), fx.Annotate( ProvideProofSetIDProvider, ), fx.Annotate( ProvideTODOPDPImplInterface, fx.As(new(pdp.PDP)), ), fx.Annotate( server.NewPDPHandler, fx.As(new(echofx.RouteRegistrar)), fx.ResultTags(`group:"route_registrar"`), ), ), )
Functions ¶
func ProvidePDPService ¶ added in v0.0.13
func ProvidePDPService(params Params) (*service.PDPService, error)
func ProvideProofSetIDProvider ¶ added in v0.0.13
func ProvideProofSetIDProvider(cfg app.UCANServiceConfig) (types.ProofSetIDProvider, error)
func ProvideSigningService ¶ added in v0.0.18
func ProvideSigningService(cfg app.PDPServiceConfig, proofService proofs.ProofService) (signertypes.SigningService, error)
Types ¶
type Params ¶ added in v0.0.13
type Params struct {
fx.In
ID app.IdentityConfig
ServerConfig app.ServerConfig
DB *gorm.DB `name:"engine_db"`
Config app.PDPServiceConfig
BlobStore blobstore.PDPStore
AcceptanceStore acceptancestore.AcceptanceStore
ReceiptStore receiptstore.ReceiptStore
Resolver types.PieceResolverAPI
Reader types.PieceReaderAPI
Sender ethereum.Sender
Engine *scheduler.TaskEngine
ChainScheduler *chainsched.Scheduler
ChainClient service.ChainClient
SigningService signertypes.SigningService
ExtraDataEncoder *eip712.ExtraDataEncoder
Verifier smartcontracts.Verifier
Service smartcontracts.Service
Registry smartcontracts.Registry
}
type TODO_PDP_Impl ¶ added in v0.0.13
type TODO_PDP_Impl struct {
// contains filtered or unexported fields
}
TODO(forrest): this interface and it's impls need to be removed, renamed, or merged with the blob interface
func ProvideTODOPDPImplInterface ¶ added in v0.0.13
func ProvideTODOPDPImplInterface(service types.API, commpCalc commp.Calculator, cfg app.AppConfig) (*TODO_PDP_Impl, error)
func (*TODO_PDP_Impl) API ¶ added in v0.0.18
func (s *TODO_PDP_Impl) API() types.PieceAPI
func (*TODO_PDP_Impl) CommpCalculate ¶ added in v0.0.18
func (s *TODO_PDP_Impl) CommpCalculate() commp.Calculator
Click to show internal directories.
Click to hide internal directories.