Skip to content

Commit 508025a

Browse files
authored
Merge pull request #31 from rog-golang-buddies/feature/apispec_external
Switch to external API spec document dependency.
2 parents 36a91a5 + 73f0012 commit 508025a

23 files changed

+109
-408
lines changed

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ require (
77
github.com/golang/mock v1.6.0
88
github.com/kelseyhightower/envconfig v1.4.0
99
github.com/rabbitmq/amqp091-go v1.4.0
10+
github.com/rog-golang-buddies/api_hub_common v0.0.3
1011
github.com/stretchr/testify v1.8.0
1112
github.com/wagslane/go-rabbitmq v0.10.0
1213
go.uber.org/zap v1.22.0

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
2828
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2929
github.com/rabbitmq/amqp091-go v1.4.0 h1:T2G+J9W9OY4p64Di23J6yH7tOkMocgnESvYeBjuG9cY=
3030
github.com/rabbitmq/amqp091-go v1.4.0/go.mod h1:JsV0ofX5f1nwOGafb8L5rBItt9GyhfQfcJj+oyz0dGg=
31+
github.com/rog-golang-buddies/api_hub_common v0.0.3 h1:ABg+GOuVfhjL5x3yjqBZRVvWnJ9izs/yS1iARqVi7s0=
32+
github.com/rog-golang-buddies/api_hub_common v0.0.3/go.mod h1:9qNVWp7RgAcS7xVtPbALrWIYXh0DWKZakw7tWo2sE6k=
3133
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
3234
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
3335
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=

internal/config/logger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package config
22

3-
//LoggerConfig represents configuration of the logger
3+
// LoggerConfig represents configuration of the logger
44
type LoggerConfig struct {
55
Level LoggerLevel `default:"info"` //Level of minimum logging
66
}

internal/config/queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package config
22

3-
//QueueConfig queue configuration
3+
// QueueConfig queue configuration
44
type QueueConfig struct {
55
//UrlRequestQueue name to listen to the new events
66
UrlRequestQueue string `default:"data-scraping-asd" envconfig:"URL_REQUEST_QUEUE"`

internal/config/types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ package config
22

33
import "go.uber.org/zap/zapcore"
44

5-
//Environment defines the application environment to adjust settings to it.
5+
// Environment defines the application environment to adjust settings to it.
66
type Environment string
77

88
const (
99
Dev Environment = "dev"
1010
Prod Environment = "prod"
1111
)
1212

13-
//LoggerLevel defines the minimum logging level to process
13+
// LoggerLevel defines the minimum logging level to process
1414
type LoggerLevel string
1515

1616
const (

internal/dto/apiSpecDoc/apiSpecDoc.go

-229
This file was deleted.

internal/dto/apiSpecDoc/types.go

-75
This file was deleted.

internal/dto/scrapingResult.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package dto
22

3-
import "github.com/rog-golang-buddies/api-hub_data-scraping-service/internal/dto/apiSpecDoc"
3+
import "github.com/rog-golang-buddies/api_hub_common/apispecdoc"
44

55
type ScrapingResult struct {
66
IsNotifyUser bool
77

8-
ApiSpecDoc *apiSpecDoc.ApiSpecDoc
8+
ApiSpecDoc *apispecdoc.ApiSpecDoc
99
}

internal/logger/logger.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import (
44
"github.com/rog-golang-buddies/api-hub_data-scraping-service/internal/config"
55
)
66

7-
//Logger represents common logger interface
7+
// Logger represents common logger interface
8+
//
89
//go:generate mockgen -source=logger.go -destination=./mocks/logger.go
910
type Logger interface {
1011
Fatal(args ...interface{})

0 commit comments

Comments
 (0)