model

package
v0.0.0-...-161b3a9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Source struct {
		Type       string   `yaml:"type"`
		RoleArn    string   `yaml:"roleArn"`
		TopicName  string   `yaml:"topicName"`
		BucketName string   `yaml:"bucketName"` // For S3 Source
		GroupId    string   `yaml:"groupId"`    // For kafka Source
		Brokers    []string `yaml:"brokers"`
	} `yaml:"source"`
	Sink struct {
		Type       string   `yaml:"type"`
		RoleArn    string   `yaml:"roleArn"`
		TopicName  string   `yaml:"topicName"`
		BucketName string   `yaml:"bucketName"` // For S3 Sink
		Brokers    []string `yaml:"brokers"`    // For Kafka Sink
	} `yaml:"sink"`
}

type MessageProcessor

type MessageProcessor interface {
	Process(message kafka.Message) error
}

type MessageSource

type MessageSource interface {
	Fetch(processor MessageProcessor)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳