driver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package driver provides a database driver interface for storage backends

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(name, path string, cfg any) (ethdb.Database, error)

Open opens a database using the named driver

func Register

func Register(name string, driver Driver)

Register registers a driver for a given name

Types

type Driver

type Driver interface {
	Open(path string, cfg any) (ethdb.Database, error)
}

Driver interface for database backends

Jump to

Keyboard shortcuts

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