internal

package
v1.14.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 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 NewPool

func NewPool() *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

func (p *Pool) Send(ctx context.Context, job *JobEvent) error

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