Documentation
¶
Overview ¶
Package groupcommit owns bounded admission and ordered batch lifecycles. Backends own prepared input, transactional execution, and per-request outcomes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("group commit coordinator is shut down")
Functions ¶
This section is empty.
Types ¶
type Coordinator ¶
type Coordinator[P, R any] struct { // contains filtered or unexported fields }
func New ¶
func New[P, R any](cfg Config, execute Executor[P, R]) *Coordinator[P, R]
New requires normalized positive bounds; backend configuration owns defaults.
func (*Coordinator[P, R]) Close ¶
func (s *Coordinator[P, R]) Close()
func (*Coordinator[P, R]) Closed ¶
func (s *Coordinator[P, R]) Closed() bool
func (*Coordinator[P, R]) Config ¶
func (s *Coordinator[P, R]) Config() Config
Config returns a copy of the immutable batching policy.
func (*Coordinator[P, R]) Pending ¶
func (s *Coordinator[P, R]) Pending(boundary string) int
Pending reports queued requests, excluding the batch currently executing.
Click to show internal directories.
Click to hide internal directories.