Documentation ¶
Index ¶
- Constants
- func Convert2ProtoEventbus(ins ...*Eventbus) []*meta.Eventbus
- func Convert2ProtoEventlog(ins ...*Eventlog) []*meta.Eventlog
- func GetBlockMetadataKey(volumeID, blockID vanus.ID) string
- func GetEventbusMetadataKey(id vanus.ID) string
- func GetEventlogMetadataKey(elID vanus.ID) string
- func GetEventlogSegmentsMetadataKey(eventlogID, segmentID vanus.ID) string
- func GetSegmentMetadataKey(segmentID vanus.ID) string
- type Block
- type Eventbus
- type Eventlog
- type VolumeMetadata
Constants ¶
View Source
const ( VolumeKeyPrefixInKVStore = kv.ResourceVolumeMetadata BlockKeyPrefixInKVStore = kv.ResourceVolumeBlock VolumeInstanceKeyPrefixInKVStore = kv.ResourceVolumeInstance EventlogKeyPrefixInKVStore = kv.ResourceEventlog SegmentKeyPrefixInKVStore = kv.ResourceSegment EventlogSegmentsKeyPrefixInKVStore = kv.ResourceSegmentOfEventlog )
Variables ¶
This section is empty.
Functions ¶
func Convert2ProtoEventbus ¶
func Convert2ProtoEventlog ¶
func GetBlockMetadataKey ¶
func GetEventbusMetadataKey ¶
func GetEventlogMetadataKey ¶
func GetSegmentMetadataKey ¶
Types ¶
type Block ¶
type Eventbus ¶
type Eventbus struct { ID vanus.ID `json:"id"` Name string `json:"name"` LogNumber int `json:"log_number"` Eventlogs []*Eventlog `json:"eventlogs"` Description string `json:"description"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` NamespaceID uint64 `json:"namespace_id"` }
Click to show internal directories.
Click to hide internal directories.