Files
tasks/api/routing/v1/extension.pb.go
zeekay 40351cce6f rip: delete temporal fork — native ZAP-only tasksd
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.
2026-04-26 14:06:21 -07:00

169 lines
6.4 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// plugins:
// protoc-gen-go
// protoc
// source: temporal/server/api/routing/v1/extension.proto
package routing
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
)
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)
)
type RoutingOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Requests will be routed to a random shard.
Random bool `protobuf:"varint,1,opt,name=random,proto3" json:"random,omitempty"`
// Requests may specify how to obtain the namespace ID. Defaults to the "namespace_id" field.
NamespaceId string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
// Request will be routed by resolving the namespace ID and business ID to a given shard.
BusinessId string `protobuf:"bytes,3,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoutingOptions) Reset() {
*x = RoutingOptions{}
mi := &file_temporal_server_api_routing_v1_extension_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoutingOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoutingOptions) ProtoMessage() {}
func (x *RoutingOptions) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_routing_v1_extension_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RoutingOptions.ProtoReflect.Descriptor instead.
func (*RoutingOptions) Descriptor() ([]byte, []int) {
return file_temporal_server_api_routing_v1_extension_proto_rawDescGZIP(), []int{0}
}
func (x *RoutingOptions) GetRandom() bool {
if x != nil {
return x.Random
}
return false
}
func (x *RoutingOptions) GetNamespaceId() string {
if x != nil {
return x.NamespaceId
}
return ""
}
func (x *RoutingOptions) GetBusinessId() string {
if x != nil {
return x.BusinessId
}
return ""
}
var file_temporal_server_api_routing_v1_extension_proto_extTypes = []protoimpl.ExtensionInfo{
{
ExtendedType: (*descriptorpb.MethodOptions)(nil),
ExtensionType: (*RoutingOptions)(nil),
Field: 50234,
Name: "temporal.server.api.routing.v1.routing",
Tag: "bytes,50234,opt,name=routing",
Filename: "temporal/server/api/routing/v1/extension.proto",
},
}
// Extension fields to descriptorpb.MethodOptions.
var (
// optional temporal.server.api.routing.v1.RoutingOptions routing = 50234;
E_Routing = &file_temporal_server_api_routing_v1_extension_proto_extTypes[0]
)
var File_temporal_server_api_routing_v1_extension_proto protoreflect.FileDescriptor
const file_temporal_server_api_routing_v1_extension_proto_rawDesc = "" +
"\n" +
".temporal/server/api/routing/v1/extension.proto\x12\x1etemporal.server.api.routing.v1\x1a google/protobuf/descriptor.proto\"l\n" +
"\x0eRoutingOptions\x12\x16\n" +
"\x06random\x18\x01 \x01(\bR\x06random\x12!\n" +
"\fnamespace_id\x18\x02 \x01(\tR\vnamespaceId\x12\x1f\n" +
"\vbusiness_id\x18\x03 \x01(\tR\n" +
"businessId:m\n" +
"\arouting\x12\x1e.google.protobuf.MethodOptions\x18\xba\x88\x03 \x01(\v2..temporal.server.api.routing.v1.RoutingOptionsR\arouting\x88\x01\x01B.Z,go.temporal.io/server/api/routing/v1;routingb\x06proto3"
var (
file_temporal_server_api_routing_v1_extension_proto_rawDescOnce sync.Once
file_temporal_server_api_routing_v1_extension_proto_rawDescData []byte
)
func file_temporal_server_api_routing_v1_extension_proto_rawDescGZIP() []byte {
file_temporal_server_api_routing_v1_extension_proto_rawDescOnce.Do(func() {
file_temporal_server_api_routing_v1_extension_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_routing_v1_extension_proto_rawDesc), len(file_temporal_server_api_routing_v1_extension_proto_rawDesc)))
})
return file_temporal_server_api_routing_v1_extension_proto_rawDescData
}
var file_temporal_server_api_routing_v1_extension_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_temporal_server_api_routing_v1_extension_proto_goTypes = []any{
(*RoutingOptions)(nil), // 0: temporal.server.api.routing.v1.RoutingOptions
(*descriptorpb.MethodOptions)(nil), // 1: google.protobuf.MethodOptions
}
var file_temporal_server_api_routing_v1_extension_proto_depIdxs = []int32{
1, // 0: temporal.server.api.routing.v1.routing:extendee -> google.protobuf.MethodOptions
0, // 1: temporal.server.api.routing.v1.routing:type_name -> temporal.server.api.routing.v1.RoutingOptions
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
1, // [1:2] is the sub-list for extension type_name
0, // [0:1] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_temporal_server_api_routing_v1_extension_proto_init() }
func file_temporal_server_api_routing_v1_extension_proto_init() {
if File_temporal_server_api_routing_v1_extension_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_api_routing_v1_extension_proto_rawDesc), len(file_temporal_server_api_routing_v1_extension_proto_rawDesc)),
NumEnums: 0,
NumMessages: 1,
NumExtensions: 1,
NumServices: 0,
},
GoTypes: file_temporal_server_api_routing_v1_extension_proto_goTypes,
DependencyIndexes: file_temporal_server_api_routing_v1_extension_proto_depIdxs,
MessageInfos: file_temporal_server_api_routing_v1_extension_proto_msgTypes,
ExtensionInfos: file_temporal_server_api_routing_v1_extension_proto_extTypes,
}.Build()
File_temporal_server_api_routing_v1_extension_proto = out.File
file_temporal_server_api_routing_v1_extension_proto_goTypes = nil
file_temporal_server_api_routing_v1_extension_proto_depIdxs = nil
}