setup

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFlags

func ParseFlags(ctx context.Context) *config.Matrix

ParseFlags parses the commandline flags and uses them to create a config.

Types

type Monolith

type Monolith struct {
	Config    *config.Matrix
	Service   *frame.Service
	KeyRing   *gomatrixserverlib.KeyRing
	Client    *fclient.Client
	FedClient fclient.FederationClient

	AppserviceAPI appserviceAPI.AppServiceInternalAPI
	FederationAPI federationAPI.FederationInternalAPI
	RoomserverAPI roomserverAPI.RoomserverInternalAPI
	UserAPI       userAPI.UserInternalAPI
	RelayAPI      relayAPI.RelayInternalAPI

	PartitionCli *partitionv1.PartitionClient
	ProfileCli   *profilev1.ProfileClient

	PresenceCli presencev1connect.PresenceServiceClient
	// Optional
	ExtPublicRoomsProvider   api.ExtraPublicRoomsProvider
	ExtUserDirectoryProvider userAPI.QuerySearchProfilesAPI
}

Monolith represents an instantiation of all dependencies required to build all components of Matrix, for use in monolith mode.

func (*Monolith) AddAllPublicRoutes

func (m *Monolith) AddAllPublicRoutes(
	ctx context.Context,
	cfg *config.Matrix,
	routers httputil.Routers,
	cm sqlutil.ConnectionManager,
	qm queueutil.QueueManager,
	caches *cacheutil.Caches,
	am actorutil.ActorManager,
	enableMetrics bool,
)

AddAllPublicRoutes attaches all public paths to the given router

Directories

Path Synopsis
Package mscs implements Global Spec Changes from https://github.com/matrix-org/matrix-doc
Package mscs implements Global Spec Changes from https://github.com/matrix-org/matrix-doc
msc2836
Package msc2836 'Threading' implements https://github.com/matrix-org/matrix-doc/pull/2836
Package msc2836 'Threading' implements https://github.com/matrix-org/matrix-doc/pull/2836

Jump to

Keyboard shortcuts

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