// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package accounts import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // AccountsClient is the client API for Accounts service. // // 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 { SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithKubeConfig, error) SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithKubeConfig, error) } type accountsClient struct { cc grpc.ClientConnInterface } func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient { return &accountsClient{cc} } func (c *accountsClient) SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithKubeConfig, error) { out := new(AccountFullWithKubeConfig) err := c.cc.Invoke(ctx, "/accounts.Accounts/SignUp", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountsClient) SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithKubeConfig, error) { out := new(AccountFullWithKubeConfig) err := c.cc.Invoke(ctx, "/accounts.Accounts/SignIn", in, out, opts...) if err != nil { return nil, err } return out, nil } // AccountsServer is the server API for Accounts service. // All implementations must embed UnimplementedAccountsServer // for forward compatibility type AccountsServer interface { SignUp(context.Context, *AccountWithPassword) (*AccountFullWithKubeConfig, error) SignIn(context.Context, *AccountWithPassword) (*AccountFullWithKubeConfig, error) mustEmbedUnimplementedAccountsServer() } // UnimplementedAccountsServer must be embedded to have forward compatible implementations. type UnimplementedAccountsServer struct { } func (UnimplementedAccountsServer) SignUp(context.Context, *AccountWithPassword) (*AccountFullWithKubeConfig, error) { return nil, status.Errorf(codes.Unimplemented, "method SignUp not implemented") } func (UnimplementedAccountsServer) SignIn(context.Context, *AccountWithPassword) (*AccountFullWithKubeConfig, error) { return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented") } func (UnimplementedAccountsServer) mustEmbedUnimplementedAccountsServer() {} // UnsafeAccountsServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AccountsServer will // result in compilation errors. type UnsafeAccountsServer interface { mustEmbedUnimplementedAccountsServer() } func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer) { s.RegisterService(&Accounts_ServiceDesc, srv) } 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).SignUp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/accounts.Accounts/SignUp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountsServer).SignUp(ctx, req.(*AccountWithPassword)) } return interceptor(ctx, in, info, handler) } 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).SignIn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/accounts.Accounts/SignIn", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountsServer).SignIn(ctx, req.(*AccountWithPassword)) } return interceptor(ctx, in, info, handler) } // 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) var Accounts_ServiceDesc = grpc.ServiceDesc{ ServiceName: "accounts.Accounts", HandlerType: (*AccountsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignUp", Handler: _Accounts_SignUp_Handler, }, { MethodName: "SignIn", Handler: _Accounts_SignIn_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "accounts/accounts_v1.proto", }