Skip to content

Commit

Permalink
rename module name
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Aug 5, 2022
1 parent 6fb5959 commit 3c5a12d
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 32 deletions.
20 changes: 10 additions & 10 deletions examples/cqrs/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ package main

import (
"context"
"github.com/mehdihadeli/mediatr"
"github.com/mehdihadeli/mediatr/examples/cqrs/docs"
productApi "github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/api"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/creating_product/commands"
creatingProductsDtos "github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/creating_product/dtos"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/creating_product/events"
gettingProductByIdDtos "github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/getting_product_by_id/dtos"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/getting_product_by_id/queries"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/repository"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/shared/behaviours"
"github.com/mehdihadeli/go-mediatr"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/docs"
productApi "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/api"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/creating_product/commands"
creatingProductsDtos "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/creating_product/dtos"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/creating_product/events"
gettingProductByIdDtos "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/getting_product_by_id/dtos"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/getting_product_by_id/queries"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/repository"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/shared/behaviours"
"log"
"os"
"os/signal"
Expand Down
10 changes: 5 additions & 5 deletions examples/cqrs/internal/products/api/products_controller.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package api

import (
"github.com/mehdihadeli/mediatr"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/creating_product/commands"
creatingProductsDtos "github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/creating_product/dtos"
gettingProductByIdDtos "github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/getting_product_by_id/dtos"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/getting_product_by_id/queries"
"github.com/mehdihadeli/go-mediatr"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/creating_product/commands"
creatingProductsDtos "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/creating_product/dtos"
gettingProductByIdDtos "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/getting_product_by_id/dtos"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/getting_product_by_id/queries"
"net/http"

"github.com/go-playground/validator"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package commands

import (
"context"
"github.com/mehdihadeli/mediatr"
creatingProductDtos "github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/creating_product/dtos"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/creating_product/events"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/models"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/repository"
"github.com/mehdihadeli/go-mediatr"
creatingProductDtos "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/creating_product/dtos"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/creating_product/events"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/models"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/repository"
)

type CreateProductCommandHandler struct {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dtos

import (
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/dtos"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/dtos"
)

type GetProductByIdQueryResponse struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package queries
import (
"context"
"fmt"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products"
gettingProductByIdDtos "github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/features/getting_product_by_id/dtos"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/repository"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products"
gettingProductByIdDtos "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/getting_product_by_id/dtos"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/repository"

"github.com/pkg/errors"
)
Expand Down
4 changes: 2 additions & 2 deletions examples/cqrs/internal/products/mapper.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package products

import (
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/dtos"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/models"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/dtos"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/models"
)

func MapProductToProductDto(product *models.Product) *dtos.ProductDto {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package repository

import (
"context"
"github.com/mehdihadeli/mediatr/examples/cqrs/internal/products/models"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/models"

uuid "github.com/satori/go.uuid"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package behaviours

import (
"context"
"github.com/mehdihadeli/mediatr"
"github.com/mehdihadeli/go-mediatr"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mehdihadeli/mediatr
module github.com/mehdihadeli/go-mediatr

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion mediatr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Test_RegisterRequestHandler_Should_Register_All_Handlers(t *testing.T) {
}

func Test_Send_Should_Throw_Error_If_No_Handler_Registered(t *testing.T) {
expectedErr := fmt.Sprintf("no handlers for command %T", &RequestTest{})
expectedErr := fmt.Sprintf("no handlers for request %T", &RequestTest{})
_, err := Send[*RequestTest, *ResponseTest](context.Background(), &RequestTest{Data: "test"})
assert.Containsf(t, err.Error(), expectedErr, "expected error containing %q, got %s", expectedErr, err)
}
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="https://goreportcard.com/report/github.com/mehdihadeli/Go-MediatR" ><img alt="go report" src="https://goreportcard.com/badge/github.com/mehdihadeli/Go-MediatR"/></a>
<a><img alt="license" src="https://img.shields.io/badge/go%20version-%3E=1.18-61CFDD.svg?style=flat-square"/></a>
<a href="https://github.com/mehdihadeli/Go-MediatR/blob/main/LICENCE"><img alt="build-status" src="https://img.shields.io/github/license/mashape/apistatus.svg"/></a>
<a href="https://pkg.go.dev/github.com/mehdihadeli/mediatr"><img alt="build-status" src="https://pkg.go.dev/badge/github.com/mehdihadeli/mediatr"/></a>
<a href="https://pkg.go.dev/github.com/mehdihadeli/go-mediatr"><img alt="build-status" src="https://pkg.go.dev/badge/github.com/mehdihadeli/go-mediatr"/></a>
</div>
</div>

Expand All @@ -18,7 +18,7 @@ There are some samples for using this package [here](./examples).
## Installation

```bash
go get github.com/mehdihadeli/mediatr
go get github.com/mehdihadeli/go-mediatr
```

## Strategies
Expand Down

0 comments on commit 3c5a12d

Please sign in to comment.