version

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCodec

func GetCodec() codec.Codec

Types

type Service

type Service struct {
	*services.BasicService
	// contains filtered or unexported fields
}

func New

New creates a new version service.

func (*Service) Shutdown

func (svc *Service) Shutdown()

Shutdown stops version reports. This should only be called when the service is fully shutting down.

type Versions

type Versions struct {
	*versionv1.Versions
}

func (*Versions) Clone

func (v *Versions) Clone() memberlist.Mergeable

Implements memberlist.Mergeable.

func (*Versions) Marshal

func (v *Versions) Marshal() ([]byte, error)

Implements proto.Marshaler.

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

func (d *Versions) MergeContent() []string

MergeContent describes content of this Mergeable. Versions simply returns list of component that it includes.

func (*Versions) RemoveTombstones

func (v *Versions) RemoveTombstones(limit time.Time) (total, removed int)

RemoveTombstones is not required for version keys.

func (*Versions) Unmarshal

func (v *Versions) Unmarshal(in []byte) error

Implements proto.Unmarshaler.

Jump to

Keyboard shortcuts

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