config

package
v1.0.0-RC9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datasource

type Datasource struct {
	Name   string `json:"name"`
	Driver string `json:"driver"`
	URL    string `json:"url"`
	Schema string `json:"schema"`
}

Datasource represents the metadata of a connection pool

type Persistence

type Persistence struct {
	Datasources []Datasource
}

Persistence represents the collection of datasources defined by the developer in persistence.json

func GetPersistenceConfig

func GetPersistenceConfig(persistenceConfigFile string) Persistence

GetPersistenceConfig generates the persistence struct from persistence.json

Jump to

Keyboard shortcuts

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