printer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	InputName = "input"
)

input name

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

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

Printer - the structure which is responsible for print received messages

func NewPrinter

func NewPrinter() *Printer

NewPrinter - constructor of printer structure

func (*Printer) AttachTo

func (printer *Printer) AttachTo(name string, input *modules.Input) error

AttachTo - attach input to output with name

func (*Printer) Close

func (printer *Printer) Close() error

Close - gracefully stops module

func (*Printer) Input

func (printer *Printer) Input(name string) (*modules.Input, error)

Input - returns input by name

func (*Printer) Name

func (printer *Printer) Name() string

Name -

func (*Printer) Output

func (printer *Printer) Output(name string) (*modules.Output, error)

Output - returns output by name

func (*Printer) Start

func (printer *Printer) Start(ctx context.Context)

Start - starts module

Jump to

Keyboard shortcuts

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