This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
networks: | |
metrics: | |
driver: bridge | |
transactional: | |
driver: bridge | |
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles. | |
# TYPE go_gc_duration_seconds summary | |
go_gc_duration_seconds{quantile="0"} 0 | |
go_gc_duration_seconds{quantile="0.25"} 0 | |
go_gc_duration_seconds{quantile="0.5"} 0 | |
go_gc_duration_seconds{quantile="0.75"} 0 | |
go_gc_duration_seconds{quantile="1"} 0 | |
go_gc_duration_seconds_sum 0 | |
go_gc_duration_seconds_count 0 | |
# HELP go_goroutines Number of goroutines that currently exist. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type HttpHandler interface { | |
Name() string | |
Pattern() string | |
Verb() string | |
Handle(r *http.Request) (response apiresponse.ApiResponse, err apierror.ApiError) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package endpointmetrics | |
import ( | |
"fmt" | |
"github.com/prometheus/client_golang/prometheus/promhttp" | |
"medium/m/v2/internal/observability/metrics/countermetrics" | |
"medium/m/v2/internal/observability/metrics/histogrammetrics" | |
"net/http" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package countermetrics | |
import ( | |
"github.com/prometheus/client_golang/prometheus" | |
"github.com/prometheus/client_golang/prometheus/promauto" | |
"medium/m/v2/internal/observability/metrics" | |
) | |
type Metric struct { | |
Name string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package api | |
import ( | |
"medium/m/v2/internal/api/apierror" | |
"medium/m/v2/internal/api/apiresponse" | |
"medium/m/v2/internal/encode" | |
"medium/m/v2/internal/observability/metrics/endpointmetrics" | |
"net/http" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package api | |
import ( | |
"medium/m/v2/internal/api/apierror" | |
"medium/m/v2/internal/api/apiresponse" | |
"net/http" | |
) | |
type createProduct struct { | |
name string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
// ... | |
) | |
func main() { | |
cfg, err := config.Load(os.Args) | |
if err != nil { | |
panic(err) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
# ALTERAÇÃO 1 <<<<<<<<<<<<<<<<<<<<<<<<< | |
networks: | |
metrics: | |
driver: bridge | |
transactional: | |
driver: bridge | |
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run: | |
timeout: 5m | |
modules-download-mode: readonly | |
linters-settings: | |
lll: | |
line-length: 140 | |
gocritic: | |
enabled-checks: | |
- appendAssign |
NewerOlder