Documentation
¶
Index ¶
- Constants
- func Register(router *mux.Router, service *Service)
- func RegisterMCP(router *mux.Router, service *Service)
- func RegisterWellKnown(router *mux.Router, service *Service)
- type AccountDeactivator
- type AccountDeprovisioner
- type CompositeMatrixHistoryReader
- type Config
- type CreateRoomRequest
- type CreateRoomResult
- type DatabaseStore
- type DendriteMatrixSessionIssuer
- type DendriteTransport
- type HTTPMatrixHistoryReader
- type HTTPMatrixProfileResolver
- type InviteUserRequest
- type JoinRoomRequest
- type JoinRoomResult
- type KickUserRequest
- type LeaveRoomRequest
- type MatrixChannelContentReader
- type MatrixHistoryReader
- type MatrixProfileUpdater
- type MatrixSessionIssuer
- type NativeAgentRunner
- type OutputRoomEventConsumer
- type PluginInvokeRequest
- type PluginRunner
- type PluginRunnerOperation
- type PluginStreamEvent
- type PushRuleManager
- type RedactEventRequest
- type RedactEventResult
- type RoomChannel
- type RoomMember
- type RoomStateEvent
- type SendMessageRequest
- type SendMessageResult
- type SendStateEventRequest
- type Service
- func NewService(cfg Config) *Service
- func NewServiceWithStore(ctx context.Context, cfg Config, store Store) (*Service, error)
- func NewServiceWithStoreAndTransport(ctx context.Context, cfg Config, store Store, transport Transport) (*Service, error)
- func NewServiceWithTransport(cfg Config, transport Transport) *Service
- func (s *Service) AccessToken() string
- func (s *Service) AgentToken() string
- func (s *Service) Authenticate(token string) bool
- func (s *Service) Authorize(token, action string) bool
- func (s *Service) Handle(ctx context.Context, action string, params map[string]any) (any, *apiError)
- func (s *Service) MatrixHistoryAccessToken(ctx context.Context) (string, error)
- func (s *Service) OwnerMXID() string
- func (s *Service) ProjectOutputEvent(ctx context.Context, output roomserverAPI.OutputEvent) error
- func (s *Service) ProjectRoomEvent(ctx context.Context, event *types.HeaderedEvent) error
- func (s *Service) SetAccountDeactivator(deactivator AccountDeactivator)
- func (s *Service) SetAccountDeprovisioner(deprovisioner AccountDeprovisioner)
- func (s *Service) SetMatrixMessageReader(reader matrixMessageReader)
- func (s *Service) SetMatrixProfileResolver(resolver matrixProfileResolver)
- func (s *Service) SetMatrixSessionIssuer(issuer MatrixSessionIssuer)
- func (s *Service) SetProjectorStarted(started bool)
- func (s *Service) SetPushRuleManager(manager PushRuleManager)
- type Store
- type Transport
- type UpdateMemberProfileRequest
Constants ¶
const ( DirextalkRoomTypeDirect = productpolicy.DirextalkRoomTypeDirect DirextalkRoomTypeGroup = productpolicy.DirextalkRoomTypeGroup DirextalkRoomTypeChannel = productpolicy.DirextalkRoomTypeChannel DirextalkRoomTypeSystem = "io.dirextalk.room.system" DirextalkRoomProfileEventType = productpolicy.DirextalkRoomProfileEventType DirextalkMemberPolicyEventType = productpolicy.DirextalkMemberPolicyEventType DirextalkJoinRequestEventType = productpolicy.DirextalkJoinRequestEventType DirextalkAgentStatusEventType = "io.dirextalk.agent.status" AgentGatewayContentKey = "io.dirextalk.agent_gateway" AgentGatewaySourceContentKey = "io.dirextalk.gateway_source" )
const PathPrefix = "/_p2p/"
Variables ¶
This section is empty.
Functions ¶
func RegisterMCP ¶
func RegisterWellKnown ¶
Types ¶
type AccountDeactivator ¶
type AccountDeprovisioner ¶
type CompositeMatrixHistoryReader ¶
type CompositeMatrixHistoryReader struct {
// contains filtered or unexported fields
}
func NewCompositeMatrixHistoryReader ¶
func NewCompositeMatrixHistoryReader(messages MatrixHistoryReader, channelContent MatrixChannelContentReader) *CompositeMatrixHistoryReader
func (*CompositeMatrixHistoryReader) ListChannelContent ¶
func (r *CompositeMatrixHistoryReader) ListChannelContent(ctx context.Context, roomID string, limit int) ([]matrixhistory.Event, error)
func (*CompositeMatrixHistoryReader) ListOrdinaryMessages ¶
func (r *CompositeMatrixHistoryReader) ListOrdinaryMessages(ctx context.Context, roomID string, page matrixhistory.Page) (matrixhistory.MessagePageResult, error)
type Config ¶
type Config struct {
ServerName string
Homeserver string
RemoteNodeInsecureSkipTLSVerify bool
RemoteNodeAllowPrivateBaseURLs bool
P2PEventRetentionMaxRows int64
P2PEventRetentionPruneOnWrite bool
PushRules PushRuleManager
RealtimeSessions *realtime.SessionStore
PluginRunner PluginRunner
NativeAgentRunner NativeAgentRunner
NativeAgentDataDir string
ReleaseController releasecontrol.Controller
}
type CreateRoomRequest ¶
type CreateRoomRequest = dirextalktransport.CreateRoomRequest
type CreateRoomResult ¶
type CreateRoomResult = dirextalktransport.CreateRoomResult
type DatabaseStore ¶
type DatabaseStore = p2pstorage.DatabaseStore
func NewDatabaseStore ¶
func NewDatabaseStore(ctx context.Context, cm *sqlutil.Connections, dbProperties *config.DatabaseOptions) (*DatabaseStore, error)
func NewUnmigratedDatabaseStore ¶
func NewUnmigratedDatabaseStore(db *sql.DB, writer sqlutil.Writer) *DatabaseStore
type DendriteMatrixSessionIssuer ¶
type DendriteMatrixSessionIssuer = dirextalksession.Issuer
func NewDendriteAccountDeactivator ¶
func NewDendriteAccountDeactivator(userAPI userapi.UserInternalAPI, serverName spec.ServerName) *DendriteMatrixSessionIssuer
func NewDendriteMatrixSessionIssuer ¶
func NewDendriteMatrixSessionIssuer(userAPI userapi.UserInternalAPI, serverName spec.ServerName) *DendriteMatrixSessionIssuer
type DendriteTransport ¶
type DendriteTransport = dendrite.DendriteTransport
func NewDendriteTransport ¶
func NewDendriteTransport(serverName spec.ServerName, keyID gomatrixserverlib.KeyID, privateKey ed25519.PrivateKey, rsAPI roomserverAPI.ClientRoomserverAPI) *DendriteTransport
type HTTPMatrixHistoryReader ¶
type HTTPMatrixHistoryReader = matrixhistory.HTTPMessageReader
type HTTPMatrixProfileResolver ¶
type HTTPMatrixProfileResolver = dirextalkmatrix.HTTPProfileResolver
func NewHTTPMatrixProfileResolver ¶
func NewHTTPMatrixProfileResolver(baseURL string, client *http.Client) *HTTPMatrixProfileResolver
type InviteUserRequest ¶
type InviteUserRequest = dirextalktransport.InviteUserRequest
type JoinRoomRequest ¶
type JoinRoomRequest = dirextalktransport.JoinRoomRequest
type JoinRoomResult ¶
type JoinRoomResult = dirextalktransport.JoinRoomResult
type KickUserRequest ¶
type KickUserRequest = dirextalktransport.KickUserRequest
type LeaveRoomRequest ¶
type LeaveRoomRequest = dirextalktransport.LeaveRoomRequest
type MatrixHistoryReader ¶
type MatrixHistoryReader interface {
ListOrdinaryMessages(ctx context.Context, roomID string, page matrixhistory.Page) (matrixhistory.MessagePageResult, error)
}
type MatrixProfileUpdater ¶
type MatrixSessionIssuer ¶
type NativeAgentRunner ¶
type NativeAgentRunner interface {
Apply(context.Context, string) error
Invoke(context.Context, string, map[string]any) (map[string]any, error)
Stream(context.Context, string, map[string]any, func(nativeagent.Event) error) error
}
NativeAgentRunner remains the public runtime injection boundary while the default implementation and action ownership live in internal/agent.
type OutputRoomEventConsumer ¶
type OutputRoomEventConsumer = projectormodule.OutputRoomEventConsumer
func NewOutputRoomEventConsumer ¶
func NewOutputRoomEventConsumer(process *process.ProcessContext, cfg *config.JetStream, js nats.JetStreamContext, service *Service) *OutputRoomEventConsumer
type PluginInvokeRequest ¶
type PluginInvokeRequest = pluginsmodule.InvokeRequest
type PluginRunner ¶
type PluginRunner = pluginsmodule.Runner
Public aliases preserve Config.PluginRunner and custom runner integrations.
type PluginRunnerOperation ¶
type PluginRunnerOperation = pluginsmodule.RunnerOperation
type PluginStreamEvent ¶
type PluginStreamEvent = pluginsmodule.StreamEvent
type PushRuleManager ¶
type RedactEventRequest ¶
type RedactEventRequest = dirextalktransport.RedactEventRequest
type RedactEventResult ¶
type RedactEventResult = dirextalktransport.RedactEventResult
type RoomChannel ¶
type RoomChannel = dirextalktransport.RoomChannel
type RoomMember ¶
type RoomMember = dirextalktransport.RoomMember
type RoomStateEvent ¶
type RoomStateEvent = dirextalktransport.RoomStateEvent
type SendMessageRequest ¶
type SendMessageRequest = dirextalktransport.SendMessageRequest
type SendMessageResult ¶
type SendMessageResult = dirextalktransport.SendMessageResult
type SendStateEventRequest ¶
type SendStateEventRequest = dirextalktransport.SendStateEventRequest
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewServiceWithStore ¶
func NewServiceWithTransport ¶
func (*Service) AccessToken ¶
func (*Service) AgentToken ¶
func (*Service) Authenticate ¶
func (*Service) MatrixHistoryAccessToken ¶
MatrixHistoryAccessToken remains the public setup callback for the existing owner Matrix history reader.
func (*Service) ProjectOutputEvent ¶
func (s *Service) ProjectOutputEvent(ctx context.Context, output roomserverAPI.OutputEvent) error
func (*Service) ProjectRoomEvent ¶
func (*Service) SetAccountDeactivator ¶
func (s *Service) SetAccountDeactivator(deactivator AccountDeactivator)
func (*Service) SetAccountDeprovisioner ¶
func (s *Service) SetAccountDeprovisioner(deprovisioner AccountDeprovisioner)
func (*Service) SetMatrixMessageReader ¶
func (s *Service) SetMatrixMessageReader(reader matrixMessageReader)
func (*Service) SetMatrixProfileResolver ¶
func (s *Service) SetMatrixProfileResolver(resolver matrixProfileResolver)
func (*Service) SetMatrixSessionIssuer ¶
func (s *Service) SetMatrixSessionIssuer(issuer MatrixSessionIssuer)
func (*Service) SetProjectorStarted ¶
func (*Service) SetPushRuleManager ¶
func (s *Service) SetPushRuleManager(manager PushRuleManager)
type Store ¶
type Store interface {
operationsmodule.Store
channelsmodule.ContentStore
pluginsmodule.Store
reportsmodule.Store
// contains filtered or unexported methods
}
type Transport ¶
type Transport = dirextalktransport.Transport
type UpdateMemberProfileRequest ¶
type UpdateMemberProfileRequest = dirextalktransport.UpdateMemberProfileRequest
Source Files
¶
- action_registry.go
- close.go
- consumer.go
- conversation_service.go
- dendrite_helpers.go
- dendrite_transport.go
- matrix_history_reader.go
- matrix_profile_resolver.go
- matrix_session.go
- mcp_service.go
- plugin_runner.go
- product_native.go
- projector.go
- projector_ports.go
- realtime_ws.go
- remote_public.go
- routing.go
- service.go
- service_account_delete.go
- service_action_auth.go
- service_agent_api.go
- service_agent_config_native.go
- service_blocks.go
- service_channel_backfill.go
- service_channel_join.go
- service_channels.go
- service_contact_direct_room_adapter.go
- service_groups.go
- service_helpers.go
- service_member_invites.go
- service_member_mutation.go
- service_member_persistence.go
- service_operation_recovery.go
- service_portal.go
- service_profile_sync.go
- service_release.go
- service_room_reactivation.go
- service_state.go
- service_system_report.go
- storage_adapter.go
- transport.go
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
action
Package action owns the shared ProductCore action boundary primitives.
|
Package action owns the shared ProductCore action boundary primitives. |
|
agent
Package agent owns Native Agent configuration mapping and legacy import.
|
Package agent owns Native Agent configuration mapping and legacy import. |
|
blocks
Package blocks owns ProductCore contact-block actions and block lookups.
|
Package blocks owns ProductCore contact-block actions and block lookups. |
|
calls
Package calls owns ProductCore call-session actions and lifecycle projection.
|
Package calls owns ProductCore call-session actions and lifecycle projection. |
|
channels
Package channels owns ProductCore channel CRUD, listing, lifecycle, and member-count persistence orchestration.
|
Package channels owns ProductCore channel CRUD, listing, lifecycle, and member-count persistence orchestration. |
|
contacts
Package contacts owns contact reads and durable contact-save orchestration.
|
Package contacts owns contact reads and durable contact-save orchestration. |
|
conversation
Package conversation owns ProductCore conversation actions and read-model presentation.
|
Package conversation owns ProductCore conversation actions and read-model presentation. |
|
events
Package events owns the durable ProductCore event stream, sequence allocation, retention, cursor validation, and live waiter notification.
|
Package events owns the durable ProductCore event stream, sequence allocation, retention, cursor validation, and live waiter notification. |
|
groups
Package groups owns ProductCore group CRUD, listing, lifecycle, and policy actions.
|
Package groups owns ProductCore group CRUD, listing, lifecycle, and policy actions. |
|
httpapi
Package httpapi owns the ProductCore and MCP HTTP protocol adapters.
|
Package httpapi owns the ProductCore and MCP HTTP protocol adapters. |
|
mcp
Package mcp adapts Dirextalk product state and Matrix transport to the shared internal/dirextalkmcp capability service.
|
Package mcp adapts Dirextalk product state and Matrix transport to the shared internal/dirextalkmcp capability service. |
|
members
Package members owns shared ProductCore group and channel member reads and lifecycle and policy mutations.
|
Package members owns shared ProductCore group and channel member reads and lifecycle and policy mutations. |
|
operations
Package operations defines durable records for recoverable ProductCore operations.
|
Package operations defines durable records for recoverable ProductCore operations. |
|
plugins
Package plugins owns the non-Agent plugin ProductCore actions, persistence orchestration, invocation validation, and Docker runner boundary.
|
Package plugins owns the non-Agent plugin ProductCore actions, persistence orchestration, invocation validation, and Docker runner boundary. |
|
portal
Package portal owns portal authentication, session rotation, password, and runtime-status ProductCore workflows.
|
Package portal owns portal authentication, session rotation, password, and runtime-status ProductCore workflows. |
|
profile
Package profile owns the owner profile ProductCore workflow and public well-known projection.
|
Package profile owns the owner profile ProductCore workflow and public well-known projection. |
|
projector
Package projector owns roomserver output consumption and projection dispatch.
|
Package projector owns roomserver output consumption and projection dispatch. |
|
release
Package release owns the ProductCore release status, apply, and client-build reporting workflows.
|
Package release owns the ProductCore release status, apply, and client-build reporting workflows. |
|
reports
Package reports owns report submission, durable report creation, and the related Matrix system-notification projection.
|
Package reports owns report submission, durable report creation, and the related Matrix system-notification projection. |
|
social
Package social owns ProductCore favorite and follow actions.
|
Package social owns ProductCore favorite and follow actions. |