Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchWriter ¶
type BatchWriter struct {
// contains filtered or unexported fields
}
BatchWriter for multiple web3 requests
func NewBatchWriter ¶
func NewBatchWriter(singleWriter Web3ResponseWriter) *BatchWriter
NewBatchWriter returns a new BatchWriter
func (*BatchWriter) Write ¶
func (w *BatchWriter) Write(in interface{}) error
Write adds data into batch buffer
type Listener ¶
type Listener interface { Start() error Stop() error ReceiveBlock(*block.Block) error AddResponder(Responder) (string, error) RemoveResponder(string) (bool, error) }
Listener pass new block to all responders
type Web3ResponseWriter ¶
type Web3ResponseWriter interface {
Write(interface{}) error
}
Web3ResponseWriter is writer for web3 request
func NewResponseWriter ¶
func NewResponseWriter(handler func(interface{}) error) Web3ResponseWriter
NewResponseWriter returns a new responseWriter
Click to show internal directories.
Click to hide internal directories.