eventhook

package
v0.0.0-...-9d58fce Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.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 Sender

type Sender interface {
	Send(ctx context.Context, event event.Event) protocol.Result
}

func NewNopSender

func NewNopSender() Sender

type Service

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

func NewService

func NewService(client Sender) *Service

func (*Service) SendJobExecutionEvent

func (s *Service) SendJobExecutionEvent(ctx context.Context, job *db.JobExecution) error

SendJobExecutionEvent sends a job execution event to the event hook.

func (*Service) SendStepExecutionEvent

func (s *Service) SendStepExecutionEvent(ctx context.Context, step *db.StepExecution) error

SendStepExecutionEvent sends a step execution event to the event hook.

Jump to

Keyboard shortcuts

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