@@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"gopkg.in/yaml.v2"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
)
|
||||
|
||||
type ConfYaml struct {
|
||||
|
||||
5
main.go
5
main.go
@@ -4,10 +4,10 @@ import (
|
||||
api "github.com/appleboy/gin-status-api"
|
||||
"github.com/fvbock/endless"
|
||||
"github.com/gin-gonic/gin"
|
||||
"log"
|
||||
"net/http"
|
||||
apns "github.com/sideshow/apns2"
|
||||
"github.com/sideshow/apns2/certificate"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func AbortWithError(c *gin.Context, code int, message string) {
|
||||
@@ -87,6 +87,5 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
endless.ListenAndServe(":"+PushConf.Core.Port, GetMainEngine())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user