proofwebhooksvc

package
v0.2.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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")
	ErrProcessingUnavailable = xerror.New(xerror.KindUnavailable, "PROOF_WEBHOOK_PROCESSING_UNAVAILABLE", "proof webhook processing is unavailable")
)

Functions

This section is empty.

Types

type DeliveryClaimer

type DeliveryClaimer interface {
	ClaimWebhookDelivery(context.Context, postgres.DBTX, string, string, string) (bool, error)
}

type DeliveryProducer

type DeliveryProducer interface {
	EnqueueProofChange(context.Context, postgres.DBTX, gitprovider.VerifiedChangeEvent) (queue.QueuedJob, error)
}

type GitHubBindingResolver

type GitHubBindingResolver interface {
	Resolve(context.Context, int64, int64) (slug.Slug, error)
}

type MappingResolver

type MappingResolver interface {
	ResolveWebhookMappings(context.Context, postgres.DBTX, proofrepo.WebhookMappingLookup) ([]proofrepo.Mapping, error)
}

type ProofCompiler

type ProofCompiler interface {
	Compile(context.Context, slug.Slug, slug.Slug) (*proofreceipts.Receipt, error)
}

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 (*Service) Process

Jump to

Keyboard shortcuts

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