Skip to content

Commit

Permalink
feat: module context over gRPC (protobuf changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Apr 19, 2024
1 parent 9e0d9c8 commit 7fc41f2
Show file tree
Hide file tree
Showing 8 changed files with 1,645 additions and 753 deletions.
5 changes: 5 additions & 0 deletions backend/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,11 @@ nextModule:
return connect.NewResponse(&ftlv1.PingResponse{NotReady: &msg}), nil
}

// GetModuleContext retrieves config, secrets and DSNs for a module.
func (s *Service) GetModuleContext(ctx context.Context, req *connect.Request[ftlv1.ModuleContextRequest]) (*connect.Response[ftlv1.ModuleContextResponse], error) {
return nil, fmt.Errorf("not implemented")
}

func (s *Service) Call(ctx context.Context, req *connect.Request[ftlv1.CallRequest]) (*connect.Response[ftlv1.CallResponse], error) {
return s.callWithRequest(ctx, req, optional.None[model.RequestKey](), "")
}
Expand Down
Loading

0 comments on commit 7fc41f2

Please sign in to comment.