summaryrefslogtreecommitdiff
path: root/internal/pb/query_user.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pb/query_user.go')
-rw-r--r--internal/pb/query_user.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/pb/query_user.go b/internal/pb/query_user.go
new file mode 100644
index 0000000..356a9c7
--- /dev/null
+++ b/internal/pb/query_user.go
@@ -0,0 +1,19 @@
+package pb
+
+import (
+ "context"
+
+ "github.com/ChausseBenjamin/rafta/internal/util"
+ m "github.com/ChausseBenjamin/rafta/pkg/model"
+ "google.golang.org/protobuf/types/known/emptypb"
+)
+
+func (s *UserServer) GetTask(ctx context.Context, id *m.UUID) (*m.Task, error) {
+ ctx = context.WithValue(ctx, util.ProtoMethodKey, "GetTask")
+ return nil, nil
+}
+
+func (s *UserServer) GetUserInfo(ctx context.Context, _ *emptypb.Empty) (*m.User, error) {
+ ctx = context.WithValue(ctx, util.ProtoMethodKey, "GetUserInfo")
+ return nil, nil
+}