jobinfo

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	// Top level fields for job info decoding
	APIVersion string
	ID         string
	// Actual payload
	Info model.JobWithInfo
}

type Publisher

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

func NewPublisher

func NewPublisher(params PublisherParams) *Publisher

func (Publisher) HandleJobEvent

func (p Publisher) HandleJobEvent(ctx context.Context, event model.JobEvent) error

type PublisherParams

type PublisherParams struct {
	JobStore jobstore.Store
	PubSub   pubsub.PubSub[Envelope]
}

Jump to

Keyboard shortcuts

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