tasks

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTask

type MockTask struct {
	mock.Mock
}

func (*MockTask) Execute added in v0.2.12

func (m *MockTask) Execute(uuid string, content *native.Content, origin string, txId string) error

func (*MockTask) Prepare added in v0.2.12

func (m *MockTask) Prepare(collection string, uuid string) (*native.Content, string, error)

type Task

type Task interface {
	Prepare(collection string, uuid string) (*native.Content, string, error)
	Execute(uuid string, content *native.Content, origin string, txId string) error
}

func NewNativeContentPublishTask

func NewNativeContentPublishTask(reader native.Reader, notifier cms.Notifier, isImage image.Filter) Task

NewNativeContentPublishTask publishes the native content from mongo to the cms notifier, if the uuid has not been blacklisted.

Jump to

Keyboard shortcuts

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