proofwebhooksvc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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