Documentation
¶
Index ¶
- Variables
- func NewBlockScopedDataInternResponse(in *pbssinternal.BlockScopedData) *pbssinternal.ProcessRangeResponse
- func NewBlockScopedDataResponse(in *pbsubstreamsrpc.BlockScopedData) *pbsubstreamsrpc.Response
- func NewBlockScopedDatasResponse(in *pbsubstreamsrpcv4.BlockScopedDatas) *pbsubstreamsrpcv4.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 ¶
View Source
var SQLSchemaProto string
SQLSchemaProto is the annotations file a from-proto SQL sink's schema is declared with.
It is embedded so `substreams tools extract-proto --sql` can write it next to the proto it annotates: the override is parsed with imports resolved from the working directory, so the file has to be on disk, and asking the operator to go and find the right version of it is most of the work the command exists to remove.
Functions ¶
func NewBlockScopedDataInternResponse ¶ added in v1.15.9
func NewBlockScopedDataInternResponse(in *pbssinternal.BlockScopedData) *pbssinternal.ProcessRangeResponse
func NewBlockScopedDataResponse ¶
func NewBlockScopedDataResponse(in *pbsubstreamsrpc.BlockScopedData) *pbsubstreamsrpc.Response
func NewBlockScopedDatasResponse ¶ added in v1.18.0
func NewBlockScopedDatasResponse(in *pbsubstreamsrpcv4.BlockScopedDatas) *pbsubstreamsrpcv4.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
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
substreams
command
|
|
|
internal
|
|
|
formatx
Package formatx renders values for human consumption — block numbers, counts, rates, durations, sizes.
|
Package formatx renders values for human consumption — block numbers, counts, rates, durations, sizes. |
|
pb
|
|
|
remotebuild
module
|
|
|
examples/simple-sink
command
|
|
|
sql/db_proto/sql/postgres/pgcopy
Package pgcopy writes the PostgreSQL binary COPY format ("PGCOPY").
|
Package pgcopy writes the PostgreSQL binary COPY format ("PGCOPY"). |
|
sql/db_proto/sql/spool
Package spool holds a from-proto sink's rows on local disk, pre-encoded into whatever the target database can take unchanged, and applies whole segments from a separate goroutine.
|
Package spool holds a from-proto sink's rows on local disk, pre-encoded into whatever the target database can take unchanged, and applies whole segments from a separate goroutine. |
|
storage
|
|
|
devenv
Package devenv boots a complete local Substreams stack — a dummy blockchain in a container, plus tier1 and tier2 running in-process — against which requests can be issued.
|
Package devenv boots a complete local Substreams stack — a dummy blockchain in a container, plus tier1 and tier2 running in-process — against which requests can be issued. |
|
bench
command
|
|
|
bench/substreams_wasi_go
command
|
|
|
bench/substreams_wasi_go/pb/google/protobuf
Package timestamppb contains generated types for google/protobuf/timestamp.proto.
|
Package timestamppb contains generated types for google/protobuf/timestamp.proto. |
Click to show internal directories.
Click to hide internal directories.