Skip to content

About

Protocol definitions shared by the Proxelo control plane and proxy

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

proxelo-api

Protocol Buffers definitions shared by the Proxelo control plane (proxelo) and the proxy (proxelo-proxy).

The two processes exchange nothing but the messages defined here. The control plane compiles user configuration into a Snapshot and pushes it over the DistributionService stream. The proxy loads it, swaps it in atomically and acknowledges the revision.

Layout

Path Contents
proto/proxelo/snapshot/v1 Snapshot: the resolved configuration a proxy serves
proto/proxelo/distrib/v1 DistributionService: snapshot push, acknowledgements, proxy hello
gen/go Generated Go code (committed)
rust Rust crate, generated at build time

Usage

Go:

go get github.com/null-variable/proxelo-api@latest
import snapshotv1 "github.com/null-variable/proxelo-api/gen/go/proxelo/snapshot/v1"

Rust (Cargo.toml):

[dependencies]
proxelo-api = { git = "https://github.com/null-variable/proxelo-api", tag = "v0.0.1" }
use proxelo_api::snapshot::v1::Snapshot;

Development

Requires buf and a Rust toolchain.

buf lint
buf generate          # regenerates gen/go
cd rust && cargo build

Compatibility

  • Releases follow semantic versioning. Tags are shared by the Go module and the Rust crate.
  • Adding fields or messages is a minor release. Removing or renumbering fields is not allowed within a package; incompatible changes go into a new package version (v2).
  • CI runs buf breaking against the default branch on every pull request.

License

Licensed under the Apache License, Version 2.0. See NOTICE.

About

Protocol definitions shared by the Proxelo control plane and proxy

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages