lib

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscardLogger

func DiscardLogger() *logrus.Logger

DiscardLogger returns a dummy logger

func GetLogger

func GetLogger(level string) *logrus.Logger

GetLogger returns the default logger with the given log level

func IsGCType

func IsGCType(key string) bool

IsGCType returns true if the key corresponds to one

func IsMBType

func IsMBType(key string) bool

IsMBType returns true if key's value is a large byte value

func StringInSlice

func StringInSlice(a string, list []string) bool

StringInSlice returns true if a is in list

Types

type DummyReadCloser

type DummyReadCloser struct{}

DummyReadCloser implements io.ReadCloser and does nothing

func (DummyReadCloser) Close

func (DummyReadCloser) Close() error

func (DummyReadCloser) Read

func (DummyReadCloser) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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