server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server implements descriptor-locked server-realm plugins for the OpenRealtime management API. It contains no view code and does not depend on the realtime gateway.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPHandler

func HTTPHandler(mounted *pluginruntime.Mounted, export string) (http.Handler, error)

func NewAuthoringProvider

func NewAuthoringProvider(authoring management.Authoring) (pluginruntime.Factory, error)

func NewAuthorizerProvider

func NewAuthorizerProvider(authorizer management.Authorizer) (pluginruntime.Factory, error)

func NewReconciliationProvider

func NewReconciliationProvider(reconciliation management.Reconciliation) (pluginruntime.Factory, error)

func NewSessionInspectionProvider

func NewSessionInspectionProvider(source management.SessionInspection) (pluginruntime.Factory, error)

func NewSourcePublicationProvider

func NewSourcePublicationProvider(
	publication management.SourcePublication,
) (pluginruntime.Factory, error)

func NewSourceReadingProvider

func NewSourceReadingProvider(reading management.SourceReading) (pluginruntime.Factory, error)

func NewStaticCatalogProvider

func NewStaticCatalogProvider(catalog management.StaticCatalog) (pluginruntime.Factory, error)

Types

type AuthoringAPIFactory

type AuthoringAPIFactory struct {
	// contains filtered or unexported fields
}

func NewAuthoringAPIFactory

func NewAuthoringAPIFactory() *AuthoringAPIFactory

func (*AuthoringAPIFactory) Descriptor

func (factory *AuthoringAPIFactory) Descriptor() plugin.Descriptor

func (*AuthoringAPIFactory) Mount

func (*AuthoringAPIFactory) PreMount

type Bundle

type Bundle struct {
	Profile plugin.Profile
	Lock    plugin.Lock
	Plan    plugin.Plan

	Factories map[string]pluginruntime.Factory
}

Bundle is one compiled server-realm management profile. Optional API families are absent—not stubbed—when their provider is not selected.

func NewBundle

func NewBundle(config BundleConfig) (*Bundle, error)

func (*Bundle) Mount

func (bundle *Bundle) Mount(ctx context.Context) (*pluginruntime.Mounted, error)

Mount registers every exact bundled implementation and mounts the compiled profile. The returned realm owns all route registrations.

type BundleConfig

type BundleConfig struct {
	Authorizer        management.Authorizer
	StaticCatalog     management.StaticCatalog
	Sessions          management.SessionInspection
	Authoring         management.Authoring
	SourceReading     management.SourceReading
	SourcePublication management.SourcePublication
	Reconciliation    management.Reconciliation
}

type OperatorAPI

type OperatorAPI struct {
	// contains filtered or unexported fields
}

OperatorAPI is an independently mounted management realm over a caller's existing server handler. It owns no credentials and mints no capabilities; every request is authorized by the provider supplied in OperatorAPIConfig.

func MountOperatorAPI

func MountOperatorAPI(
	ctx context.Context, base http.Handler, config OperatorAPIConfig,
) (*OperatorAPI, error)

MountOperatorAPI mounts the selected operator services and overlays only their versioned management route families. Every other request, including session inspection, falls through unchanged to base.

func (*OperatorAPI) Close

func (api *OperatorAPI) Close(ctx context.Context) error

Close idempotently withdraws only the operator routes and disposes their providers. The base handler and its session management realm remain live.

func (*OperatorAPI) Handler

func (api *OperatorAPI) Handler() http.Handler

Handler returns the composed server handler.

type OperatorAPIConfig

type OperatorAPIConfig struct {
	Authorizer        management.Authorizer
	StaticCatalog     management.StaticCatalog
	Authoring         management.Authoring
	SourceReading     management.SourceReading
	SourcePublication management.SourcePublication
	Reconciliation    management.Reconciliation
}

OperatorAPIConfig selects UI-independent management services that require an operator-owned capability. Session inspection is intentionally absent: its short-lived read capability remains owned by the realtime gateway's separate management realm and can never authorize one of these routes.

type ReconciliationAPIFactory

type ReconciliationAPIFactory struct {
	// contains filtered or unexported fields
}

func NewReconciliationAPIFactory

func NewReconciliationAPIFactory() *ReconciliationAPIFactory

func (*ReconciliationAPIFactory) Descriptor

func (factory *ReconciliationAPIFactory) Descriptor() plugin.Descriptor

func (*ReconciliationAPIFactory) Mount

func (*ReconciliationAPIFactory) PreMount

type Route

type Route = httpservice.Route

type RouterFactory

type RouterFactory struct {
	// contains filtered or unexported fields
}

func NewRouterFactory

func NewRouterFactory() *RouterFactory

func (*RouterFactory) Descriptor

func (factory *RouterFactory) Descriptor() plugin.Descriptor

func (*RouterFactory) Mount

func (factory *RouterFactory) Mount(ctx context.Context, mount pluginruntime.MountContext) error

func (*RouterFactory) PreMount

type SessionAPIFactory

type SessionAPIFactory struct {
	// contains filtered or unexported fields
}

func NewSessionAPIFactory

func NewSessionAPIFactory() *SessionAPIFactory

func (*SessionAPIFactory) Descriptor

func (factory *SessionAPIFactory) Descriptor() plugin.Descriptor

func (*SessionAPIFactory) Mount

func (*SessionAPIFactory) PreMount

type SourcePublicationAPIFactory

type SourcePublicationAPIFactory struct {
	// contains filtered or unexported fields
}

func NewSourcePublicationAPIFactory

func NewSourcePublicationAPIFactory() *SourcePublicationAPIFactory

func (*SourcePublicationAPIFactory) Descriptor

func (factory *SourcePublicationAPIFactory) Descriptor() plugin.Descriptor

func (*SourcePublicationAPIFactory) Mount

func (*SourcePublicationAPIFactory) PreMount

type SourceReadingAPIFactory

type SourceReadingAPIFactory struct {
	// contains filtered or unexported fields
}

func NewSourceReadingAPIFactory

func NewSourceReadingAPIFactory() *SourceReadingAPIFactory

func (*SourceReadingAPIFactory) Descriptor

func (factory *SourceReadingAPIFactory) Descriptor() plugin.Descriptor

func (*SourceReadingAPIFactory) Mount

func (*SourceReadingAPIFactory) PreMount

type StaticAPIFactory

type StaticAPIFactory struct {
	// contains filtered or unexported fields
}

func NewStaticAPIFactory

func NewStaticAPIFactory() *StaticAPIFactory

func (*StaticAPIFactory) Descriptor

func (factory *StaticAPIFactory) Descriptor() plugin.Descriptor

func (*StaticAPIFactory) Mount

func (*StaticAPIFactory) PreMount

Jump to

Keyboard shortcuts

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