snapshot

package
v0.0.0-...-8488f5b Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamTo

func StreamTo(buffers [][]*rfc5424.Message, msgc <-chan *rfc5424.Message, w io.Writer) error

StreamTo writes a snapshot of the buffers to the writer, then writes messages from the channel to the writer. The writer is left open.

func WriteTo

func WriteTo(buffers [][]*rfc5424.Message, w io.Writer) error

WriteTo writes a snapshot of the buffers to the writer. The partitioning of messages is not retained. The writer is left open.

Types

type Scanner

type Scanner struct {

	// Current Message, updated on each call to Scan.
	Message *rfc5424.Message
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(r io.Reader) *Scanner

NewScanner returns a new Scanner reading from r.

func (*Scanner) Err

func (s *Scanner) Err() error

func (*Scanner) Scan

func (s *Scanner) Scan() bool

Jump to

Keyboard shortcuts

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