go:generate mockgen -source=./channel_manager.go -destination=./channel_manager_mock.go -package=replica ChannelManager manages the construction, retrieving, closing for all channels.
| 38 | |
| 39 | // ChannelManager manages the construction, retrieving, closing for all channels. |
| 40 | type 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. |
| 49 | type ( |
no outgoing calls
no test coverage detected