Documentation ¶
Index ¶
- Constants
- Variables
- func GetHexToUint32(keyspaceComponentHexId string) (uint32, error)
- func LEB128Dec(data []byte) ([]byte, uint32)
- type Collection
- type CollectionManifest
- func (cm *CollectionManifest) GetCollectionID(scope, collection string) (uint32, error)
- func (cm *CollectionManifest) GetManifestId() string
- func (cm *CollectionManifest) GetScopeAndCollectionID(scope, collection string) (uint32, uint32, error)
- func (cm *CollectionManifest) GetScopes() map[string][]string
- type CollectionScope
Constants ¶
View Source
const CID_FOR_BUCKET uint32 = 0
View Source
const COLLECTION_SUPPORTED_VERSION uint32 = 7
Variables ¶
View Source
var COLLECTION_ID_NIL = errors.New("manifest not found")
View Source
var COLLECTION_NOT_FOUND = errors.New("Collection Not defined")
View Source
var SCOPE_NOT_FOUND = errors.New("Scope Not defined")
Functions ¶
func GetHexToUint32 ¶
Types ¶
type Collection ¶
type CollectionManifest ¶
type CollectionManifest struct { UID string `json:"uid"` Scopes []CollectionScope `json:"scopes"` }
func (*CollectionManifest) GetCollectionID ¶
func (cm *CollectionManifest) GetCollectionID(scope, collection string) (uint32, error)
func (*CollectionManifest) GetManifestId ¶
func (cm *CollectionManifest) GetManifestId() string
func (*CollectionManifest) GetScopeAndCollectionID ¶
func (cm *CollectionManifest) GetScopeAndCollectionID(scope, collection string) (uint32, uint32, error)
func (*CollectionManifest) GetScopes ¶
func (cm *CollectionManifest) GetScopes() map[string][]string
type CollectionScope ¶
type CollectionScope struct { Name string `json:"name"` UID string `json:"uid"` // base 16 string Collections []Collection `json:"collections"` }
Click to show internal directories.
Click to hide internal directories.