file_writer

package
v0.0.0-...-64250fb Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWriter

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

func (*FileWriter) Close

func (f *FileWriter) Close() error

func (*FileWriter) Write

func (f *FileWriter) Write(p []byte) (n int, err error)

type FileWriterFactory

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

func (*FileWriterFactory) BuildWriter

func (c *FileWriterFactory) BuildWriter() (io.WriteCloser, error)

type WriterFactory

type WriterFactory interface {
	BuildWriter() (io.WriteCloser, error)
}

func BuildFileWriterFactory

func BuildFileWriterFactory(filename string, uploader *uploader.UploaderPool) WriterFactory

type WriterStack

type WriterStack struct {
	CurrentWriter io.WriteCloser
	NextWriter    io.WriteCloser

	Interrupt chan bool
	// contains filtered or unexported fields
}

func BuildWriterStack

func BuildWriterStack(writerBuilder WriterFactory, interruptChannel chan bool) (*WriterStack, error)

func (*WriterStack) Crank

func (s *WriterStack) Crank()

func (*WriterStack) Rotate

func (s *WriterStack) Rotate()

func (*WriterStack) Write

func (s *WriterStack) Write(msg []byte)

Jump to

Keyboard shortcuts

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