raw

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VSB = "vsb"
)

Variables

View Source
var (
	ErrFormatRegistered = fmt.Errorf("format already registered")
	ErrNotSupported     = fmt.Errorf("not supported format")
	ErrInvalidFormat    = fmt.Errorf("invalid format")
)

Functions

func CloseAllEngine

func CloseAllEngine()

func RegisterEngine

func RegisterEngine(name string, engine Engine) error

Types

type Engine

type Engine interface {
	Close()

	Recover(ctx context.Context) (map[vanus.ID]block.Raw, error)

	Create(ctx context.Context, id vanus.ID, capacity int64) (block.Raw, error)
}

func ResolveEngine

func ResolveEngine(engine string) (Engine, error)

Jump to

Keyboard shortcuts

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