producer

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package producer contains the Producer protocol handler. It sets up a producerServer at the given address to accept producers that want to connect.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make(listener AcceptCloser, channels channels.Producer, done <-chan struct{}, logger *zap.Logger) (util.Runner, error)

Make creates a new producer protocol handler

Types

type AcceptCloser

type AcceptCloser interface {
	Accept() (io.ReadWriteCloser, error)
	io.Closer
}

AcceptCloser wraps the generic Accept and Close methods. This interface allows plugging a custom transport

Jump to

Keyboard shortcuts

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