rough skeleton and basic user authentication

This commit is contained in:
zomo
2025-10-31 10:32:50 -05:00
commit 8355ca374b
17 changed files with 542 additions and 0 deletions

10
db/db_cold/main.go Normal file
View File

@@ -0,0 +1,10 @@
package db_cold
// sqlite file
func InitDBColdConn() (DBColdConn, error) {
return DBColdConn{}, nil
}
type DBColdConn struct {
}

10
db/db_hot/main.go Normal file
View File

@@ -0,0 +1,10 @@
package db_hot
// redis connection
func InitDBHotConn() (DBHotConn, error) {
return DBHotConn{}, nil
}
type DBHotConn struct {
}

24
db/main.go Normal file
View File

@@ -0,0 +1,24 @@
package db
import (
"zomo.dev/largehadroncollider/db/db_cold"
"zomo.dev/largehadroncollider/db/db_hot"
"zomo.dev/largehadroncollider/util"
)
func InitDBConn(conf *util.Config) (*DBConn, error) {
hot, err := db_hot.InitDBHotConn()
if err != nil {
return nil, err
}
cold, err := db_cold.InitDBColdConn()
if err != nil {
return nil, err
}
return &DBConn{ hot, cold }, nil
}
type DBConn struct {
hot db_hot.DBHotConn
cold db_cold.DBColdConn
}