gkafka

package
v0.0.0-...-8cde2e0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Brokers                 []string
	Network                 string
	ProcessFileTopic        string
	ProcessedFileTopic      string
	ProcessedFileRepository ProcessedFileRepository
}

type ProcessFileService

type ProcessFileService service

func (*ProcessFileService) ConsumerProcessedFile

func (pkg *ProcessFileService) ConsumerProcessedFile(ctx context.Context) error

func (*ProcessFileService) ProducerProcessFile

func (pkg *ProcessFileService) ProducerProcessFile(ctx context.Context, value []byte) error

type ProcessedFileRepository

type ProcessedFileRepository interface {
	ProcessedFileResult(ctx context.Context, info *domain.FileInfo) error
}

type Server

type Server struct {
	ProcessFile *ProcessFileService
	// contains filtered or unexported fields
}

func New

func New(options *Options) (*Server, error)

Jump to

Keyboard shortcuts

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