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 ¶
View Source
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" )
View 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 OutputRoomEventConsumer ¶
type OutputRoomEventConsumer struct {
// contains filtered or unexported fields
}
func NewOutputRoomEventConsumer ¶
func NewOutputRoomEventConsumer(process *process.ProcessContext, cfg *config.JetStream, js nats.JetStreamContext, service *Service) *OutputRoomEventConsumer
func (*OutputRoomEventConsumer) Start ¶
func (c *OutputRoomEventConsumer) Start() error
type PluginInvokeRequest ¶
type PluginRunner ¶
type PluginRunner interface {
ApplyPlugin(ctx context.Context, op PluginRunnerOperation) error
InvokePlugin(ctx context.Context, req PluginInvokeRequest) (map[string]any, error)
StreamPlugin(ctx context.Context, req PluginInvokeRequest, emit func(PluginStreamEvent) error) error
}
type PluginRunnerOperation ¶
type PluginStreamEvent ¶
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 ¶
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 Transport ¶
type Transport = dirextalktransport.Transport
type UpdateMemberProfileRequest ¶
type UpdateMemberProfileRequest = dirextalktransport.UpdateMemberProfileRequest
Source Files
¶
- action_registry.go
- action_registry_agent.go
- action_registry_channels.go
- action_registry_contacts.go
- action_registry_groups.go
- action_registry_plugins.go
- action_registry_portal.go
- action_registry_release.go
- action_registry_social.go
- close.go
- consumer.go
- consumer_metrics.go
- conversation.go
- conversation_service.go
- dendrite_helpers.go
- dendrite_transport.go
- errors.go
- matrix_history_reader.go
- matrix_profile_resolver.go
- matrix_session.go
- mcp_api.go
- mcp_pagination.go
- mcp_service.go
- native_agent_runner.go
- plugin_runner.go
- product_native.go
- projector.go
- projector_events.go
- projector_members_contacts.go
- projector_messages.go
- projector_redaction.go
- projector_state.go
- realtime_ws.go
- remote_public.go
- room_kind.go
- routing.go
- routing_mcp.go
- service.go
- service_account_delete.go
- service_action_auth.go
- service_agent_config_native.go
- service_auth_api.go
- service_blocks.go
- service_channel_backfill.go
- service_channel_comment_storage.go
- service_channel_content.go
- service_channel_join.go
- service_channel_post_storage.go
- service_channels.go
- service_contact_storage.go
- service_contacts.go
- service_group_storage.go
- service_groups.go
- service_helpers.go
- service_member_invites.go
- service_member_mutation.go
- service_member_persistence.go
- service_plugins.go
- service_portal_store.go
- service_profile_sync.go
- service_release.go
- service_room_reactivation.go
- service_social_calls.go
- service_state.go
- service_store_queries.go
- service_system_report.go
- storage_adapter.go
- transport.go
Click to show internal directories.
Click to hide internal directories.