Documentation
¶
Index ¶
- func NewSegmentStorage(segmentCollection collections.SegmentChangesCollection) storage.SegmentStorage
- func NewSplitStorage(splitCollection collections.SplitChangesCollection) storage.SplitStorage
- type SegmentStorage
- func (s SegmentStorage) ChangeNumber(segment string) (int64, error)
- func (s SegmentStorage) CountRemovedKeys(segmentName string) int64
- func (s SegmentStorage) Keys(segmentName string) *set.ThreadUnsafeSet
- func (s SegmentStorage) SegmentContainsKey(segmentName string, key string) (bool, error)
- func (s SegmentStorage) SetChangeNumber(segment string, changeNumber int64) error
- func (s SegmentStorage) Update(name string, toAdd *set.ThreadUnsafeSet, toRemove *set.ThreadUnsafeSet, ...) error
- type SplitStorage
- func (s SplitStorage) All() []dtos.SplitDTO
- func (s SplitStorage) ChangeNumber() (int64, error)
- func (s SplitStorage) FetchMany(splitNames []string) map[string]*dtos.SplitDTO
- func (s SplitStorage) KillLocally(splitName string, defaultTreatment string, changeNumber int64)
- func (s SplitStorage) PutMany(splits []dtos.SplitDTO, changeNumber int64)
- func (s SplitStorage) Remove(splitName string)
- func (s SplitStorage) SegmentNames() *set.ThreadUnsafeSet
- func (s SplitStorage) SetChangeNumber(changeNumber int64) error
- func (s SplitStorage) Split(splitName string) *dtos.SplitDTO
- func (s SplitStorage) SplitNames() []string
- func (s SplitStorage) TrafficTypeExists(trafficType string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSegmentStorage ¶
func NewSegmentStorage(segmentCollection collections.SegmentChangesCollection) storage.SegmentStorage
NewSegmentStorage for proxy
func NewSplitStorage ¶
func NewSplitStorage(splitCollection collections.SplitChangesCollection) storage.SplitStorage
NewSplitStorage for proxy
Types ¶
type SegmentStorage ¶
type SegmentStorage struct {
// contains filtered or unexported fields
}
SegmentStorage struct
func (SegmentStorage) ChangeNumber ¶
func (s SegmentStorage) ChangeNumber(segment string) (int64, error)
ChangeNumber storage
func (SegmentStorage) CountRemovedKeys ¶
func (s SegmentStorage) CountRemovedKeys(segmentName string) int64
CountRemovedKeys method
func (SegmentStorage) Keys ¶
func (s SegmentStorage) Keys(segmentName string) *set.ThreadUnsafeSet
Keys method
func (SegmentStorage) SegmentContainsKey ¶
func (s SegmentStorage) SegmentContainsKey(segmentName string, key string) (bool, error)
SegmentContainsKey method
func (SegmentStorage) SetChangeNumber ¶
func (s SegmentStorage) SetChangeNumber(segment string, changeNumber int64) error
SetChangeNumber method
func (SegmentStorage) Update ¶
func (s SegmentStorage) Update(name string, toAdd *set.ThreadUnsafeSet, toRemove *set.ThreadUnsafeSet, changeNumber int64) error
Update method
type SplitStorage ¶
type SplitStorage struct {
// contains filtered or unexported fields
}
SplitStorage struct
func (SplitStorage) ChangeNumber ¶
func (s SplitStorage) ChangeNumber() (int64, error)
ChangeNumber storage
func (SplitStorage) FetchMany ¶
func (s SplitStorage) FetchMany(splitNames []string) map[string]*dtos.SplitDTO
FetchMany method
func (SplitStorage) KillLocally ¶
func (s SplitStorage) KillLocally(splitName string, defaultTreatment string, changeNumber int64)
KillLocally kills
func (SplitStorage) PutMany ¶
func (s SplitStorage) PutMany(splits []dtos.SplitDTO, changeNumber int64)
PutMany method
func (SplitStorage) SegmentNames ¶
func (s SplitStorage) SegmentNames() *set.ThreadUnsafeSet
SegmentNames method
func (SplitStorage) SetChangeNumber ¶
func (s SplitStorage) SetChangeNumber(changeNumber int64) error
SetChangeNumber method
func (SplitStorage) Split ¶
func (s SplitStorage) Split(splitName string) *dtos.SplitDTO
Split method
func (SplitStorage) TrafficTypeExists ¶
func (s SplitStorage) TrafficTypeExists(trafficType string) bool
TrafficTypeExists method
Click to show internal directories.
Click to hide internal directories.