hook

package
v0.0.0-...-e4b6a09 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

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

DefaultManager ...

func NewHookManager

func NewHookManager() *DefaultManager

NewHookManager ...

func (*DefaultManager) StartHook

func (hm *DefaultManager) StartHook(ctx context.Context, event *model.HookEvent, data *models.JobData) error

StartHook create a webhook job record in database, and submit it to jobservice

type Manager

type Manager interface {
	StartHook(context.Context, *model.HookEvent, *models.JobData) error
}

Manager send hook

Jump to

Keyboard shortcuts

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