driver_helper

package
v1.1.31-alpha4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInitFail        = errors.New("initial failed")
	ErrDriverNotFound  = errors.New("driver not found")
	ErrUnmatchDriver   = errors.New("unmatch driver")
	ErrInvalidArgument = errors.New("invalid argument")
)

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	Name string
	Path string
}

type Driver

type Driver interface {
	Init(opt_helper.Option) error
	Close() error
}

type DriverFactory

type DriverFactory struct {
	// contains filtered or unexported fields
}

func NewDriverFactory

func NewDriverFactory(path string) (*DriverFactory, error)

func (*DriverFactory) New

func (df *DriverFactory) New(name string, opt opt_helper.Option) (Driver, error)

type NewDriverMethod

type NewDriverMethod func(opt_helper.Option) (Driver, error)

Jump to

Keyboard shortcuts

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