Skip to content

Commit

Permalink
reorganize import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
afshin committed Apr 23, 2016
1 parent 19ea6c3 commit 6e26cd1
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 11 deletions.
3 changes: 2 additions & 1 deletion authenticate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
package wares

import (
"net/http"

"github.com/ursiform/bear"
"github.com/ursiform/forest"
"net/http"
)

func Authenticate(app *forest.App) func(ctx *bear.Context) {
Expand Down
3 changes: 2 additions & 1 deletion body-parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ package wares

import (
"fmt"
"net/http"

"github.com/ursiform/bear"
"github.com/ursiform/forest"
"net/http"
)

func BodyParser(app *forest.App) func(ctx *bear.Context) {
Expand Down
5 changes: 3 additions & 2 deletions csrf.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ package wares
import (
"bytes"
"encoding/json"
"github.com/ursiform/bear"
"github.com/ursiform/forest"
"io/ioutil"
"net/http"

"github.com/ursiform/bear"
"github.com/ursiform/forest"
)

func CSRF(app *forest.App) func(ctx *bear.Context) {
Expand Down
3 changes: 2 additions & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
package wares

import (
"net/http"

"github.com/ursiform/bear"
"github.com/ursiform/forest"
"net/http"
)

func ErrorsBadRequest(app *forest.App) func(ctx *bear.Context) {
Expand Down
3 changes: 2 additions & 1 deletion session-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
package wares

import (
"github.com/ursiform/bear"
"time"

"github.com/ursiform/bear"
)

type SessionManager interface {
Expand Down
3 changes: 2 additions & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ package wares

import (
"fmt"
"net/http"

"github.com/pborman/uuid"
"github.com/ursiform/bear"
"github.com/ursiform/forest"
"net/http"
)

func SessionDel(app *forest.App, manager SessionManager) func(ctx *bear.Context) {
Expand Down
5 changes: 3 additions & 2 deletions wares-test[router]_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ package wares_test
import (
"encoding/json"
"errors"
"io"
"net/http"

"github.com/ursiform/bear"
"github.com/ursiform/forest"
"github.com/ursiform/forest-wares"
"io"
"net/http"
)

// implements Populater
Expand Down
3 changes: 2 additions & 1 deletion wares-test[session-manager]_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ package wares_test

import (
"errors"
"time"

"github.com/ursiform/bear"
"github.com/ursiform/forest"
"time"
)

// implements SessionManager
Expand Down
3 changes: 2 additions & 1 deletion wares-test_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/ursiform/forest"
"io/ioutil"
"net/http"
"net/http/httptest"
"testing"

"github.com/ursiform/forest"
)

const (
Expand Down
1 change: 1 addition & 0 deletions wares.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package wares

import (
"fmt"

"github.com/ursiform/bear"
"github.com/ursiform/forest"
)
Expand Down

0 comments on commit 6e26cd1

Please sign in to comment.