2021-11-18 22:24:20 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-11-20 19:12:47 +00:00
|
|
|
{ depot, ... }@args:
|
2021-11-20 23:46:53 +00:00
|
|
|
depot.third_party.buildGo.grpc {
|
2021-11-18 22:24:20 +00:00
|
|
|
name = "webapi";
|
2024-11-16 15:30:41 +00:00
|
|
|
path = "git.lukegb.com/lukegb/depot/go/trains/webapi";
|
2021-11-20 23:46:53 +00:00
|
|
|
goPackage = "webapi";
|
|
|
|
protos = [ ./types.proto ./webapi.proto ];
|
|
|
|
withGrpc = true;
|
2021-11-20 19:06:43 +00:00
|
|
|
extraDeps = with depot.third_party; [
|
|
|
|
gopkgs."google.golang.org".protobuf.types.known.timestamppb
|
|
|
|
gopkgs."github.com".jackc.pgtype
|
|
|
|
];
|
2021-11-20 23:46:53 +00:00
|
|
|
extraSrcs = [ ./utils.go ];
|
|
|
|
} // {
|
2021-11-20 19:12:47 +00:00
|
|
|
summarize = import ./summarize args;
|
|
|
|
}
|