messagequeue

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageMethodAdd = iota + 1
	MessageMethodDelete
	MessageMethodRename
	MessageMethodFinish
)

Variables

This section is empty.

Functions

func GetGroupId

func GetGroupId(persistentVolumeClaimRef *corev1.ObjectReference) string

func GetMessageQueueTopic

func GetMessageQueueTopic(
	pvcNamespace string, pvcName string) *messagequeue.MessageQueueTopic

Types

type Message

type Message struct {
	Method   int8   `json:"method"`
	Path     string `json:"path,omitempty"`
	OldPath  string `json:"oldPath,omitempty"`
	Offset   int64  `json:"offset,omitempty"`
	Contents []byte `json:"contents,omitempty"`
}

type MessageQueueUpdatePublisherOperations

type MessageQueueUpdatePublisherOperations interface {
	CreateUpdateFileMessages(
		path string, offset int64, contents []byte) ([]kafka.Message, error)
	CreateDeleteFileMessages(path string) ([]kafka.Message, error)
	CreateRenameFileMessages(
		newPath string, oldPath string) ([]kafka.Message, error)
	CreateFinishFileMessages() ([]kafka.Message, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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