Skip to content

Instantly share code, notes, and snippets.

@redbo
Created June 1, 2017 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redbo/55b32b19ce86f85c5132b639ecae2aeb to your computer and use it in GitHub Desktop.
Save redbo/55b32b19ce86f85c5132b639ecae2aeb to your computer and use it in GitHub Desktop.
type RingBuilder struct {
LastPartGatherStart int64 `pickle:"_last_part_gather_start"`
LastPartMovesEpoch int64 `pickle:"_last_part_moves_epoch"`
PartPower int64 `pickle:"part_power"`
DevsChanged bool `pickle:"devs_changed"`
Replicas float64 `pickle:"replicas"`
MinPartHours int64 `pickle:"min_part_hours"`
Parts int64 `pickle:"parts"`
Overload float64 `pickle:"overload"`
Dispersion float64 `pickle:"dispersion"`
Version int64 `pickle:"version"`
Devices []RingBuilderDevice `pickle:"devs"`
RemoveDevs []interface{} `pickle:"_remove_devs"`
LastPartMoves struct {
ArrayType string // should be "B"
Data []uint8
} `pickle:"_last_part_moves"`
Replica2Part2Dev []struct {
ArrayType string // should be "H"
Data []uint
} `pickle:"_replica2part2dev"`
DispersionGraph map[PickleTuple][]interface{} `pickle:"_dispersion_graph"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment