Documentation ¶
Index ¶
- func GetCodec() codec.Codec
- type Service
- type Versions
- func (v *Versions) Clone() memberlist.Mergeable
- func (v *Versions) Marshal() ([]byte, error)
- func (v *Versions) Merge(incoming memberlist.Mergeable, localCAS bool) (memberlist.Mergeable, error)
- func (d *Versions) MergeContent() []string
- func (v *Versions) RemoveTombstones(limit time.Time) (total, removed int)
- func (v *Versions) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { *services.BasicService // contains filtered or unexported fields }
func New ¶
func New(cfg util.CommonRingConfig, logger log.Logger, reg prometheus.Registerer) (*Service, error)
New creates a new version service.
type Versions ¶
func (*Versions) Clone ¶
func (v *Versions) Clone() memberlist.Mergeable
Implements memberlist.Mergeable.
func (*Versions) Merge ¶
func (v *Versions) Merge(incoming memberlist.Mergeable, localCAS bool) (memberlist.Mergeable, error)
Merge merges two versions. This is used when CASing or merging versions from other nodes. v is the local version and should be mutated to include the changes from incoming. The function should only returned changed instances.
func (*Versions) MergeContent ¶
MergeContent describes content of this Mergeable. Versions simply returns list of component that it includes.
func (*Versions) RemoveTombstones ¶
RemoveTombstones is not required for version keys.
Click to show internal directories.
Click to hide internal directories.