Documentation ¶
Index ¶
- Constants
- func FilterCollection(collection *Collection, collectionID types.UniqueID, collectionName *string) bool
- func FilterSegments(segment *Segment, segmentID types.UniqueID, segmentType *string, scope *string, ...) bool
- type Collection
- type CollectionMetadata
- type CollectionMetadataValueBoolType
- type CollectionMetadataValueFloat64Type
- type CollectionMetadataValueInt64Type
- type CollectionMetadataValueStringType
- type CollectionMetadataValueType
- type CreateCollection
- type CreateDatabase
- type CreateSegment
- type CreateTenant
- type Database
- type DeleteCollection
- type FlushCollectionCompaction
- type FlushCollectionInfo
- type FlushSegmentCompaction
- type GetDatabase
- type GetSegments
- type GetTenant
- type Notification
- type Segment
- type SegmentMetadata
- type SegmentMetadataValueBoolType
- type SegmentMetadataValueFloat64Type
- type SegmentMetadataValueInt64Type
- type SegmentMetadataValueStringType
- type SegmentMetadataValueType
- type Tenant
- type TenantLastCompactionTime
- type UpdateCollection
- type UpdateSegment
Constants ¶
View Source
const ( NotificationTypeCreateCollection = "create_collection" NotificationTypeDeleteCollection = "delete_collection" )
View Source
const (
NotificationStatusPending = "pending"
)
Variables ¶
This section is empty.
Functions ¶
func FilterCollection ¶
func FilterCollection(collection *Collection, collectionID types.UniqueID, collectionName *string) bool
Types ¶
type Collection ¶
type CollectionMetadata ¶
type CollectionMetadata[T CollectionMetadataValueType] struct { Metadata map[string]T }
func NewCollectionMetadata ¶
func NewCollectionMetadata[T CollectionMetadataValueType]() *CollectionMetadata[T]
func (*CollectionMetadata[T]) Add ¶
func (m *CollectionMetadata[T]) Add(key string, value T)
func (*CollectionMetadata[T]) Empty ¶
func (m *CollectionMetadata[T]) Empty() bool
func (*CollectionMetadata[T]) Equals ¶
func (m *CollectionMetadata[T]) Equals(other *CollectionMetadata[T]) bool
func (*CollectionMetadata[T]) Get ¶
func (m *CollectionMetadata[T]) Get(key string) T
func (*CollectionMetadata[T]) Remove ¶
func (m *CollectionMetadata[T]) Remove(key string)
type CollectionMetadataValueBoolType ¶
type CollectionMetadataValueBoolType struct {
Value bool
}
func (*CollectionMetadataValueBoolType) Equals ¶
func (s *CollectionMetadataValueBoolType) Equals(other CollectionMetadataValueType) bool
func (*CollectionMetadataValueBoolType) IsCollectionMetadataValueType ¶
func (s *CollectionMetadataValueBoolType) IsCollectionMetadataValueType()
type CollectionMetadataValueFloat64Type ¶
type CollectionMetadataValueFloat64Type struct {
Value float64
}
func (*CollectionMetadataValueFloat64Type) Equals ¶
func (s *CollectionMetadataValueFloat64Type) Equals(other CollectionMetadataValueType) bool
func (*CollectionMetadataValueFloat64Type) IsCollectionMetadataValueType ¶
func (s *CollectionMetadataValueFloat64Type) IsCollectionMetadataValueType()
type CollectionMetadataValueInt64Type ¶
type CollectionMetadataValueInt64Type struct {
Value int64
}
func (*CollectionMetadataValueInt64Type) Equals ¶
func (s *CollectionMetadataValueInt64Type) Equals(other CollectionMetadataValueType) bool
func (*CollectionMetadataValueInt64Type) IsCollectionMetadataValueType ¶
func (s *CollectionMetadataValueInt64Type) IsCollectionMetadataValueType()
type CollectionMetadataValueStringType ¶
type CollectionMetadataValueStringType struct {
Value string
}
func (*CollectionMetadataValueStringType) Equals ¶
func (s *CollectionMetadataValueStringType) Equals(other CollectionMetadataValueType) bool
func (*CollectionMetadataValueStringType) IsCollectionMetadataValueType ¶
func (s *CollectionMetadataValueStringType) IsCollectionMetadataValueType()
type CollectionMetadataValueType ¶
type CollectionMetadataValueType interface { IsCollectionMetadataValueType() Equals(other CollectionMetadataValueType) bool }
type CreateCollection ¶
type CreateDatabase ¶
type CreateSegment ¶
type CreateSegment struct { ID types.UniqueID Type string Scope string CollectionID types.UniqueID Metadata *SegmentMetadata[SegmentMetadataValueType] Ts types.Timestamp }
type CreateTenant ¶
type DeleteCollection ¶
type FlushCollectionInfo ¶
type FlushSegmentCompaction ¶
type GetDatabase ¶
type GetSegments ¶
type Notification ¶
type SegmentMetadata ¶
type SegmentMetadata[T SegmentMetadataValueType] struct { Metadata map[string]T }
func NewSegmentMetadata ¶
func NewSegmentMetadata[T SegmentMetadataValueType]() *SegmentMetadata[T]
func (*SegmentMetadata[T]) Empty ¶
func (m *SegmentMetadata[T]) Empty() bool
func (*SegmentMetadata[T]) Get ¶
func (m *SegmentMetadata[T]) Get(key string) T
func (*SegmentMetadata[T]) Keys ¶
func (m *SegmentMetadata[T]) Keys() []string
func (*SegmentMetadata[T]) Remove ¶
func (m *SegmentMetadata[T]) Remove(key string)
func (*SegmentMetadata[T]) Set ¶
func (m *SegmentMetadata[T]) Set(key string, value T)
type SegmentMetadataValueBoolType ¶
type SegmentMetadataValueBoolType struct {
Value bool
}
func (*SegmentMetadataValueBoolType) IsSegmentMetadataValueType ¶
func (s *SegmentMetadataValueBoolType) IsSegmentMetadataValueType()
type SegmentMetadataValueFloat64Type ¶
type SegmentMetadataValueFloat64Type struct {
Value float64
}
func (*SegmentMetadataValueFloat64Type) IsSegmentMetadataValueType ¶
func (s *SegmentMetadataValueFloat64Type) IsSegmentMetadataValueType()
type SegmentMetadataValueInt64Type ¶
type SegmentMetadataValueInt64Type struct {
Value int64
}
func (*SegmentMetadataValueInt64Type) IsSegmentMetadataValueType ¶
func (s *SegmentMetadataValueInt64Type) IsSegmentMetadataValueType()
type SegmentMetadataValueStringType ¶
type SegmentMetadataValueStringType struct {
Value string
}
func (*SegmentMetadataValueStringType) IsSegmentMetadataValueType ¶
func (s *SegmentMetadataValueStringType) IsSegmentMetadataValueType()
type SegmentMetadataValueType ¶
type SegmentMetadataValueType interface {
IsSegmentMetadataValueType()
}
type UpdateCollection ¶
type UpdateSegment ¶
type UpdateSegment struct { ID types.UniqueID ResetTopic bool Collection *string Metadata *SegmentMetadata[SegmentMetadataValueType] ResetMetadata bool Ts types.Timestamp }
Click to show internal directories.
Click to hide internal directories.