MCPcopy
hub / github.com/lindb/lindb / ChannelManager

Interface ChannelManager

replica/channel_manager.go:40–46  ·  view source on GitHub ↗

go:generate mockgen -source=./channel_manager.go -destination=./channel_manager_mock.go -package=replica ChannelManager manages the construction, retrieving, closing for all channels.

Source from the content-addressed store, hash-verified

38
39// ChannelManager manages the construction, retrieving, closing for all channels.
40type ChannelManager interface {
41 // Write writes a MetricList, the manager handler the database, sharding things.
42 Write(ctx context.Context, database string, brokerBatchRows *metric.BrokerBatchRows) error
43
44 // Close closes all the shardChannel.
45 Close()
46}
47
48// channelManager implements ChannelManager.
49type (

Callers 4

TestChannelManager_WriteFunction · 0.95
WriteMethod · 0.65
TestChannelManager_WriteFunction · 0.95

Implementers 6

channelManagerreplica/channel_manager.go
bufioEntryWriterpkg/bufioutil/bufio_writer.go
snappyWriterpkg/compress/snappy.go
TrackedConninternal/conntrack/tcp_conn_tracker.go
invertedIndexFlusherindex/v1/inverted_flusher.go
metricSchemaFlusherindex/v1/metric_schema_flusher.go

Calls

no outgoing calls

Tested by

no test coverage detected