Skip to main content

cmd/taisce/managerole.go

cmd/taisce · 94 lines · 2 declarations · source

Declarations

func managementHandler

func managementHandler(server *api.ManagementServer, ready http.Handler) http.Handler

managementHandler is the manage role's handler: the surface, and the portal only when TAISCE_PORTAL is "on". Off, the portal's routes do not exist, which is the only way a browser surface is not exposed by default.

source

func runManage

func runManage(ctx context.Context, log *slog.Logger) error

runManage serves the management surface and nothing else: no memory route, no formation. It holds the administrative connection, because creating a project is DDL, and that is the reason it is a process of its own rather than a route on the memory server.

source