libs5-go/types/cid.go

28 lines
809 B
Go
Raw Normal View History

2024-01-03 08:46:30 +00:00
package types
type CIDType int
const (
CIDTypeRaw CIDType = 0x26
CIDTypeMetadataMedia CIDType = 0xc5
CIDTypeMetadataWebapp CIDType = 0x59
CIDTypeResolver CIDType = 0x25
CIDTypeUserIdentity CIDType = 0x77
CIDTypeBridge CIDType = 0x3a
CIDTypeEncryptedStatic CIDType = 0xae
CIDTypeEncryptedDynamic CIDType = 0xad
2024-01-04 07:24:15 +00:00
CIDTypeDirectory CIDType = 0x5d
2024-01-03 08:46:30 +00:00
)
2024-01-03 08:57:39 +00:00
var CIDTypeMap = map[CIDType]string{
CIDTypeRaw: "Raw",
CIDTypeMetadataMedia: "MetadataMedia",
CIDTypeMetadataWebapp: "MetadataWebapp",
CIDTypeResolver: "Resolver",
CIDTypeUserIdentity: "UserIdentity",
CIDTypeBridge: "Bridge",
CIDTypeEncryptedStatic: "EncryptedStatic",
CIDTypeEncryptedDynamic: "EncryptedDynamic",
2024-01-04 07:24:15 +00:00
CIDTypeDirectory: "Directory",
2024-01-03 08:57:39 +00:00
}