scanner

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MsgError = "MDRIP_ERROR_Problem_while_processing_command_block"

MsgError indicates something went wrong in processing the command block. This is not necessarily the indication of a command failure, and may only indicate a logic or stream error in mdrip.

View Source
const MsgHappy = "MDRIP_HAPPY_Completed_command_block"

MsgHappy indicates no-anomaly completion of a command block.

View Source
const MsgTimeout = "MDRIP_TIMEOUT_Command_block_did_not_finish_in_allotted_time"

MsgTimeout indicates the block didn't complete fast enough.

Variables

This section is empty.

Functions

func BuffScanner

func BuffScanner(wait time.Duration, label string, stream io.ReadCloser) <-chan string

BuffScanner returns a channel to which it will write lines of text.

The text is harvested from an io stream. If the io stream blocks for longer than the given wait time, BuffScanner will send a special line of text to the channel and close it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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