github.com/cranelv/ethereum_mpc@v0.0.0-20191031014521-23aeb1415092/consensus_pbft/singletons/singletonInterface.go (about)

     1  package singletons
     2  
     3  import "github.com/ethereum/go-ethereum/consensus_pbft/pbftTypes"
     4  
     5  type Logger interface {
     6  	Debug(...interface{})
     7  	Debugln(...interface{})
     8  	Debugf(string, ...interface{})
     9  
    10  	Info(...interface{})
    11  	Infoln(...interface{})
    12  	Infof(string, ...interface{})
    13  
    14  	Warn(...interface{})
    15  	Warnln(...interface{})
    16  	Warnf(string, ...interface{})
    17  
    18  	Error(...interface{})
    19  	Errorln(...interface{})
    20  	Errorf(string, ...interface{})
    21  
    22  	Fatal(...interface{})
    23  	Fatalln(...interface{})
    24  	Fatalf(string, ...interface{})
    25  
    26  	SetFormat(string) error
    27  	SetLevel(string) error
    28  }
    29  type MarshalInterface interface {
    30  	Marshal(data interface{}) ([]byte, error)
    31  	Unmarshal(buf []byte, data interface{}) error
    32  }
    33  type HashInterface interface {
    34  	Hash(interface{}) pbftTypes.MessageDigest
    35  }