embedded

command
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Command embedded shows how a host program mounts identity into its own Go server instead of running the dedicated container. It builds one identityserver.Server and exposes it on both surfaces:

  • a native *grpc.Server, alongside the host's own gRPC services, and
  • an http.ServeMux, alongside the host's own HTTP routes.

Run it with:

go run ./examples/embedded

It uses the in-memory repository so it boots with no external dependencies. A real deployment sets GATEWAY_REPO_DRIVER=entdb (and the rest of the GATEWAY_* config) and uses identityserver.OptionsFromEnv.

Jump to

Keyboard shortcuts

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