PROTOBUS: Streaming, State, Service Auto-Config (#3253)
* round 1 * round 2 - searchFiles integration attempt * undo streaming search experiments * Start state.proto and related migrations * state subscription * get the main state flow using it * correct stream ending early, debug statements * clean up build-proto service config * autogenerate index.tses * auto-generate grpc-client service exports * rename web-content -> web to make codegen work * cleaned up streaming flow & cancels * v3.14.0 Release Notes v3.14.0 Release Notes * prettier * uhh prettier ? * rename GrpcRequestRegistry file * auto-generate directory for new services in the config * generate template proto if it doesn't exist and provide instructions * format fix * add models service back to new system --------- Co-authored-by: Andrei Edell <andrei@nugbase.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
32 files changed
+1406
-283
No files matched your search
@@ -1,15 +1,22 @@
|
||||
import { createServiceRegistry, ServiceMethodHandler } from "../grpc-service"
|
||||
// AUTO-GENERATED FILE - DO NOT MODIFY DIRECTLY
|
||||
// Generated by proto/build-proto.js
|
||||
|
||||
import { createServiceRegistry, ServiceMethodHandler, StreamingMethodHandler } from "../grpc-service"
|
||||
import { StreamingResponseHandler } from "../grpc-handler"
|
||||
import { registerAllMethods } from "./methods"
|
||||
|
||||
// Create task service registry
|
||||
const taskService = createServiceRegistry("task")
|
||||
|
||||
// Export the method handler type and registration function
|
||||
// Export the method handler types and registration function
|
||||
export type TaskMethodHandler = ServiceMethodHandler
|
||||
export type TaskStreamingMethodHandler = StreamingMethodHandler
|
||||
export const registerMethod = taskService.registerMethod
|
||||
|
||||
// Export the request handler
|
||||
// Export the request handlers
|
||||
export const handleTaskServiceRequest = taskService.handleRequest
|
||||
export const handleTaskServiceStreamingRequest = taskService.handleStreamingRequest
|
||||
export const isStreamingMethod = taskService.isStreamingMethod
|
||||
|
||||
// Register all task methods
|
||||
registerAllMethods()
|
||||
Reference in new issue
Block a user