publisher

package
v0.0.0-...-9b4e594 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyFile = errors.New("file size is empty")

Functions

This section is empty.

Types

type Publisher

type Publisher struct {
	ID         int
	EventTopic string
	// contains filtered or unexported fields
}

func New

func New(
	publisherID int,
	eventTopic string,
	storage services.Storage,
	eventCh chan models.Event,
	waitGroup *sync.WaitGroup,
) *Publisher

func (*Publisher) Handle

func (p *Publisher) Handle(ctx context.Context, fileChannel chan models.File)

Jump to

Keyboard shortcuts

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