fakeSync

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadWriter

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

ReadWriter is a fake adapter with sync read method Use for test purpose

func NewAdapter

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

NewAdapter create a fake adapter with sync read method

func (*ReadWriter) Close

func (w *ReadWriter) Close() error

Close will do nothing

func (*ReadWriter) Level

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

func (*ReadWriter) Read

func (w *ReadWriter) Read() []byte

func (*ReadWriter) Write

func (w *ReadWriter) 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