Config repository (#3988)
* WIP * fix(test): fix ap test failing * fix: fix unkeyed fields being used * chore(tests): clean up browser tests by splitting out federation UI tests
This commit is contained in:
15
persistence/authrepository/authrepository.go
Normal file
15
persistence/authrepository/authrepository.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package authrepository
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
"github.com/owncast/owncast/models"
|
||||
)
|
||||
|
||||
type AuthRepository interface {
|
||||
CreateBanIPTable(db *sql.DB)
|
||||
BanIPAddress(address, note string) error
|
||||
IsIPAddressBanned(address string) (bool, error)
|
||||
GetIPAddressBans() ([]models.IPAddress, error)
|
||||
RemoveIPAddressBan(address string) error
|
||||
}
|
||||
Reference in New Issue
Block a user