Documentation ¶
Index ¶
- func NewBlockScopedDataResponse(in *pbsubstreamsrpc.BlockScopedData) *pbsubstreamsrpc.Response
- func NewSnapshotComplete() *pbsubstreamsrpc.Response
- func NewSnapshotData(in *pbsubstreamsrpc.InitialSnapshotData) *pbsubstreamsrpc.Response
- type BlockHook
- type GrpcClientFactory
- type PostJobHook
- type ResponseFromAnyTier
- type ResponseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlockScopedDataResponse ¶
func NewBlockScopedDataResponse(in *pbsubstreamsrpc.BlockScopedData) *pbsubstreamsrpc.Response
func NewSnapshotComplete ¶ added in v0.0.14
func NewSnapshotComplete() *pbsubstreamsrpc.Response
func NewSnapshotData ¶ added in v0.0.14
func NewSnapshotData(in *pbsubstreamsrpc.InitialSnapshotData) *pbsubstreamsrpc.Response
Types ¶
type BlockHook ¶
type BlockHook func(ctx context.Context, clock *pbsubstreams.Clock) error
BlockHooks will always be called with a valid clock
type GrpcClientFactory ¶ added in v0.0.14
type GrpcClientFactory func(context.Context) (streamClient pbsubstreamsrpc.StreamClient, closeFunc func() error, opts []grpc.CallOption, err error)
type PostJobHook ¶
type PostJobHook func(ctx context.Context, clock *pbsubstreams.Clock) error
PostJobHooks will be called at the end of a job. The clock can be `nil` in some circumstances, or it can be >= job.StopBlock
type ResponseFromAnyTier ¶ added in v1.0.2
type ResponseFromAnyTier interface {
ProtoMessage()
}
type ResponseFunc ¶
type ResponseFunc func(ResponseFromAnyTier) error
Click to show internal directories.
Click to hide internal directories.