commp

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueueName = "commp"
	TaskName  = "compute_commp"
)

Variables

View Source
var Module = fx.Module("aggregation/commp",
	fx.Provide(
		NewQueue,
		NewHandler,
		NewQueuingCommpCalculator,
	),
)

Functions

Types

type Calculator

type Calculator interface {
	Enqueue(ctx context.Context, blob multihash.Multihash) error
}

func NewQueuingCommpCalculator

func NewQueuingCommpCalculator(lc fx.Lifecycle, params ComperParams) (Calculator, error)

type CommpQueueParams

type CommpQueueParams struct {
	fx.In
	DB *sql.DB `name:"aggregator_db"`
}

type Comper

type Comper struct {
	// contains filtered or unexported fields
}

func (*Comper) Enqueue

func (c *Comper) Enqueue(ctx context.Context, blob multihash.Multihash) error

type ComperParams

type ComperParams struct {
	fx.In

	Queue   jobqueue.Service[multihash.Multihash]
	Handler jobqueue.TaskHandler[multihash.Multihash]
}

type ComperTaskHandler

type ComperTaskHandler struct {
	// contains filtered or unexported fields
}

func (*ComperTaskHandler) Handle

func (*ComperTaskHandler) Name

func (h *ComperTaskHandler) Name() string

Jump to

Keyboard shortcuts

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