slotmigraterepo

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SlotMigratePrefix = "migrate/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Slot  uint16
	Value string
}

type SlotMigrateRepo

type SlotMigrateRepo struct {
	// contains filtered or unexported fields
}

SlotMigrateRepo saves information about the slot to be transferred.

func (*SlotMigrateRepo) AllKeysChan

func (s *SlotMigrateRepo) AllKeysChan(ctx context.Context) (<-chan *Entry, error)

func (*SlotMigrateRepo) Get

func (s *SlotMigrateRepo) Get(slot uint16) (value string, err error)

func (*SlotMigrateRepo) Has

func (s *SlotMigrateRepo) Has(slot uint16) (bool, error)

func (*SlotMigrateRepo) Remove

func (s *SlotMigrateRepo) Remove(slot uint16) error

func (*SlotMigrateRepo) Set

func (s *SlotMigrateRepo) Set(slot uint16, value string) error

Jump to

Keyboard shortcuts

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