gitee.com/lh-her-team/common@v1.5.1/shardingbirdsnest/config.go (about) 1 // Package shardingbirdsnest sharding bird's nest configuration 2 package shardingbirdsnest 3 4 import bn "gitee.com/lh-her-team/common/birdsnest" 5 6 // ShardingBirdsNestConfig Sharding bird's Nest configuration 7 type ShardingBirdsNestConfig struct { 8 // ChainId 9 ChainId string `json:"chain_id,omitempty"` 10 // Length bird's nest numbers 11 Length uint32 `json:"length,omitempty"` 12 // Timeout sharding task timeout 13 Timeout int64 `json:"timeout,omitempty"` 14 // Birdsnest Bird's Nest configuration 15 Birdsnest *bn.BirdsNestConfig `json:"birdsnest,omitempty"` 16 // Snapshot configuration 17 Snapshot *bn.SnapshotSerializerConfig `json:"snapshot,omitempty"` 18 }