storage

package
v0.0.0-...-ebdf1d9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package storage loads the configuration file with only storage information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	MySQL      mysql.Info      `json:"MySQL"`
	PostgreSQL postgresql.Info `json:"PostgreSQL"`
}

Info contains the database connection information for the different storage.

func LoadConfig

func LoadConfig(configFile string) (*Info, error)

LoadConfig reads the configuration file.

func (*Info) ParseJSON

func (c *Info) ParseJSON(b []byte) error

ParseJSON unmarshals bytes to structs.

Directories

Path Synopsis
driver
mysql
Package mysql provides a wrapper around the sqlx package.
Package mysql provides a wrapper around the sqlx package.
postgresql
Package postgresql provides a wrapper around the pq package.
Package postgresql provides a wrapper around the pq package.
Package migration provides an interface for migrating a database backwards and forwards.
Package migration provides an interface for migrating a database backwards and forwards.
mysql
Package mysql implements MySQL migrations.
Package mysql implements MySQL migrations.

Jump to

Keyboard shortcuts

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