Documentation ¶
Index ¶
- Constants
- Variables
- func ExtractStringFromMapInterface(key string, m map[string]interface{}) (stringValue string, isString bool)
- type ClientConfig
- type IndexerClient
- func (ic *IndexerClient) CloseStream(ctx context.Context, streamID uuid.UUID) error
- func (ic *IndexerClient) GetData(ctx context.Context, taskID uuid.UUID, heightRange structs.ExpandedHeightRange, ...)
- func (ic *IndexerClient) GetLatestMark(ctx context.Context, taskID uuid.UUID, ldr structs.LatestDataRequest, ...)
- func (ic *IndexerClient) Ingest(ctx context.Context, taskID uuid.UUID, heightRange structs.ExpandedHeightRange, ...)
- func (ic *IndexerClient) LatestSequence(ctx context.Context, taskID uuid.UUID, ldr structs.LatestDataRequest, ...)
- func (ic *IndexerClient) RegisterStream(ctx context.Context, stream *cStructs.StreamAccess) error
- func (ic *IndexerClient) Run(ctx context.Context, stream *cStructs.StreamAccess)
Constants ¶
View Source
const NumberOfWorkerProcesses = 20
Variables ¶
View Source
var DefaultClientConfig = &ClientConfig{ LatestMarkTimeout: time.Second * 5, }
Functions ¶
Types ¶
type ClientConfig ¶
type IndexerClient ¶
type IndexerClient struct {
// contains filtered or unexported fields
}
func NewIndexerClient ¶
func NewIndexerClient( ctx context.Context, logger *zap.Logger, f flow.Flow, inFlow flow.IngestionFlow, c *ClientConfig, ) *IndexerClient
func (*IndexerClient) CloseStream ¶
CloseStream removes stream from worker/client
func (*IndexerClient) GetData ¶
func (ic *IndexerClient) GetData( ctx context.Context, taskID uuid.UUID, heightRange structs.ExpandedHeightRange, stream *cStructs.StreamAccess, )
func (*IndexerClient) GetLatestMark ¶
func (ic *IndexerClient) GetLatestMark( ctx context.Context, taskID uuid.UUID, ldr structs.LatestDataRequest, stream *cStructs.StreamAccess, )
GetLatestMark gets latest block
func (*IndexerClient) Ingest ¶ added in v0.9.14
func (ic *IndexerClient) Ingest( ctx context.Context, taskID uuid.UUID, heightRange structs.ExpandedHeightRange, stream *cStructs.StreamAccess, )
Ingest has a worker ingest data from a specified data source and leaves it up to the worker implementation to specify where transformed data gets persisted to.
func (*IndexerClient) LatestSequence ¶ added in v0.9.14
func (ic *IndexerClient) LatestSequence( ctx context.Context, taskID uuid.UUID, ldr structs.LatestDataRequest, stream *cStructs.StreamAccess, )
func (*IndexerClient) RegisterStream ¶
func (ic *IndexerClient) RegisterStream(ctx context.Context, stream *cStructs.StreamAccess) error
RegisterStream adds new listeners to the streams - currently fixed number per stream
func (*IndexerClient) Run ¶
func (ic *IndexerClient) Run(ctx context.Context, stream *cStructs.StreamAccess)
Click to show internal directories.
Click to hide internal directories.