add sql wrapper tests, regen

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2023-01-07 19:16:48 +03:00
parent de763a4f92
commit 7c71e65d02
50 changed files with 1635 additions and 273 deletions

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-go-drpc. DO NOT EDIT.
// protoc-gen-go-drpc version: (devel)
// protoc-gen-go-drpc version: v0.0.32
// source: test.proto
package pb
@@ -7,7 +7,6 @@ package pb
import (
context "context"
errors "errors"
proto1 "go.unistack.org/micro-tests/server/combo/proto"
proto "google.golang.org/protobuf/proto"
drpc "storj.io/drpc"
drpcerr "storj.io/drpc/drpcerr"
@@ -30,7 +29,7 @@ func (drpcEncoding_File_test_proto) Unmarshal(buf []byte, msg drpc.Message) erro
type DRPCTestClient interface {
DRPCConn() drpc.Conn
Call(ctx context.Context, in *proto1.CallReq) (*proto1.CallRsp, error)
Call(ctx context.Context, in *CallReq) (*CallRsp, error)
}
type drpcTestClient struct {
@@ -43,8 +42,8 @@ func NewDRPCTestClient(cc drpc.Conn) DRPCTestClient {
func (c *drpcTestClient) DRPCConn() drpc.Conn { return c.cc }
func (c *drpcTestClient) Call(ctx context.Context, in *proto1.CallReq) (*proto1.CallRsp, error) {
out := new(proto1.CallRsp)
func (c *drpcTestClient) Call(ctx context.Context, in *CallReq) (*CallRsp, error) {
out := new(CallRsp)
err := c.cc.Invoke(ctx, "/test.v1.Test/Call", drpcEncoding_File_test_proto{}, in, out)
if err != nil {
return nil, err
@@ -53,12 +52,12 @@ func (c *drpcTestClient) Call(ctx context.Context, in *proto1.CallReq) (*proto1.
}
type DRPCTestServer interface {
Call(context.Context, *proto1.CallReq) (*proto1.CallRsp, error)
Call(context.Context, *CallReq) (*CallRsp, error)
}
type DRPCTestUnimplementedServer struct{}
func (s *DRPCTestUnimplementedServer) Call(context.Context, *proto1.CallReq) (*proto1.CallRsp, error) {
func (s *DRPCTestUnimplementedServer) Call(context.Context, *CallReq) (*CallRsp, error) {
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
}
@@ -74,7 +73,7 @@ func (DRPCTestDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver,
return srv.(DRPCTestServer).
Call(
ctx,
in1.(*proto1.CallReq),
in1.(*CallReq),
)
}, DRPCTestServer.Call, true
default:
@@ -88,14 +87,14 @@ func DRPCRegisterTest(mux drpc.Mux, impl DRPCTestServer) error {
type DRPCTest_CallStream interface {
drpc.Stream
SendAndClose(*proto1.CallRsp) error
SendAndClose(*CallRsp) error
}
type drpcTest_CallStream struct {
drpc.Stream
}
func (x *drpcTest_CallStream) SendAndClose(m *proto1.CallRsp) error {
func (x *drpcTest_CallStream) SendAndClose(m *CallRsp) error {
if err := x.MsgSend(m, drpcEncoding_File_test_proto{}); err != nil {
return err
}