singletons

package
v0.0.0-...-23aeb14 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log       Logger           = &PbftLogger{}
	Marshaler MarshalInterface = &rlpMarshal{}
	Hasher    HashInterface    = &rlpHasher{}
)

Functions

This section is empty.

Types

type HashInterface

type HashInterface interface {
	Hash(interface{}) pbftTypes.MessageDigest
}

type Logger

type Logger interface {
	Debug(...interface{})
	Debugln(...interface{})
	Debugf(string, ...interface{})

	Info(...interface{})
	Infoln(...interface{})
	Infof(string, ...interface{})

	Warn(...interface{})
	Warnln(...interface{})
	Warnf(string, ...interface{})

	Error(...interface{})
	Errorln(...interface{})
	Errorf(string, ...interface{})

	Fatal(...interface{})
	Fatalln(...interface{})
	Fatalf(string, ...interface{})

	SetFormat(string) error
	SetLevel(string) error
}

type MarshalInterface

type MarshalInterface interface {
	Marshal(data interface{}) ([]byte, error)
	Unmarshal(buf []byte, data interface{}) error
}

type PbftLogger

type PbftLogger struct {
}

func (*PbftLogger) Debug

func (pl *PbftLogger) Debug(args ...interface{})

func (*PbftLogger) Debugf

func (pl *PbftLogger) Debugf(msg string, args ...interface{})

func (*PbftLogger) Debugln

func (pl *PbftLogger) Debugln(args ...interface{})

func (*PbftLogger) Error

func (pl *PbftLogger) Error(args ...interface{})

func (*PbftLogger) Errorf

func (pl *PbftLogger) Errorf(msg string, args ...interface{})

func (*PbftLogger) Errorln

func (pl *PbftLogger) Errorln(args ...interface{})

func (*PbftLogger) Fatal

func (pl *PbftLogger) Fatal(args ...interface{})

func (*PbftLogger) Fatalf

func (pl *PbftLogger) Fatalf(msg string, args ...interface{})

func (*PbftLogger) Fatalln

func (pl *PbftLogger) Fatalln(args ...interface{})

func (*PbftLogger) Info

func (pl *PbftLogger) Info(args ...interface{})

func (*PbftLogger) Infof

func (pl *PbftLogger) Infof(msg string, args ...interface{})

func (*PbftLogger) Infoln

func (pl *PbftLogger) Infoln(args ...interface{})

func (*PbftLogger) SetFormat

func (pl *PbftLogger) SetFormat(string) error

func (*PbftLogger) SetLevel

func (pl *PbftLogger) SetLevel(string) error

func (*PbftLogger) Warn

func (pl *PbftLogger) Warn(args ...interface{})

func (*PbftLogger) Warnf

func (pl *PbftLogger) Warnf(msg string, args ...interface{})

func (*PbftLogger) Warnln

func (pl *PbftLogger) Warnln(args ...interface{})

Jump to

Keyboard shortcuts

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