rough skeleton and basic user authentication
This commit is contained in:
19
ttv/main.go
Normal file
19
ttv/main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package ttv
|
||||
|
||||
import (
|
||||
"zomo.dev/largehadroncollider/db"
|
||||
"zomo.dev/largehadroncollider/util"
|
||||
)
|
||||
|
||||
func InitTwitchConn(conf *util.Config, dbConn *db.DBConn) (*TwitchConn, error) {
|
||||
auth, err := initAuth(conf, dbConn)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &TwitchConn{ auth }, nil
|
||||
}
|
||||
|
||||
type TwitchConn struct {
|
||||
Auth *TwitchAuth
|
||||
}
|
||||
Reference in New Issue
Block a user