sub

package
v0.0.0-...-5c6c1e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotificationInputs []NotificationInput
)

Functions

This section is empty.

Types

type AwsSqsInput

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

func (*AwsSqsInput) GetName

func (k *AwsSqsInput) GetName() string

func (*AwsSqsInput) Initialize

func (k *AwsSqsInput) Initialize(configuration util.Configuration, prefix string) error

func (*AwsSqsInput) ReceiveMessage

func (k *AwsSqsInput) ReceiveMessage() (key string, message *filer_pb.EventNotification, onSuccessFn func(), onFailureFn func(), err error)

type GooglePubSubInput

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

func (*GooglePubSubInput) GetName

func (k *GooglePubSubInput) GetName() string

func (*GooglePubSubInput) Initialize

func (k *GooglePubSubInput) Initialize(configuration util.Configuration, prefix string) error

func (*GooglePubSubInput) ReceiveMessage

func (k *GooglePubSubInput) ReceiveMessage() (key string, message *filer_pb.EventNotification, onSuccessFn func(), onFailureFn func(), err error)

type KafkaInput

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

func (*KafkaInput) GetName

func (k *KafkaInput) GetName() string

func (*KafkaInput) Initialize

func (k *KafkaInput) Initialize(configuration util.Configuration, prefix string) error

func (*KafkaInput) ReceiveMessage

func (k *KafkaInput) ReceiveMessage() (key string, message *filer_pb.EventNotification, onSuccessFn func(), onFailureFn func(), err error)

type KafkaProgress

type KafkaProgress struct {
	Topic            string          `json:"topic"`
	PartitionOffsets map[int32]int64 `json:"partitionOffsets"`

	sync.Mutex
	// contains filtered or unexported fields
}

type NotificationInput

type NotificationInput interface {
	// GetName gets the name to locate the configuration in sync.toml file
	GetName() string
	// Initialize initializes the file store
	Initialize(configuration util.Configuration, prefix string) error
	ReceiveMessage() (key string, message *filer_pb.EventNotification, onSuccessFn func(), onFailureFn func(), err error)
}

Jump to

Keyboard shortcuts

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