setup

package
v0.0.0-...-dd30ea9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationDatabase

type ConfigurationDatabase struct {
	Host         string
	DatabaseName string
	Username     string
	Password     string
	Driver       string
}

func (*ConfigurationDatabase) ConnectionString

func (t *ConfigurationDatabase) ConnectionString() (string, error)

type Indexer

type Indexer struct {
	Url string
}

type Setup

type Setup struct {
	RootChDir   string
	Environment string

	//should be a pointer to *gorp.DbMap
	Relational interface{}

	//should be a pointer to *mgo.Database
	NoSql interface{}

	BaseUrl      string
	BaseApiName  string
	RelationalDb *ConfigurationDatabase
	NoSqlDb      *ConfigurationDatabase

	FileStorage string

	Indexer *Indexer
}

func (*Setup) InitDb

func (t *Setup) InitDb() error

Jump to

Keyboard shortcuts

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