mux

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = New()

Functions

This section is empty.

Types

type ImportDriver

type ImportDriver struct {
	io.Closer
	schema.Inspector
	Dialect    string
	SchemaName string
}

ImportDriver implements Inspector interface and holds inspection information.

type Mux

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

Mux is used for routing dsn to correct provider.

func New

func New() *Mux

New returns a new Mux.

func (*Mux) OpenImport

func (u *Mux) OpenImport(dsn string) (*ImportDriver, error)

OpenImport is used for opening an import driver on a specific data source.

func (*Mux) RegisterProvider

func (u *Mux) RegisterProvider(p importProvider, scheme ...string)

RegisterProvider is used to register an Atlas provider by key.

Jump to

Keyboard shortcuts

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