drivers

package
v0.0.0-...-1a511a4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDriverNotFound = errors.Error("driver not found")
)

Functions

This section is empty.

Types

type DriverManager

type DriverManager struct {
	*sync.Map
	// contains filtered or unexported fields
}

func NewDriverManager

func NewDriverManager(keySep string) *DriverManager

func (*DriverManager) Get

func (m *DriverManager) Get(keys ...string) (interface{}, error)

func (*DriverManager) GetDrivers

func (m *DriverManager) GetDrivers() map[string]interface{}

func (*DriverManager) Register

func (m *DriverManager) Register(drv interface{}, keys ...string) error

Jump to

Keyboard shortcuts

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