model

package
v0.0.0-...-9dec8c7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDockerDB

func GetDockerDB() *gorm.DB

func GetSelfDB

func GetSelfDB() *gorm.DB

func InitDockerDB

func InitDockerDB() *gorm.DB

func InitSelfDB

func InitSelfDB() *gorm.DB

used for cli

Types

type Database

type Database struct {
	Self   *gorm.DB
	Docker *gorm.DB
}
var DB *Database

func (*Database) Close

func (db *Database) Close()

func (*Database) Init

func (db *Database) Init()

Jump to

Keyboard shortcuts

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