user authentication structure in place
This commit is contained in:
@@ -16,8 +16,8 @@ func InitDBColdConn(conf *util.Config) (*DBColdConn, error) {
|
||||
return nil, err
|
||||
}
|
||||
ctx := context.Background()
|
||||
|
||||
cold := &DBColdConn{ db, ctx }
|
||||
|
||||
cold := &DBColdConn{db, ctx}
|
||||
cold.initUserAuth()
|
||||
|
||||
return cold, nil
|
||||
@@ -25,5 +25,5 @@ func InitDBColdConn(conf *util.Config) (*DBColdConn, error) {
|
||||
|
||||
type DBColdConn struct {
|
||||
Gorm *gorm.DB
|
||||
Ctx context.Context
|
||||
Ctx context.Context
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user