internal

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceToString added in v1.18.1

func InterfaceToString(value interface{}) string

Types

type AccessLog

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

func (*AccessLog) Release

func (this *AccessLog) Release()

func (*AccessLog) String

func (this *AccessLog) String() string

type ErrorLog

type ErrorLog struct {
	Prefix string
	Values []interface{}
}

func (*ErrorLog) Release

func (this *ErrorLog) Release()

func (*ErrorLog) String

func (this *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 (this *FileLogWriter) Close()

func (*FileLogWriter) Log

func (this *FileLogWriter) Log(log LogEntry)

type LogEntry

type LogEntry interface {
	common.Releasable
	fmt.Stringer
}

type LogWriter

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

func NewStdOutLogWriter

func NewStdOutLogWriter() LogWriter

type NoOpLogWriter

type NoOpLogWriter struct {
}

func (*NoOpLogWriter) Close added in v1.19.1

func (this *NoOpLogWriter) Close()

func (*NoOpLogWriter) Log

func (this *NoOpLogWriter) Log(entry LogEntry)

type StdOutLogWriter

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

func (*StdOutLogWriter) Close added in v1.19.1

func (this *StdOutLogWriter) Close()

func (*StdOutLogWriter) Log

func (this *StdOutLogWriter) Log(log LogEntry)

Jump to

Keyboard shortcuts

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