autumn_clientv1

package
v0.0.0-...-e603270 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoGCTask

type AutoGCTask struct{}

func (AutoGCTask) Name

func (AutoGCTask) Name() string

type AutumnLib

type AutumnLib struct {
	utils.SafeMutex //protect regions and psDetails
	// contains filtered or unexported fields
}

func NewAutumnLib

func NewAutumnLib(etcdAddr []string) *AutumnLib

func (*AutumnLib) Close

func (lib *AutumnLib) Close()

func (*AutumnLib) Connect

func (lib *AutumnLib) Connect() error

func (*AutumnLib) Delete

func (lib *AutumnLib) Delete(ctx context.Context, key []byte) error

func (*AutumnLib) Get

func (lib *AutumnLib) Get(ctx context.Context, key []byte) ([]byte, error)

func (*AutumnLib) Head

func (lib *AutumnLib) Head(ctx context.Context, key []byte) ([]byte, uint32, error)

Head return key []byte, version uint64, len uint32

func (*AutumnLib) Maintenance

func (lib *AutumnLib) Maintenance(ctx context.Context, partID uint64, task MaintenanceTask) error

func (*AutumnLib) Put

func (lib *AutumnLib) Put(ctx context.Context, key, value []byte) error

func (*AutumnLib) Range

func (lib *AutumnLib) Range(ctx context.Context, prefix []byte, start []byte, limit uint32) ([][]byte, bool, error)

func (*AutumnLib) SplitPart

func (lib *AutumnLib) SplitPart(ctx context.Context, partID uint64) error

func (*AutumnLib) StreamPut

func (lib *AutumnLib) StreamPut(ctx context.Context, key []byte, reader io.Reader, valueSize uint32) error

type CompactTask

type CompactTask struct{}

func (CompactTask) Name

func (CompactTask) Name() string

type ForceGCTask

type ForceGCTask struct{ ExIDs []uint64 }

func (ForceGCTask) Name

func (ForceGCTask) Name() string

type MaintenanceTask

type MaintenanceTask interface {
	Name() string
}

Jump to

Keyboard shortcuts

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