murmur-codegen-typed

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

murmur-codegen-typed generates a typed Connect-RPC service from a pipeline-spec YAML.

Usage:

murmur-codegen-typed --in pipeline-spec.yaml --out gen/

Writes:

gen/<service>.proto         — proto messages + service definition
gen/<service>_server.go     — Go server stub using pkg/query/typed

The user runs buf (or protoc + connect-go plugin) on the .proto to generate the typed message + connect-handler types, then compiles the _server.go alongside their app.

What this tool is NOT: it does not run protoc/buf for you. The generated .proto file is the contract; the user owns the proto pipeline. That keeps the dependency footprint zero and lets the user pin their preferred protoc plugin versions.

Pipeline kinds supported: sum, hll, topk, bloom. Method kinds supported: get_all_time, get_window, get_window_many, get_many, get_range. get_many and get_range are sum-only (the typed clients in pkg/query/typed only expose those methods on SumClient).

spec.go defines the YAML pipeline-spec schema.

One YAML file per service. The codegen emits one .proto and one _server.go file per service. Multiple methods per service share the same underlying Murmur pipeline — different RPCs are different query shapes (GetAllTime / GetWindow / GetWindowMany) over the same monoid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL