Documentation
¶
Overview ¶
Package projects is the typed client for the "projects" app's internal ops.
Every call here is a ZAP call BY NAME over the peer's unix socket — no URL, no env var, no HTTP round trip, and no way to reach the public edge by accident. That last one is not a style preference: projects's own callers used to reach it through CLOUD_COMMERCE_HTTP_URL, which defaulted to the api.hanzo.ai edge — the SAME binary — so the forwarder re-entered itself and the billing gate died of it. A call by name cannot express that mistake.
It depends on the CONTRACT (package plane) and never on projects's implementation, so importing it costs a caller nothing but the types it is already sending.
Index ¶
- Constants
- Variables
- func ProjectsResolveKey(ctx context.Context, in *plane.KeyIn) (*plane.Attribution, error)
- func SitesLive(ctx context.Context, in *plane.LiveSitesIn) (*plane.LiveSitesOut, error)
- func SitesResolve(ctx context.Context, in *plane.SiteIn) (*plane.Site, error)
- func SitesResolveOrg(ctx context.Context, in *plane.SiteIn) (*plane.Site, error)
Constants ¶
const App = "projects"
App is the peer's name, which is also the socket it answers on. It is the ONE place this package spells it.
Variables ¶
var Ops = []string{ plane.ProjectsResolveKey, plane.SitesLive, plane.SitesResolve, plane.SitesResolveOrg, }
Ops is every op this peer answers, in the spelling the wire uses.
It exists so a test can hold this generated surface against the LIVE plane registry and fail when they disagree — which is what lets this be generated from source without the document drifting away from the program. See plane_registry_test.go.
Functions ¶
func ProjectsResolveKey ¶
ProjectsResolveKey resolve a publishable ingest key to the project that minted it.
Calls plane.ProjectsResolveKey on projects over the peer plane.
func SitesLive ¶ added in v1.801.460
func SitesLive(ctx context.Context, in *plane.LiveSitesIn) (*plane.LiveSitesOut, error)
SitesLive every serving site, across orgs.
Calls plane.SitesLive on projects over the peer plane.
func SitesResolve ¶
SitesResolve resolve a published site by host label.
Calls plane.SitesResolve on projects over the peer plane.
Types ¶
This section is empty.