Browse Source

Migrate module to gitlab.com/wpetit

extension
wpetit 2 years ago
parent
commit
bbcb571772
13 changed files with 19 additions and 19 deletions
  1. +1
    -1
      Makefile
  2. +1
    -1
      README.md
  3. +4
    -4
      goweb_test.go
  4. +2
    -2
      middleware/container/service_container.go
  5. +1
    -1
      middleware/container/service_container_test.go
  6. +1
    -1
      middleware/debug/debug.go
  7. +1
    -1
      service/session/service.go
  8. +1
    -1
      service/template/service.go
  9. +1
    -1
      session/gorilla/provider.go
  10. +1
    -1
      session/gorilla/service.go
  11. +1
    -1
      session/gorilla/session.go
  12. +3
    -3
      template/html/data.go
  13. +1
    -1
      template/html/provider.go

+ 1
- 1
Makefile View File

@ -17,7 +17,7 @@ clean:
rm -rf ./bin ./release ./coverage
doc:
@echo "open your browser to http://localhost:6060/pkg/forge.cadoles.com/wpetit/goweb to see the documentation"
@echo "open your browser to http://localhost:6060/pkg/gitlab.com/wpetit/goweb to see the documentation"
godoc -http=:6060

+ 1
- 1
README.md View File

@ -6,7 +6,7 @@ Librairie d'aide à la création d'applications web pour Go
## Documentation
https://godoc.org/forge.cadoles.com/wpetit/goweb
https://godoc.org/gitlab.com/wpetit/goweb
## License

+ 4
- 4
goweb_test.go View File

@ -3,11 +3,11 @@ package goweb
import (
"net/http"
containerMiddleware "forge.cadoles.com/wpetit/goweb/middleware/container"
"forge.cadoles.com/wpetit/goweb/service"
"forge.cadoles.com/wpetit/goweb/service/template"
"forge.cadoles.com/wpetit/goweb/template/html"
"github.com/go-chi/chi"
containerMiddleware "gitlab.com/wpetit/goweb/middleware/container"
"gitlab.com/wpetit/goweb/service"
"gitlab.com/wpetit/goweb/service/template"
"gitlab.com/wpetit/goweb/template/html"
)
func Example_usage() {


+ 2
- 2
middleware/container/service_container.go View File

@ -4,9 +4,9 @@ import (
"context"
"errors"
goweb "forge.cadoles.com/wpetit/goweb/middleware"
"forge.cadoles.com/wpetit/goweb/service"
"github.com/go-chi/chi/middleware"
goweb "gitlab.com/wpetit/goweb/middleware"
"gitlab.com/wpetit/goweb/service"
)
const (


+ 1
- 1
middleware/container/service_container_test.go View File

@ -4,7 +4,7 @@ import (
"context"
"testing"
"forge.cadoles.com/wpetit/goweb/service"
"gitlab.com/wpetit/goweb/service"
)
func TestContextServiceContainer(t *testing.T) {


+ 1
- 1
middleware/debug/debug.go View File

@ -4,8 +4,8 @@ import (
"context"
"errors"
goweb "forge.cadoles.com/wpetit/goweb/middleware"
"github.com/go-chi/chi/middleware"
goweb "gitlab.com/wpetit/goweb/middleware"
)
const (


+ 1
- 1
service/session/service.go View File

@ -3,8 +3,8 @@ package session
import (
"net/http"
"forge.cadoles.com/wpetit/goweb/service"
"github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service"
)
// ServiceName defines the Session service name


+ 1
- 1
service/template/service.go View File

@ -3,8 +3,8 @@ package template
import (
"net/http"
"forge.cadoles.com/wpetit/goweb/service"
"github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service"
)
// ServiceName defines the Tempate service name


+ 1
- 1
session/gorilla/provider.go View File

@ -1,8 +1,8 @@
package gorilla
import (
"forge.cadoles.com/wpetit/goweb/service"
"github.com/gorilla/sessions"
"gitlab.com/wpetit/goweb/service"
)
// ServiceProvider returns a service.Provider for the


+ 1
- 1
session/gorilla/service.go View File

@ -5,9 +5,9 @@ import (
"github.com/gorilla/securecookie"
"forge.cadoles.com/wpetit/goweb/service/session"
"github.com/gorilla/sessions"
"github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service/session"
)
// SessionService is an implementation of service.Session


+ 1
- 1
session/gorilla/session.go View File

@ -4,8 +4,8 @@ import (
"fmt"
"net/http"
"forge.cadoles.com/wpetit/goweb/service/session"
"github.com/gorilla/sessions"
"gitlab.com/wpetit/goweb/service/session"
)
// Session is an implementation of the session.Session service


+ 3
- 3
template/html/data.go View File

@ -3,10 +3,10 @@ package html
import (
"net/http"
"forge.cadoles.com/wpetit/goweb/service"
"forge.cadoles.com/wpetit/goweb/service/session"
"forge.cadoles.com/wpetit/goweb/service/template"
"github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service"
"gitlab.com/wpetit/goweb/service/session"
"gitlab.com/wpetit/goweb/service/template"
)
// WithFlashes extends the template's data with session's flash messages


+ 1
- 1
template/html/provider.go View File

@ -1,6 +1,6 @@
package html
import "forge.cadoles.com/wpetit/goweb/service"
import "gitlab.com/wpetit/goweb/service"
// ServiceProvider returns a service.Provider for the
// the HTML template service implementation


Loading…
Cancel
Save