db

package
v0.0.0-...-dec25df Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package db is where all database-specific code which maintains Maestro state and configuration resides.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb(cfg Config) (*pgDb, error)

Given a database config, return an instance which satisfies the model.Db interface for all database operations.

Types

type Config

type Config struct {
	ConnectString string
	Prefix        string
	Secret        string
}

Jump to

Keyboard shortcuts

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