20 lines
335 B
Go
20 lines
335 B
Go
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
|
|
}
|