handler

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: CC0-1.0, CC0-1.0, CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.1.34

type Config struct {
	DBName  string // The database name
	AppName string // The application name (if any)
}

Config describes possible configuration options for a handler.

type Interface

type Interface interface {
	// DriverName returns the driver name associated with this handler.
	DriverName() string
	// ToDataSource returns the data source string for the given config. The handler is free to use sensible default values if any of the arguments are empty.
	ToDataSource(cfg Config) (string, error)
}

Interface is the interface satisfied by handlers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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