Documentation
¶
Index ¶
Constants ¶
View Source
const ( KiloByte = 1024 MegaByte = 1024 * KiloByte DefaultCapacityBytes = 1 * MegaByte )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientBackend ¶ added in v1.9.0
type ClientBackend interface {
BlockNumber(context.Context) (uint64, error)
BalanceAt(context.Context, common.Address, *big.Int) (*big.Int, error)
ChainID(context.Context) (*big.Int, error)
}
ClientBackend used to perform non-contract related read operations on blockchain
type ContractBackend ¶ added in v1.9.0
type ContractBackend interface {
bind.ContractCaller
bind.ContractFilterer
bind.ContractTransactor
bind.DeployBackend
}
ContractWaiter used to do a read/write operation on a contract and wait for the transaction to be mined
type EthClient ¶ added in v1.9.0
type EthClient interface {
ClientBackend
ContractBackend
}
type ILogger ¶
type ILogger interface {
Debug(args ...interface{})
Info(args ...interface{})
Warn(args ...interface{})
Error(args ...interface{})
DPanic(args ...interface{}) // Development panic - panics only in development mode
Panic(args ...interface{})
Fatal(args ...interface{})
Debugf(template string, args ...interface{})
Infof(template string, args ...interface{})
Warnf(template string, args ...interface{})
Errorf(template string, args ...interface{})
DPanicf(template string, args ...interface{})
Panicf(template string, args ...interface{})
Fatalf(template string, args ...interface{})
Debugw(msg string, keysAndValues ...interface{})
Infow(msg string, keysAndValues ...interface{})
Warnw(msg string, keysAndValues ...interface{})
Errorw(msg string, keysAndValues ...interface{})
DPanicw(msg string, keysAndValues ...interface{})
Panicw(msg string, keysAndValues ...interface{})
Fatalw(msg string, keysAndValues ...interface{})
Log(lvl zapcore.Level, msg string, fields ...zapcore.Field)
Sync() error
Close() error
Named(name string) ILogger
With(args ...interface{}) ILogger
}
type LogStorage ¶
type LogStorage struct {
Buffer MyBuf
// contains filtered or unexported fields
}
func NewLogStorage ¶
func NewLogStorage(ID string) *LogStorage
func NewLogStorageWithCapacity ¶
func NewLogStorageWithCapacity(ID string, capBytes uint64) *LogStorage
func (*LogStorage) GetReader ¶
func (l *LogStorage) GetReader() io.Reader
func (*LogStorage) ID ¶
func (l *LogStorage) ID() string
Click to show internal directories.
Click to hide internal directories.