Drop SifCap
No longer used, keep sifcap.go for reference. Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
@@ -9,3 +9,5 @@ logs
|
||||
assets/api1.json
|
||||
assets/api2.json
|
||||
assets/api3.json
|
||||
|
||||
.vscode
|
||||
|
||||
@@ -10,5 +10,3 @@ log:
|
||||
log_save: true
|
||||
leveldb:
|
||||
data_path: ./data/honoka-chan.db
|
||||
sifcap:
|
||||
enabled: false
|
||||
|
||||
@@ -18,7 +18,6 @@ type AppConfigs struct {
|
||||
Server ServerConfigs `yaml:"server"`
|
||||
Log LogConfigs `yaml:"log"`
|
||||
LevelDb LevelDbConfigs `yaml:"leveldb"`
|
||||
SifCap SifCapConfigs `yaml:"sifcap"`
|
||||
}
|
||||
|
||||
type ServerConfigs struct {
|
||||
@@ -38,10 +37,6 @@ type LevelDbConfigs struct {
|
||||
DataPath string `yaml:"data_path"`
|
||||
}
|
||||
|
||||
type SifCapConfigs struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
}
|
||||
|
||||
func DefaultConfigs() *AppConfigs {
|
||||
return &AppConfigs{
|
||||
AppName: "LL! SIF Private Server",
|
||||
@@ -59,9 +54,6 @@ func DefaultConfigs() *AppConfigs {
|
||||
LevelDb: LevelDbConfigs{
|
||||
DataPath: "./data/honoka-chan.db",
|
||||
},
|
||||
SifCap: SifCapConfigs{
|
||||
Enabled: false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import (
|
||||
"honoka-chan/config"
|
||||
"honoka-chan/handler"
|
||||
"honoka-chan/middleware"
|
||||
"honoka-chan/sifcap"
|
||||
_ "honoka-chan/tools"
|
||||
"honoka-chan/xclog"
|
||||
"net/http"
|
||||
@@ -17,9 +16,6 @@ func init() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
if config.Conf.SifCap.Enabled {
|
||||
sifcap.Start()
|
||||
} else {
|
||||
// Router
|
||||
r := gin.Default()
|
||||
r.Static("/static", "static")
|
||||
@@ -93,5 +89,4 @@ func main() {
|
||||
})
|
||||
|
||||
r.Run(":8080") // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user