disk

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) storage.Storage

New return new disk storage.

Types

type Config

type Config interface {
	StateDir() string
	MaxSnapshotFiles() int
	Context() context.Context
	Logger() raftlog.Logger
}

Config define common configuration used by the New function.

Jump to

Keyboard shortcuts

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