Browse Source

rm github.com

master
Tooooommy 4 years ago
parent
commit
f9eb9bac55
  1. 10
      README.md
  2. 2
      example/app/ctltest.go
  3. 2
      example/app/wstest.go
  4. 6
      example/main.go
  5. 6
      osmanthuswine.go
  6. 2
      src/core/request.go
  7. 2
      src/core/response.go
  8. 2
      src/core/router.go
  9. 2
      src/core/websocket.go
  10. 2
      src/helper/db2struct.go

10
README.md

@ -1,7 +1,7 @@
## 内部使用基于go-chi的web框架
# 框架引入
> go get -u github.com/ouxuanserver/osmanthuswine
> go get -u git.ouxuan.net/tommy/osmanthuswine
# 开始
...
@ -33,8 +33,8 @@ package main
import (
"./app/index"
"github.com/ouxuanserver/osmanthuswine"
"github.com/ouxuanserver/osmanthuswine/src/core"
"git.ouxuan.net/tommy/osmanthuswine"
"git.ouxuan.net/tommy/osmanthuswine/src/core"
)
func main() {
@ -52,7 +52,7 @@ func main() {
package index
import (
"github.com/ouxuanserver/osmanthuswine/src/core"
"git.ouxuan.net/tommy/osmanthuswine/src/core"
)
type Index struct {
@ -186,7 +186,7 @@ max_open_conn为可支持最大连接数(未测试是否可用
package index
import (
"github.com/ouxuanserver/osmanthuswine/src/core"
"git.ouxuan.net/tommy/osmanthuswine/src/core"
"gopkg.in/olahol/melody.v1"
)

2
example/app/ctltest.go

@ -3,7 +3,7 @@ package app
import (
"log"
"github.com/ouxuanserver/osmanthuswine/src/core"
"git.ouxuan.net/tommy/osmanthuswine/src/core"
)
type Ctltest struct {

2
example/app/wstest.go

@ -1,7 +1,7 @@
package app
import (
"github.com/ouxuanserver/osmanthuswine/src/core"
"git.ouxuan.net/tommy/osmanthuswine/src/core"
"gopkg.in/olahol/melody.v1"
)

6
example/main.go

@ -1,9 +1,9 @@
package main
import (
"github.com/ouxuanserver/osmanthuswine"
"github.com/ouxuanserver/osmanthuswine/example/app"
"github.com/ouxuanserver/osmanthuswine/src/core"
"git.ouxuan.net/tommy/osmanthuswine"
"git.ouxuan.net/tommy/osmanthuswine/example/app"
"git.ouxuan.net/tommy/osmanthuswine/src/core"
)
func main() {

6
osmanthuswine.go

@ -3,11 +3,11 @@ package osmanthuswine
import (
"errors"
"fmt"
"git.ouxuan.net/tommy/osmanthuswine/src/core"
"git.ouxuan.net/tommy/osmanthuswine/src/helper"
"git.ouxuan.net/tommy/osmanthuswine/src/session"
"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"github.com/ouxuanserver/osmanthuswine/src/core"
"github.com/ouxuanserver/osmanthuswine/src/helper"
"github.com/ouxuanserver/osmanthuswine/src/session"
"github.com/wailovet/overseer"
"github.com/wailovet/overseer/fetcher"
"log"

2
src/core/request.go

@ -1,7 +1,7 @@
package core
import (
"github.com/ouxuanserver/osmanthuswine/src/session"
"git.ouxuan.net/tommy/osmanthuswine/src/session"
"io/ioutil"
"log"
"mime/multipart"

2
src/core/response.go

@ -2,7 +2,7 @@ package core
import (
"encoding/json"
"github.com/ouxuanserver/osmanthuswine/src/session"
"git.ouxuan.net/tommy/osmanthuswine/src/session"
"net/http"
"strings"
)

2
src/core/router.go

@ -6,7 +6,7 @@ import (
"strings"
"unicode"
"github.com/ouxuanserver/osmanthuswine/src/interfaces"
"git.ouxuan.net/tommy/osmanthuswine/src/interfaces"
)
type RouterManage struct {

2
src/core/websocket.go

@ -1,7 +1,7 @@
package core
import (
"github.com/ouxuanserver/osmanthuswine/src/interfaces"
"git.ouxuan.net/tommy/osmanthuswine/src/interfaces"
"gopkg.in/olahol/melody.v1"
"net/http"
"sync"

2
src/helper/db2struct.go

@ -1,8 +1,8 @@
package helper
import (
"git.ouxuan.net/tommy/osmanthuswine/src/core"
"github.com/go-errors/errors"
"github.com/ouxuanserver/osmanthuswine/src/core"
"github.com/wailovet/db2struct"
"strconv"
)

Loading…
Cancel
Save