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.
|
- package services
-
- import (
- jcstypes "gitlink.org.cn/cloudream/jcs-pub/common/types"
- "gitlink.org.cn/cloudream/jcs-pub/common/types/datamap"
- )
-
- func getBlockTypeFromRed(red jcstypes.Redundancy) string {
- switch red.(type) {
- case *jcstypes.NoneRedundancy:
- return datamap.BlockTypeRaw
-
- case *jcstypes.ECRedundancy:
- return datamap.BlockTypeEC
-
- case *jcstypes.LRCRedundancy:
- return datamap.BlockTypeEC
-
- case *jcstypes.SegmentRedundancy:
- return datamap.BlockTypeSegment
- }
- return ""
- }
|