connectors

package
v0.0.0-...-3349ed0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeConnectorPostgres = "Postgres"
)

Variables

View Source
var Postgres = make(map[string]*sqldb.Connector)

Functions

func Close

func Close() error

Close DAO connectors.

func GetConnectorPostgres

func GetConnectorPostgres(connectorName string) (*sqldb.Connector, error)

func Init

func Init() error

Init the data sources connectors.

Types

type Conf

type Conf struct {
	Postgres map[string]sqldb.Conf `mapstructure:"postgres"`
}

Conf for the repositories package.

var (

	// Config of the repositories package.
	Config Conf
)

type ConnectorNotFoundError

type ConnectorNotFoundError struct {
	ConnectorType string
	ConnectorName string
}
var (
	ErrConnectorNotFound *ConnectorNotFoundError
)

func (*ConnectorNotFoundError) Error

func (e *ConnectorNotFoundError) Error() string

Jump to

Keyboard shortcuts

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