Add accounts RPCs

This commit is contained in:
Nikolai Rodionov 2024-03-18 12:17:22 +01:00
parent b82d17e512
commit 449b1b80c1
No known key found for this signature in database
GPG Key ID: 0AA46A90E25592AD
3 changed files with 110 additions and 209 deletions

View File

@ -276,6 +276,44 @@ func (x *AccountFull) GetData() *AccountData {
return nil
}
type AccountWithKubeConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *AccountWithKubeConfig) Reset() {
*x = AccountWithKubeConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_accounts_accounts_v1_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccountWithKubeConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccountWithKubeConfig) ProtoMessage() {}
func (x *AccountWithKubeConfig) ProtoReflect() protoreflect.Message {
mi := &file_accounts_accounts_v1_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccountWithKubeConfig.ProtoReflect.Descriptor instead.
func (*AccountWithKubeConfig) Descriptor() ([]byte, []int) {
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{5}
}
var File_accounts_accounts_v1_proto protoreflect.FileDescriptor
var file_accounts_accounts_v1_proto_rawDesc = []byte{
@ -304,31 +342,23 @@ var file_accounts_accounts_v1_proto_rawDesc = []byte{
0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29,
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44,
0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xa9, 0x02, 0x0a, 0x08, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x38, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x12, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00,
0x12, 0x38, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c,
0x6c, 0x1a, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x06, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x13, 0x2e, 0x61,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49,
0x64, 0x1a, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x04, 0x4c, 0x69,
0x73, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c,
0x6c, 0x22, 0x00, 0x30, 0x01, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x64,
0x68, 0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x2f,
0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70,
0x6c, 0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70,
0x6b, 0x67, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x17, 0x0a, 0x15, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4b, 0x75, 0x62, 0x65, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x32, 0x8f, 0x01, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12,
0x40, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x12, 0x1d, 0x2e, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68,
0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22,
0x00, 0x12, 0x41, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x1d, 0x2e, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69,
0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
0x74, 0x79, 0x22, 0x00, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x64, 0x68,
0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x73,
0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c,
0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6b,
0x67, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
@ -343,32 +373,27 @@ func file_accounts_accounts_v1_proto_rawDescGZIP() []byte {
return file_accounts_accounts_v1_proto_rawDescData
}
var file_accounts_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_accounts_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_accounts_accounts_v1_proto_goTypes = []interface{}{
(*AccountId)(nil), // 0: accounts.AccountId
(*AccountPassword)(nil), // 1: accounts.AccountPassword
(*AccountData)(nil), // 2: accounts.AccountData
(*AccountWithPassword)(nil), // 3: accounts.AccountWithPassword
(*AccountFull)(nil), // 4: accounts.AccountFull
(*emptypb.Empty)(nil), // 5: google.protobuf.Empty
(*AccountId)(nil), // 0: accounts.AccountId
(*AccountPassword)(nil), // 1: accounts.AccountPassword
(*AccountData)(nil), // 2: accounts.AccountData
(*AccountWithPassword)(nil), // 3: accounts.AccountWithPassword
(*AccountFull)(nil), // 4: accounts.AccountFull
(*AccountWithKubeConfig)(nil), // 5: accounts.AccountWithKubeConfig
(*emptypb.Empty)(nil), // 6: google.protobuf.Empty
}
var file_accounts_accounts_v1_proto_depIdxs = []int32{
2, // 0: accounts.AccountWithPassword.data:type_name -> accounts.AccountData
1, // 1: accounts.AccountWithPassword.AccountPassword:type_name -> accounts.AccountPassword
0, // 2: accounts.AccountFull.id:type_name -> accounts.AccountId
2, // 3: accounts.AccountFull.data:type_name -> accounts.AccountData
2, // 4: accounts.Accounts.Create:input_type -> accounts.AccountData
4, // 5: accounts.Accounts.Update:input_type -> accounts.AccountFull
4, // 6: accounts.Accounts.Delete:input_type -> accounts.AccountFull
0, // 7: accounts.Accounts.Get:input_type -> accounts.AccountId
5, // 8: accounts.Accounts.List:input_type -> google.protobuf.Empty
4, // 9: accounts.Accounts.Create:output_type -> accounts.AccountFull
4, // 10: accounts.Accounts.Update:output_type -> accounts.AccountFull
5, // 11: accounts.Accounts.Delete:output_type -> google.protobuf.Empty
4, // 12: accounts.Accounts.Get:output_type -> accounts.AccountFull
4, // 13: accounts.Accounts.List:output_type -> accounts.AccountFull
9, // [9:14] is the sub-list for method output_type
4, // [4:9] is the sub-list for method input_type
3, // 4: accounts.Accounts.SignUp:input_type -> accounts.AccountWithPassword
3, // 5: accounts.Accounts.SignIn:input_type -> accounts.AccountWithPassword
4, // 6: accounts.Accounts.SignUp:output_type -> accounts.AccountFull
6, // 7: accounts.Accounts.SignIn:output_type -> google.protobuf.Empty
6, // [6:8] is the sub-list for method output_type
4, // [4:6] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
@ -440,6 +465,18 @@ func file_accounts_accounts_v1_proto_init() {
return nil
}
}
file_accounts_accounts_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AccountWithKubeConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
@ -447,7 +484,7 @@ func file_accounts_accounts_v1_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_accounts_accounts_v1_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},

View File

@ -19,11 +19,8 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type AccountsClient interface {
Create(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*AccountFull, error)
Update(ctx context.Context, in *AccountFull, opts ...grpc.CallOption) (*AccountFull, error)
Delete(ctx context.Context, in *AccountFull, opts ...grpc.CallOption) (*emptypb.Empty, error)
Get(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*AccountFull, error)
List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Accounts_ListClient, error)
SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFull, error)
SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
type accountsClient struct {
@ -34,83 +31,30 @@ func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient {
return &accountsClient{cc}
}
func (c *accountsClient) Create(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*AccountFull, error) {
func (c *accountsClient) SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFull, error) {
out := new(AccountFull)
err := c.cc.Invoke(ctx, "/accounts.Accounts/Create", in, out, opts...)
err := c.cc.Invoke(ctx, "/accounts.Accounts/SignUp", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountsClient) Update(ctx context.Context, in *AccountFull, opts ...grpc.CallOption) (*AccountFull, error) {
out := new(AccountFull)
err := c.cc.Invoke(ctx, "/accounts.Accounts/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountsClient) Delete(ctx context.Context, in *AccountFull, opts ...grpc.CallOption) (*emptypb.Empty, error) {
func (c *accountsClient) SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/accounts.Accounts/Delete", in, out, opts...)
err := c.cc.Invoke(ctx, "/accounts.Accounts/SignIn", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountsClient) Get(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*AccountFull, error) {
out := new(AccountFull)
err := c.cc.Invoke(ctx, "/accounts.Accounts/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountsClient) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Accounts_ListClient, error) {
stream, err := c.cc.NewStream(ctx, &Accounts_ServiceDesc.Streams[0], "/accounts.Accounts/List", opts...)
if err != nil {
return nil, err
}
x := &accountsListClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Accounts_ListClient interface {
Recv() (*AccountFull, error)
grpc.ClientStream
}
type accountsListClient struct {
grpc.ClientStream
}
func (x *accountsListClient) Recv() (*AccountFull, error) {
m := new(AccountFull)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// AccountsServer is the server API for Accounts service.
// All implementations must embed UnimplementedAccountsServer
// for forward compatibility
type AccountsServer interface {
Create(context.Context, *AccountData) (*AccountFull, error)
Update(context.Context, *AccountFull) (*AccountFull, error)
Delete(context.Context, *AccountFull) (*emptypb.Empty, error)
Get(context.Context, *AccountId) (*AccountFull, error)
List(*emptypb.Empty, Accounts_ListServer) error
SignUp(context.Context, *AccountWithPassword) (*AccountFull, error)
SignIn(context.Context, *AccountWithPassword) (*emptypb.Empty, error)
mustEmbedUnimplementedAccountsServer()
}
@ -118,20 +62,11 @@ type AccountsServer interface {
type UnimplementedAccountsServer struct {
}
func (UnimplementedAccountsServer) Create(context.Context, *AccountData) (*AccountFull, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
func (UnimplementedAccountsServer) SignUp(context.Context, *AccountWithPassword) (*AccountFull, error) {
return nil, status.Errorf(codes.Unimplemented, "method SignUp not implemented")
}
func (UnimplementedAccountsServer) Update(context.Context, *AccountFull) (*AccountFull, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (UnimplementedAccountsServer) Delete(context.Context, *AccountFull) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (UnimplementedAccountsServer) Get(context.Context, *AccountId) (*AccountFull, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (UnimplementedAccountsServer) List(*emptypb.Empty, Accounts_ListServer) error {
return status.Errorf(codes.Unimplemented, "method List not implemented")
func (UnimplementedAccountsServer) SignIn(context.Context, *AccountWithPassword) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
}
func (UnimplementedAccountsServer) mustEmbedUnimplementedAccountsServer() {}
@ -146,99 +81,42 @@ func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer) {
s.RegisterService(&Accounts_ServiceDesc, srv)
}
func _Accounts_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountData)
func _Accounts_SignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountWithPassword)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountsServer).Create(ctx, in)
return srv.(AccountsServer).SignUp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/accounts.Accounts/Create",
FullMethod: "/accounts.Accounts/SignUp",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountsServer).Create(ctx, req.(*AccountData))
return srv.(AccountsServer).SignUp(ctx, req.(*AccountWithPassword))
}
return interceptor(ctx, in, info, handler)
}
func _Accounts_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountFull)
func _Accounts_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountWithPassword)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountsServer).Update(ctx, in)
return srv.(AccountsServer).SignIn(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/accounts.Accounts/Update",
FullMethod: "/accounts.Accounts/SignIn",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountsServer).Update(ctx, req.(*AccountFull))
return srv.(AccountsServer).SignIn(ctx, req.(*AccountWithPassword))
}
return interceptor(ctx, in, info, handler)
}
func _Accounts_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountFull)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountsServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/accounts.Accounts/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountsServer).Delete(ctx, req.(*AccountFull))
}
return interceptor(ctx, in, info, handler)
}
func _Accounts_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountId)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountsServer).Get(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/accounts.Accounts/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountsServer).Get(ctx, req.(*AccountId))
}
return interceptor(ctx, in, info, handler)
}
func _Accounts_List_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(emptypb.Empty)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(AccountsServer).List(m, &accountsListServer{stream})
}
type Accounts_ListServer interface {
Send(*AccountFull) error
grpc.ServerStream
}
type accountsListServer struct {
grpc.ServerStream
}
func (x *accountsListServer) Send(m *AccountFull) error {
return x.ServerStream.SendMsg(m)
}
// Accounts_ServiceDesc is the grpc.ServiceDesc for Accounts service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@ -247,28 +125,14 @@ var Accounts_ServiceDesc = grpc.ServiceDesc{
HandlerType: (*AccountsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _Accounts_Create_Handler,
MethodName: "SignUp",
Handler: _Accounts_SignUp_Handler,
},
{
MethodName: "Update",
Handler: _Accounts_Update_Handler,
},
{
MethodName: "Delete",
Handler: _Accounts_Delete_Handler,
},
{
MethodName: "Get",
Handler: _Accounts_Get_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "List",
Handler: _Accounts_List_Handler,
ServerStreams: true,
MethodName: "SignIn",
Handler: _Accounts_SignIn_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "accounts/accounts_v1.proto",
}

2
proto

@ -1 +1 @@
Subproject commit 9060b308bdffde1aa96a5458c29a6948e79d0948
Subproject commit 21bcac2583ace5b99035ca0a5ce9e22bf42e2f08