main.go
main.go - Overview
This file defines the Shard
struct, which encapsulates a shard ID and a pointer to a ShardThread
instance.
Detailed Documentation
Shard
type Shard struct {
ID int
Thread *shardthread.ShardThread
}
The Shard
struct represents a data shard within the DiceDB system. It holds the shard's unique identifier and a pointer to the thread responsible for managing the shard's operations.
Fields:
ID
: An integer representing the unique identifier of the shard.Thread
: A pointer to aShardThread
instance, which manages the execution of operations related to this shard.