gateway

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package gateway implements an HTTP server that forwards JSON requests to an upstream SpiceDB gRPC server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler added in v1.2.0

func NewHandler(ctx context.Context, upstreamAddr, upstreamTLSCertPath string) (http.Handler, error)

NewHandler creates an REST gateway HTTP Handler with the provided upstream configuration.

func OtelAnnotator

func OtelAnnotator(ctx context.Context, r *http.Request) metadata.MD

OtelAnnotator propagates the OpenTelemetry tracing context to the outgoing gRPC metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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