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 NewHTTPServer ¶
NewHTTPServer initializes a new HTTP server with the provided configuration.
Types ¶
type Config ¶
type Config struct {
// Addr is the address on which the HTTP server will be configured to listen.
Addr string
// UpstreamAddr is the address of the gRPC server to which requests will be
// forwarded.
UpstreamAddr string
// UpstreamTLSDisabled toggles whether or not the upstream connection will be
// secure.
UpstreamTLSDisabled bool
// UpstreamTLSCertPath is the filesystem location of the certificate used to
// secure the upstream connection.
UpstreamTLSCertPath string
}
Config represents the require configuration for initializing a REST gateway.
Click to show internal directories.
Click to hide internal directories.