storage

package
v4.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) All

func (s SplitStorage) All() []dtos.SplitDTO

All method

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) Remove

func (s SplitStorage) Remove(splitName string)

Remove 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) SplitNames

func (s SplitStorage) SplitNames() []string

SplitNames method

func (SplitStorage) TrafficTypeExists

func (s SplitStorage) TrafficTypeExists(trafficType string) bool

TrafficTypeExists method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL