Compare commits

...

2 commits

Author SHA1 Message Date
Vyacheslav1557
d4ae5011b3 Merge remote-tracking branch 'origin/develop' into develop 2024-08-16 22:09:16 +05:00
Vyacheslav1557
ac68c46f5e feat: package name&dir 2024-08-16 22:09:03 +05:00
5 changed files with 8 additions and 11 deletions

View file

@ -1,8 +1,5 @@
GEN_DIR=pkg/go/gen
gen:
@buf generate proto/tester -o ${GEN_DIR}/tester
@buf generate proto/session -o ${GEN_DIR}/session
@buf generate
dev:
@make gen
@go run main.go

View file

@ -2,11 +2,11 @@ version: v1
managed:
enabled: true
go_package_prefix:
default: git.sch9.ru/new_gate/ms-tester/pkg/go/gen/
default: git.sch9.ru/new_gate/ms-tester/pkg/go/gen
plugins:
- name: go
out: /
out: pkg/go/gen
opt: paths=source_relative
- name: go-grpc
out: /
out: pkg/go/gen
opt: paths=source_relative

View file

@ -2,7 +2,7 @@ package transport
import (
"context"
sessionv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/session/v1"
sessionv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/proto/session/v1"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

View file

@ -3,8 +3,8 @@ package transport
import (
"context"
"git.sch9.ru/new_gate/ms-tester/internal/models"
sessionv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/session/v1"
testerv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/tester/v1"
sessionv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/proto/session/v1"
testerv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/proto/tester/v1"
"go.uber.org/zap"
"google.golang.org/protobuf/types/known/timestamppb"
"time"

View file

@ -4,7 +4,7 @@ import (
"context"
"git.sch9.ru/new_gate/ms-tester/internal/lib"
"git.sch9.ru/new_gate/ms-tester/internal/models"
testerv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/tester/v1"
testerv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/proto/tester/v1"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"