pool

package
v0.0.0-...-949823d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobEvent

type JobEvent struct {
	Name     string
	Data     *anypb.Any
	Metadata *schedulerv1pb.JobMetadata
}

JobEvent is a triggered job event.

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(cron api.Interface) *Pool

func (*Pool) Add

Add adds a connection to the pool for a given namespace/appID.

func (*Pool) Run

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

func (*Pool) Send

Send is a blocking function that sends a job trigger to a correct job recipient.

Jump to

Keyboard shortcuts

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