internal

package
v2.43.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 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 AccessLog

type AccessLog struct {
	From   interface{}
	To     interface{}
	Status string
	Reason interface{}
}

func (*AccessLog) String

func (l *AccessLog) String() string

type ErrorLog

type ErrorLog struct {
	Prefix string
	Error  error
}

func (*ErrorLog) String

func (l *ErrorLog) String() string

type FileLogWriter

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

func NewFileLogWriter

func NewFileLogWriter(path string) (*FileLogWriter, error)

func (*FileLogWriter) Close

func (w *FileLogWriter) Close()

func (*FileLogWriter) Log

func (w *FileLogWriter) Log(log LogEntry)

type LogEntry

type LogEntry interface {
	fmt.Stringer
}

type LogWriter

type LogWriter interface {
	Log(LogEntry)
	Close()
}

func NewStdOutLogWriter

func NewStdOutLogWriter() LogWriter

type NoOpLogWriter

type NoOpLogWriter struct {
}

func (*NoOpLogWriter) Close

func (*NoOpLogWriter) Close()

func (*NoOpLogWriter) Log

func (*NoOpLogWriter) Log(entry LogEntry)

type StdOutLogWriter

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

func (*StdOutLogWriter) Close

func (*StdOutLogWriter) Close()

func (*StdOutLogWriter) Log

func (w *StdOutLogWriter) Log(log LogEntry)

Jump to

Keyboard shortcuts

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