You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

models.go 373 B

2 years ago
12345678910111213141516171819
  1. package models
  2. /// TODO 将分散在各处的公共结构体定义集中到这里来
  3. const (
  4. RedundancyRep = "rep"
  5. RedundancyEC = "ec"
  6. )
  7. type RedundancyConfigTypes interface{}
  8. type RedundancyConfigTypesConst interface {
  9. RepRedundancyConfig | ECRedundancyConfig
  10. }
  11. type RepRedundancyConfig struct {
  12. RepCount int `json:"repCount"`
  13. }
  14. type ECRedundancyConfig struct {
  15. }

公共库