Compare commits

..

No commits in common. "d4ae5011b32d3c2301af493739cf42aa9de0c52e" and "c32f33649941bacf47651d35644d0c2efba94426" have entirely different histories.

5 changed files with 11 additions and 8 deletions

View file

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

View file

@ -2,11 +2,11 @@ version: v1
managed: managed:
enabled: true enabled: true
go_package_prefix: 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: plugins:
- name: go - name: go
out: pkg/go/gen out: /
opt: paths=source_relative opt: paths=source_relative
- name: go-grpc - name: go-grpc
out: pkg/go/gen out: /
opt: paths=source_relative opt: paths=source_relative

View file

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

View file

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

View file

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