fake

package
v0.0.0-...-b3641da Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer is a fake adapter Use for test purpose

func NewAdapter

func NewAdapter(l ...level.LogLevel) *Writer

NewAdapter create a fake adapter

func (*Writer) Close

func (w *Writer) Close() error

Close will do nothing

func (*Writer) Level

func (w *Writer) Level() level.LogLevel

func (*Writer) Write

func (w *Writer) Write(b []byte) (int, error)

Write append bytes to b

Jump to

Keyboard shortcuts

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