-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: get config struct as a parameter (#48)
* feat: get config struct as a parameter --------- Co-authored-by: mhmtszr <[email protected]>
- Loading branch information
1 parent
ed1411f
commit f57be82
Showing
13 changed files
with
981 additions
and
49 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM golang:1.19-alpine as builder | ||
|
||
WORKDIR /project | ||
|
||
COPY go.mod go.sum ./ | ||
COPY main.go ./ | ||
COPY config.yml ./config.yml | ||
|
||
RUN go mod download | ||
RUN CGO_ENABLED=0 go build -a -o example main.go | ||
|
||
FROM alpine:3.17.0 | ||
|
||
WORKDIR /app | ||
|
||
RUN apk --no-cache add ca-certificates | ||
|
||
USER nobody | ||
COPY --from=builder --chown=nobody:nobody /project/example . | ||
COPY --from=builder --chown=nobody:nobody /project/config.yml ./config.yml | ||
|
||
ENTRYPOINT ["./example"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
module example | ||
|
||
go 1.19 | ||
|
||
replace github.com/Trendyol/go-kafka-connect-couchbase => ./../.. | ||
|
||
require github.com/Trendyol/go-kafka-connect-couchbase v0.0.0 | ||
|
||
require ( | ||
github.com/Trendyol/go-dcp-client v0.0.58 // indirect | ||
github.com/VividCortex/ewma v1.2.0 // indirect | ||
github.com/andybalholm/brotli v1.0.5 // indirect | ||
github.com/ansrivas/fiberprometheus/v2 v2.6.0 // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.2.0 // indirect | ||
github.com/couchbase/gocbcore/v10 v10.2.3 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/emicklei/go-restful/v3 v3.10.1 // indirect | ||
github.com/go-logr/logr v1.2.3 // indirect | ||
github.com/go-openapi/jsonpointer v0.19.6 // indirect | ||
github.com/go-openapi/jsonreference v0.20.2 // indirect | ||
github.com/go-openapi/swag v0.22.3 // indirect | ||
github.com/gofiber/adaptor/v2 v2.1.32 // indirect | ||
github.com/gofiber/fiber/v2 v2.45.0 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/protobuf v1.5.3 // indirect | ||
github.com/golang/snappy v0.0.4 // indirect | ||
github.com/google/gnostic v0.6.9 // indirect | ||
github.com/google/go-cmp v0.5.9 // indirect | ||
github.com/google/gofuzz v1.2.0 // indirect | ||
github.com/google/uuid v1.3.0 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/klauspost/compress v1.16.3 // indirect | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.18 // indirect | ||
github.com/mattn/go-runewidth v0.0.14 // indirect | ||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
github.com/philhofer/fwd v1.1.2 // indirect | ||
github.com/pierrec/lz4/v4 v4.1.17 // indirect | ||
github.com/prometheus/client_golang v1.15.1 // indirect | ||
github.com/prometheus/client_model v0.3.0 // indirect | ||
github.com/prometheus/common v0.42.0 // indirect | ||
github.com/prometheus/procfs v0.9.0 // indirect | ||
github.com/rivo/uniseg v0.4.4 // indirect | ||
github.com/savsgio/dictpool v0.0.0-20221023140959-7bf2e61cea94 // indirect | ||
github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee // indirect | ||
github.com/segmentio/kafka-go v0.4.39 // indirect | ||
github.com/tinylib/msgp v1.1.8 // indirect | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
github.com/valyala/fasthttp v1.47.0 // indirect | ||
github.com/valyala/tcplisten v1.0.0 // indirect | ||
github.com/xdg/scram v1.0.5 // indirect | ||
github.com/xdg/stringprep v1.0.3 // indirect | ||
golang.org/x/crypto v0.7.0 // indirect | ||
golang.org/x/net v0.8.0 // indirect | ||
golang.org/x/oauth2 v0.6.0 // indirect | ||
golang.org/x/sync v0.2.0 // indirect | ||
golang.org/x/sys v0.8.0 // indirect | ||
golang.org/x/term v0.6.0 // indirect | ||
golang.org/x/text v0.8.0 // indirect | ||
golang.org/x/time v0.3.0 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
google.golang.org/protobuf v1.30.0 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
k8s.io/api v0.27.1 // indirect | ||
k8s.io/apimachinery v0.27.1 // indirect | ||
k8s.io/client-go v0.27.1 // indirect | ||
k8s.io/klog/v2 v2.90.1 // indirect | ||
k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a // indirect | ||
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect | ||
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect | ||
sigs.k8s.io/yaml v1.3.0 // indirect | ||
) |
Oops, something went wrong.