Documentation ¶
Index ¶
- type StreamingService
- func (fss *StreamingService) Close() error
- func (fss *StreamingService) ListenBeginBlock(ctx context.Context, req abci.RequestBeginBlock, res abci.ResponseBeginBlock) (rerr error)
- func (fss *StreamingService) ListenCommit(ctx context.Context, res abci.ResponseCommit) error
- func (fss *StreamingService) ListenDeliverTx(ctx context.Context, req abci.RequestDeliverTx, res abci.ResponseDeliverTx) (rerr error)
- func (fss *StreamingService) ListenEndBlock(ctx context.Context, req abci.RequestEndBlock, res abci.ResponseEndBlock) (rerr error)
- func (fss *StreamingService) Listeners() map[types.StoreKey][]types.WriteListener
- func (fss *StreamingService) Stream(wg *sync.WaitGroup) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StreamingService ¶
type StreamingService struct {
// contains filtered or unexported fields
}
StreamingService is a concrete implementation of StreamingService that writes state changes out to files
func NewStreamingService ¶
func NewStreamingService(writeDir, filePrefix string, storeKeys []types.StoreKey, c codec.BinaryCodec, logger log.Logger, outputMetadata bool, stopNodeOnErr bool, fsync bool) (*StreamingService, error)
NewStreamingService creates a new StreamingService for the provided writeDir, (optional) filePrefix, and storeKeys
func (*StreamingService) Close ¶
func (fss *StreamingService) Close() error
Close satisfies the io.Closer interface, which satisfies the baseapp.StreamingService interface
func (*StreamingService) ListenBeginBlock ¶
func (fss *StreamingService) ListenBeginBlock(ctx context.Context, req abci.RequestBeginBlock, res abci.ResponseBeginBlock) (rerr error)
ListenBeginBlock satisfies the baseapp.ABCIListener interface It writes the received BeginBlock request and response and the resulting state changes out to a file as described in the above the naming schema
func (*StreamingService) ListenCommit ¶ added in v0.45.12
func (fss *StreamingService) ListenCommit(ctx context.Context, res abci.ResponseCommit) error
ListenEndBlock satisfies the baseapp.ABCIListener interface
func (*StreamingService) ListenDeliverTx ¶
func (fss *StreamingService) ListenDeliverTx(ctx context.Context, req abci.RequestDeliverTx, res abci.ResponseDeliverTx) (rerr error)
ListenDeliverTx satisfies the baseapp.ABCIListener interface It writes the received DeliverTx request and response and the resulting state changes out to a file as described in the above the naming schema
func (*StreamingService) ListenEndBlock ¶
func (fss *StreamingService) ListenEndBlock(ctx context.Context, req abci.RequestEndBlock, res abci.ResponseEndBlock) (rerr error)
ListenEndBlock satisfies the baseapp.ABCIListener interface It writes the received EndBlock request and response and the resulting state changes out to a file as described in the above the naming schema
func (*StreamingService) Listeners ¶
func (fss *StreamingService) Listeners() map[types.StoreKey][]types.WriteListener
Listeners satisfies the baseapp.StreamingService interface It returns the StreamingService's underlying WriteListeners Use for registering the underlying WriteListeners with the BaseApp