Skip to content

Commit

Permalink
Drop "domain" from package names.
Browse files Browse the repository at this point in the history
  • Loading branch information
katzien committed Aug 27, 2018
1 parent 8da13ab commit 45d86f2
Show file tree
Hide file tree
Showing 51 changed files with 54 additions and 54 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/storage/json"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/storage/json"
"fmt"
"time"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"fmt"
"log"
"net/http"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/listing"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/storage/memory"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/storage/json"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/http/rest"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/listing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/storage/memory"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/storage/json"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/http/rest"
)

// StorageType defines available storage types
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"encoding/json"
"strconv"
"fmt"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/listing"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/listing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/reviewing"
)

func Handler(a adding.Service, l listing.Service, r reviewing.Service) http.Handler {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/nanobox-io/golang-scribble"
"strconv"
"time"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/listing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/listing"
"runtime"
"path"
)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package memory
import (
"time"
"fmt"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/listing"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/listing"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex-actor/pkg/reviewing"
)

// Memory storage keeps data in memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"log"
"net/http"

"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/http/rest"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/listing"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/storage/memory"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/storage/json"
"github.com/katzien/go-structure-examples/domain-hex/pkg/http/rest"
"github.com/katzien/go-structure-examples/domain-hex/pkg/listing"
"github.com/katzien/go-structure-examples/domain-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex/pkg/storage/memory"
"github.com/katzien/go-structure-examples/domain-hex/pkg/storage/json"
)

// StorageType defines available storage types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package main

import (
"fmt"
"github.com/katzien/go-structure-examples/domain-driven-hex/storage/json"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex/storage/json"
"github.com/katzien/go-structure-examples/domain-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex/pkg/reviewing"
)

func main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"encoding/json"
"strconv"
"fmt"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/listing"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex/pkg/listing"
"github.com/katzien/go-structure-examples/domain-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex/pkg/reviewing"
)

func Handler(a adding.Service, l listing.Service, r reviewing.Service) http.Handler {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/nanobox-io/golang-scribble"
"strconv"
"time"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/listing"
"github.com/katzien/go-structure-examples/domain-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex/pkg/listing"
"runtime"
"path"
)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package memory
import (
"time"
"fmt"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/listing"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/adding"
"github.com/katzien/go-structure-examples/domain-driven-hex-actor/pkg/reviewing"
"github.com/katzien/go-structure-examples/domain-hex/pkg/listing"
"github.com/katzien/go-structure-examples/domain-hex/pkg/adding"
"github.com/katzien/go-structure-examples/domain-hex/pkg/reviewing"
)

// Memory storage keeps data in memory
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/julienschmidt/httprouter"
"net/http"
"encoding/json"
"github.com/katzien/go-structure-examples/domain-driven/beers"
"github.com/katzien/go-structure-examples/domain/beers"
)

// MakeAddBeerEndpoint creates a handler for POST /beers requests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package adding

import (
"github.com/katzien/go-structure-examples/domain-driven/beers"
"github.com/katzien/go-structure-examples/domain/beers"
)

// Service provides beer adding operations
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"
"strconv"
"fmt"
"github.com/katzien/go-structure-examples/domain-driven/beers"
"github.com/katzien/go-structure-examples/domain/beers"
)

type Handler func(http.ResponseWriter, *http.Request, httprouter.Params)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package listing

import (
"github.com/katzien/go-structure-examples/domain-driven/reviews"
"github.com/katzien/go-structure-examples/domain-driven/beers"
"github.com/katzien/go-structure-examples/domain/reviews"
"github.com/katzien/go-structure-examples/domain/beers"
)

// Service provides beer or review listing operations
Expand Down
12 changes: 6 additions & 6 deletions domain-driven/main.go → domain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"net/http"

"github.com/julienschmidt/httprouter"
"github.com/katzien/go-structure-examples/domain-driven/beers"
"github.com/katzien/go-structure-examples/domain-driven/reviews"
"github.com/katzien/go-structure-examples/domain-driven/storage"
"github.com/katzien/go-structure-examples/domain-driven/adding"
"github.com/katzien/go-structure-examples/domain-driven/reviewing"
"github.com/katzien/go-structure-examples/domain-driven/listing"
"github.com/katzien/go-structure-examples/domain/beers"
"github.com/katzien/go-structure-examples/domain/reviews"
"github.com/katzien/go-structure-examples/domain/storage"
"github.com/katzien/go-structure-examples/domain/adding"
"github.com/katzien/go-structure-examples/domain/reviewing"
"github.com/katzien/go-structure-examples/domain/listing"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"
"strconv"
"fmt"
"github.com/katzien/go-structure-examples/domain-driven/reviews"
"github.com/katzien/go-structure-examples/domain/reviews"
)

type Handler func(http.ResponseWriter, *http.Request, httprouter.Params)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package reviewing

import (
"github.com/katzien/go-structure-examples/domain-driven/reviews"
"github.com/katzien/go-structure-examples/domain/reviews"
)

// Service provides review adding operations
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions domain-driven/storage/json.go → domain/storage/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/nanobox-io/golang-scribble"
"strconv"
"github.com/katzien/go-structure-examples/domain-driven/beers"
"github.com/katzien/go-structure-examples/domain-driven/reviews"
"github.com/katzien/go-structure-examples/domain/beers"
"github.com/katzien/go-structure-examples/domain/reviews"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions domain-driven/storage/memory.go → domain/storage/memory.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package storage

import (
"github.com/katzien/go-structure-examples/domain-driven/beers"
"github.com/katzien/go-structure-examples/domain-driven/reviews"
"github.com/katzien/go-structure-examples/domain/beers"
"github.com/katzien/go-structure-examples/domain/reviews"
"time"
"fmt"
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion modular/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package storage
import "github.com/katzien/go-structure-examples/modular/beers"
import "github.com/katzien/go-structure-examples/modular/reviews"

// StorageType defines available storage types
// Type defines available storage types
type Type int

const (
Expand Down

0 comments on commit 45d86f2

Please sign in to comment.