chproducer

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrChanClosed = errors.New("channel closed")

Functions

This section is empty.

Types

type BlockController

type BlockController interface {
	GetData() <-chan *model.BlockData
	Close()
	StreamReady() <-chan struct{}
}

type Handler

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

func NewHandler

func NewHandler(
	ctx context.Context,
	chName string,
	ttl time.Duration,
	activeTransfers uint,
	storage *redis.Storage,
	poolController PoolController,
	newest <-chan model.TransferRequest,
) (*Handler, error)

func (*Handler) Exec

func (h *Handler) Exec(ctx context.Context) error

type HealthcheckController

type HealthcheckController interface {
	State(bool)
}

type PoolController

type PoolController interface {
	Executor(channel string) (*hlf.ChExecutor, error)
	Has(channel string) bool
	Expand(ctx context.Context, channel string) error
	Readiness(channel string) (<-chan struct{}, error)
	Events(channel string) (<-chan struct{}, error)
}

Jump to

Keyboard shortcuts

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