mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
Goes from 135 MB binary with 1153 files importing go.temporal.io and 224
importing google.golang.org/grpc to a 10 MB native binary with ZERO of
either.
Deleted:
- tasks/, tasktests/, service/, chasm/, client/, api/, proto/, tools/
- cmd/tools/, components/, docker/
- schema/{cassandra,elasticsearch,mysql,postgresql,sqlite}/
- 40 tainted common/ subdirs + 7 top-level common files
- tests/testutils (no longer referenced after surviving deps drop common)
New cmd/tasksd (~100 lines) boots tasks.Embed (zap.Node) + http.Server.
New pkg/tasks/embed.go registers ZAP handlers for the SDK opcode surface
(0x0060-0x00A5). Workflow handlers return a 501 "not yet implemented"
envelope; native engine lands behind this contract.
Build: go build ./cmd/tasksd → 10 MB
Vet: go vet ./... → clean
Boot: tasksd --zap-port 9999 --http :7243
Probes: /healthz, /v1/tasks/health → 200
UI: /_/tasks/, / → 200 (embedded Vite bundle)
ZAP: _tasks._tcp on :9999 (mDNS disabled; direct connect)
go.mod: tidy. No go.temporal.io. No google.golang.org/grpc.
71 lines
3.4 KiB
Go
71 lines
3.4 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/chasm/lib/tests/proto/v1/service.proto
|
|
|
|
package testspb
|
|
|
|
import (
|
|
reflect "reflect"
|
|
unsafe "unsafe"
|
|
|
|
_ "go.temporal.io/server/api/common/v1"
|
|
_ "go.temporal.io/server/api/routing/v1"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
var File_temporal_server_chasm_lib_tests_proto_v1_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_chasm_lib_tests_proto_v1_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"6temporal/server/chasm/lib/tests/proto/v1/service.proto\x12(temporal.server.chasm.lib.tests.proto.v1\x1a?temporal/server/chasm/lib/tests/proto/v1/request_response.proto\x1a0temporal/server/api/common/v1/api_category.proto\x1a.temporal/server/api/routing/v1/extension.proto2\x93\x01\n" +
|
|
"\vTestService\x12\x83\x01\n" +
|
|
"\x04Test\x125.temporal.server.chasm.lib.tests.proto.v1.TestRequest\x1a6.temporal.server.chasm.lib.tests.proto.v1.TestResponse\"\f\x8a\xb5\x18\x02\b\x01\xd2\xc3\x18\x02\b\x01B;Z9go.temporal.io/server/chasm/lib/tests/gen/testspb;testspbb\x06proto3"
|
|
|
|
var file_temporal_server_chasm_lib_tests_proto_v1_service_proto_goTypes = []any{
|
|
(*TestRequest)(nil), // 0: temporal.server.chasm.lib.tests.proto.v1.TestRequest
|
|
(*TestResponse)(nil), // 1: temporal.server.chasm.lib.tests.proto.v1.TestResponse
|
|
}
|
|
var file_temporal_server_chasm_lib_tests_proto_v1_service_proto_depIdxs = []int32{
|
|
0, // 0: temporal.server.chasm.lib.tests.proto.v1.TestService.Test:input_type -> temporal.server.chasm.lib.tests.proto.v1.TestRequest
|
|
1, // 1: temporal.server.chasm.lib.tests.proto.v1.TestService.Test:output_type -> temporal.server.chasm.lib.tests.proto.v1.TestResponse
|
|
1, // [1:2] is the sub-list for method output_type
|
|
0, // [0:1] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_chasm_lib_tests_proto_v1_service_proto_init() }
|
|
func file_temporal_server_chasm_lib_tests_proto_v1_service_proto_init() {
|
|
if File_temporal_server_chasm_lib_tests_proto_v1_service_proto != nil {
|
|
return
|
|
}
|
|
file_temporal_server_chasm_lib_tests_proto_v1_request_response_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_chasm_lib_tests_proto_v1_service_proto_rawDesc), len(file_temporal_server_chasm_lib_tests_proto_v1_service_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 0,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_temporal_server_chasm_lib_tests_proto_v1_service_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_chasm_lib_tests_proto_v1_service_proto_depIdxs,
|
|
}.Build()
|
|
File_temporal_server_chasm_lib_tests_proto_v1_service_proto = out.File
|
|
file_temporal_server_chasm_lib_tests_proto_v1_service_proto_goTypes = nil
|
|
file_temporal_server_chasm_lib_tests_proto_v1_service_proto_depIdxs = nil
|
|
}
|