Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidOutputLocation ¶
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter is a writer that writes to a file.
func NewFileWriter ¶
func NewFileWriter(filename string, logger logger.Logger) (*FileWriter, error)
NewFileWriter creates a new FileWriter.
type MemoryWriter ¶
type MemoryWriter struct {
Lines []string
}
func (*MemoryWriter) Close ¶
func (m *MemoryWriter) Close() error
func (*MemoryWriter) Write ¶
func (m *MemoryWriter) Write(line string)
type NoopWriter ¶
type NoopWriter struct{}
NoopWriter is a writer that does nothing.
func (*NoopWriter) Close ¶
func (n *NoopWriter) Close() error
func (*NoopWriter) Write ¶
func (n *NoopWriter) Write(_ string)
type StderrWriter ¶
type StderrWriter struct{}
StderrWriter is a writer that writes to stderr.
func (*StderrWriter) Close ¶
func (s *StderrWriter) Close() error
func (*StderrWriter) Write ¶
func (s *StderrWriter) Write(line string)
type StdoutWriter ¶
type StdoutWriter struct{}
StdoutWriter is a writer that writes to stdout.
func (*StdoutWriter) Close ¶
func (s *StdoutWriter) Close() error
func (*StdoutWriter) Write ¶
func (s *StdoutWriter) Write(line string)
type UnixgramWriter ¶
type UnixgramWriter struct {
// contains filtered or unexported fields
}
func NewUnixgramWriter ¶
func NewUnixgramWriter(path string, logger logger.Logger) (*UnixgramWriter, error)
func (*UnixgramWriter) Close ¶
func (u *UnixgramWriter) Close() error
func (*UnixgramWriter) Write ¶
func (u *UnixgramWriter) Write(line string)
Click to show internal directories.
Click to hide internal directories.