about summary refs log blame commit diff
path: root/src/payload-processor/processor/BUILD.bazel
blob: b01383a6fc6f8bb020150d14cf53cb0d57b96d08 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                               


                       




                       

                                                                                        




                                                 
 





                                 


                                                       

      
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "processor",
    srcs = [
        "db.go",
        "mock_db.go",
        "processor.go",
    ],
    importpath = "github.com/Baitinq/fs-tracer-backend/src/payload-processor/processor",
    visibility = ["//visibility:public"],
    deps = [
        "//vendor/github.com/jmoiron/sqlx",
        "//vendor/github.com/segmentio/kafka-go",
        "//vendor/go.uber.org/mock/gomock",
    ],
)

go_test(
    name = "processor_test",
    srcs = ["processor_test.go"],
    embed = [":processor"],
    deps = [
        "//vendor/github.com/segmentio/kafka-go",
        "//vendor/github.com/stretchr/testify/require",
        "//vendor/go.uber.org/mock/gomock",
    ],
)