bootstrap

package
v0.0.0-...-70edb27 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package bootstrap provides custom initialisation functions to be called from main on startup

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Database

func Database(conf *config.Database, version string) (*sqlx.DB, error)

Database initialises the database and returns the connection

func DatabaseReset

func DatabaseReset(conf *config.Database) error

DatabaseReset resets the whole database. NOTE: all data will be lost, should be used only for development.

Types

This section is empty.

Jump to

Keyboard shortcuts

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