2022-12-01 12:43:06 -08:00
|
|
|
load("//tools:defs.bzl", "go_library")
|
|
|
|
|
load("//tools/go_generics:defs.bzl", "go_template")
|
2018-04-27 10:37:02 -07:00
|
|
|
|
2023-03-02 10:46:34 -08:00
|
|
|
package(
|
|
|
|
|
default_applicable_licenses = ["//:license"],
|
|
|
|
|
licenses = ["notice"],
|
|
|
|
|
)
|
2019-10-16 16:27:55 -07:00
|
|
|
|
2022-12-01 12:43:06 -08:00
|
|
|
go_template(
|
|
|
|
|
name = "refs_template",
|
|
|
|
|
srcs = [
|
|
|
|
|
"refs_template.go",
|
|
|
|
|
],
|
|
|
|
|
opt_consts = [
|
|
|
|
|
"enableLogging",
|
|
|
|
|
],
|
|
|
|
|
types = [
|
|
|
|
|
"T",
|
|
|
|
|
],
|
|
|
|
|
visibility = ["//:sandbox"],
|
|
|
|
|
deps = [
|
|
|
|
|
"//pkg/log",
|
|
|
|
|
"//pkg/refs",
|
|
|
|
|
],
|
2018-09-04 09:18:00 -07:00
|
|
|
)
|
|
|
|
|
|
2018-04-27 10:37:02 -07:00
|
|
|
go_library(
|
|
|
|
|
name = "refs",
|
|
|
|
|
srcs = [
|
|
|
|
|
"refcounter.go",
|
2022-12-01 12:43:06 -08:00
|
|
|
"refs_map.go",
|
2018-04-27 10:37:02 -07:00
|
|
|
],
|
|
|
|
|
visibility = ["//:sandbox"],
|
2019-06-28 20:06:33 -07:00
|
|
|
deps = [
|
2022-04-08 16:04:01 -07:00
|
|
|
"//pkg/atomicbitops",
|
2020-08-03 13:33:47 -07:00
|
|
|
"//pkg/context",
|
2019-06-28 20:06:33 -07:00
|
|
|
"//pkg/log",
|
2020-01-09 22:00:42 -08:00
|
|
|
"//pkg/sync",
|
2019-06-28 20:06:33 -07:00
|
|
|
],
|
2018-04-27 10:37:02 -07:00
|
|
|
)
|