Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDeliveryRejected = xerror.New(xerror.KindInvalidInput, "PROOF_WEBHOOK_DELIVERY_REJECTED", "proof webhook delivery was rejected") )
Functions ¶
This section is empty.
Types ¶
type DeliveryClaimer ¶
type DeliveryProducer ¶
type DeliveryProducer interface {
EnqueueProofChange(context.Context, postgres.DBTX, gitprovider.VerifiedChangeEvent) (queue.QueuedJob, error)
}
type GitHubBindingResolver ¶
type MappingResolver ¶
type ProofCompiler ¶
type ProofStatusPublisher ¶
type ProofStatusPublisher interface {
Publish(context.Context, model.ProofReceipt) error
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(txm postgres.TransactionManager, mappings MappingResolver, deliveries DeliveryClaimer, candidates proofcandidatesvc.Service, compiler ProofCompiler, producer DeliveryProducer, githubBindings GitHubBindingResolver, statusPublisher ProofStatusPublisher, gitChecksEnabled bool) (*Service, error)
func (*Service) Accept ¶
func (s *Service) Accept(ctx context.Context, event gitprovider.VerifiedChangeEvent) (queue.QueuedJob, error)
func (*Service) Process ¶
func (s *Service) Process(ctx context.Context, event gitprovider.VerifiedChangeEvent) error
Click to show internal directories.
Click to hide internal directories.