Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasinProvider ¶
type BasinProvider interface { Create(context.Context, string, string, basincapnp.Schema, common.Address) (bool, error) Push(context.Context, string, string, basincapnp.Tx, []byte) error List(context.Context, common.Address) ([]string, error) Deals(context.Context, string, string, uint32, uint64) ([]DealInfo, error) LatestDeals(context.Context, string, string, uint32) ([]DealInfo, error) Reconnect() error }
BasinProvider ...
type BasinProviderUploader ¶
type BasinProviderUploader interface {
Upload(context.Context, string, string, uint64, io.Reader, *Signer, io.Writer) error
}
BasinProviderUploader ...
type BasinStreamer ¶
type BasinStreamer struct {
// contains filtered or unexported fields
}
BasinStreamer contains logic of streaming Postgres changes to Basin Provider.
func NewBasinStreamer ¶
func NewBasinStreamer(ns string, r Replicator, bp BasinProvider, pk *ecdsa.PrivateKey) *BasinStreamer
NewBasinStreamer creates new streamer.
type BasinUploader ¶
type BasinUploader struct {
// contains filtered or unexported fields
}
BasinUploader contains logic of uploading Parquet files to Basin Provider.
func NewBasinUploader ¶
func NewBasinUploader(ns string, rel string, bp BasinProviderUploader, pk *ecdsa.PrivateKey) *BasinUploader
NewBasinUploader creates new uploader.
type Replicator ¶
type Replicator interface { StartReplication(ctx context.Context) (chan *pgrepl.Tx, string, error) Commit(ctx context.Context, lsn pglogrepl.LSN) error Shutdown() }
Replicator replicates Postgres txs into a channel.
Click to show internal directories.
Click to hide internal directories.