Documentation ¶ Index ¶ func Exit(db *Database) func Init(db *Database) type DBAdapter Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Exit ¶ func Exit(db *Database) func Init ¶ func Init(db *Database) Init function can perform some initialization work of different databases. Types ¶ type DBAdapter ¶ type DBAdapter interface { GetJobStatus(jobID string) string UpdateJob(job *model.Job) error GetBackendByName(name string) (*backend.Backend, error) } var DbAdapter DBAdapter C is a global variable that controls database module. Source Files ¶ View all Source files db.go Directories ¶ Show internal Expand all Path Synopsis drivers mongo Click to show internal directories. Click to hide internal directories.