Help us shape the future of Go! Take the 2026 Go Developer Survey

pool

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v1.16.0

type Options struct {
	Cron api.Interface
}

type Pool

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

Pool represents a connection pool for namespace/appID separation of sidecars to schedulers.

func New

func New(opts Options) *Pool

func (*Pool) AddConnection added in v1.16.0

AddConnection adds a new connection to the pool. It returns a context and an error.

func (*Pool) Run

func (p *Pool) Run(ctx context.Context) error

func (*Pool) Trigger added in v1.16.0

Trigger triggers a job event to the pool. It returns a response result. If the context is cancelled (e.g., during engine shutdown from a quorum change), Trigger returns UNDELIVERABLE immediately instead of blocking forever waiting for the daprd to respond.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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