MCPcopy Create free account
hub / github.com/cli/cli / PathPrefix

Method PathPrefix

internal/barista/observability/telemetry.twirp.go:523–525  ·  view source on GitHub ↗

PathPrefix returns the base service path, in the form: "/ / . /" that is everything in a Twirp route except for the . This can be used for routing, for example to identify the requests that are targeted to this service in a mux.

()

Source from the content-addressed store, hash-verified

521// that is everything in a Twirp route except for the <Method>. This can be used for routing,
522// for example to identify the requests that are targeted to this service in a mux.
523func (s *telemetryAPIServer) PathPrefix() string {
524 return baseServicePath(s.pathPrefix, "clientappsfe.observability.v1", "TelemetryAPI")
525}
526
527// =====
528// Utils

Callers

nothing calls this directly

Calls 1

baseServicePathFunction · 0.85

Tested by

no test coverage detected