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 ¶
- func HTTPHandler(mounted *pluginruntime.Mounted, export string) (http.Handler, error)
- func NewAuthoringProvider(authoring management.Authoring) (pluginruntime.Factory, error)
- func NewAuthorizerProvider(authorizer management.Authorizer) (pluginruntime.Factory, error)
- func NewReconciliationProvider(reconciliation management.Reconciliation) (pluginruntime.Factory, error)
- func NewSessionInspectionProvider(source management.SessionInspection) (pluginruntime.Factory, error)
- func NewSourcePublicationProvider(publication management.SourcePublication) (pluginruntime.Factory, error)
- func NewSourceReadingProvider(reading management.SourceReading) (pluginruntime.Factory, error)
- func NewStaticCatalogProvider(catalog management.StaticCatalog) (pluginruntime.Factory, error)
- type AuthoringAPIFactory
- func (factory *AuthoringAPIFactory) Descriptor() plugin.Descriptor
- func (factory *AuthoringAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
- func (factory *AuthoringAPIFactory) PreMount(_ context.Context, candidate pluginruntime.CandidateContext) (pluginruntime.CandidateMount, error)
- type Bundle
- type BundleConfig
- type OperatorAPI
- type OperatorAPIConfig
- type ReconciliationAPIFactory
- func (factory *ReconciliationAPIFactory) Descriptor() plugin.Descriptor
- func (factory *ReconciliationAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
- func (factory *ReconciliationAPIFactory) PreMount(_ context.Context, candidate pluginruntime.CandidateContext) (pluginruntime.CandidateMount, error)
- type Route
- type RouterFactory
- type SessionAPIFactory
- func (factory *SessionAPIFactory) Descriptor() plugin.Descriptor
- func (factory *SessionAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
- func (factory *SessionAPIFactory) PreMount(_ context.Context, candidate pluginruntime.CandidateContext) (pluginruntime.CandidateMount, error)
- type SourcePublicationAPIFactory
- func (factory *SourcePublicationAPIFactory) Descriptor() plugin.Descriptor
- func (factory *SourcePublicationAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
- func (factory *SourcePublicationAPIFactory) PreMount(_ context.Context, candidate pluginruntime.CandidateContext) (pluginruntime.CandidateMount, error)
- type SourceReadingAPIFactory
- func (factory *SourceReadingAPIFactory) Descriptor() plugin.Descriptor
- func (factory *SourceReadingAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
- func (factory *SourceReadingAPIFactory) PreMount(_ context.Context, candidate pluginruntime.CandidateContext) (pluginruntime.CandidateMount, error)
- type StaticAPIFactory
- func (factory *StaticAPIFactory) Descriptor() plugin.Descriptor
- func (factory *StaticAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
- func (factory *StaticAPIFactory) PreMount(_ context.Context, candidate pluginruntime.CandidateContext) (pluginruntime.CandidateMount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPHandler ¶
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 (factory *AuthoringAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
func (*AuthoringAPIFactory) PreMount ¶
func (factory *AuthoringAPIFactory) PreMount( _ context.Context, candidate pluginruntime.CandidateContext, ) (pluginruntime.CandidateMount, error)
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)
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 (factory *ReconciliationAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
func (*ReconciliationAPIFactory) PreMount ¶
func (factory *ReconciliationAPIFactory) PreMount( _ context.Context, candidate pluginruntime.CandidateContext, ) (pluginruntime.CandidateMount, error)
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 ¶
func (factory *RouterFactory) PreMount( _ context.Context, _ pluginruntime.CandidateContext, ) (pluginruntime.CandidateMount, error)
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 (factory *SessionAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
func (*SessionAPIFactory) PreMount ¶
func (factory *SessionAPIFactory) PreMount( _ context.Context, candidate pluginruntime.CandidateContext, ) (pluginruntime.CandidateMount, error)
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 (factory *SourcePublicationAPIFactory) Mount( _ context.Context, mount pluginruntime.MountContext, ) error
func (*SourcePublicationAPIFactory) PreMount ¶
func (factory *SourcePublicationAPIFactory) PreMount( _ context.Context, candidate pluginruntime.CandidateContext, ) (pluginruntime.CandidateMount, error)
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 (factory *SourceReadingAPIFactory) Mount( _ context.Context, mount pluginruntime.MountContext, ) error
func (*SourceReadingAPIFactory) PreMount ¶
func (factory *SourceReadingAPIFactory) PreMount( _ context.Context, candidate pluginruntime.CandidateContext, ) (pluginruntime.CandidateMount, error)
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 (factory *StaticAPIFactory) Mount(_ context.Context, mount pluginruntime.MountContext) error
func (*StaticAPIFactory) PreMount ¶
func (factory *StaticAPIFactory) PreMount( _ context.Context, candidate pluginruntime.CandidateContext, ) (pluginruntime.CandidateMount, error)