monolith

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const SessionProtocol = "matrix"

Variables

This section is empty.

Functions

func GenerateDefaultConfig

func GenerateDefaultConfig(sk ed25519.PrivateKey, storageDir string, cacheDir string, dbPrefix string) *config.Dendrite

func GetOrCreateKey

func GetOrCreateKey(keyfile string, oldKeyfile string) (ed25519.PrivateKey, ed25519.PublicKey)

Types

type P2PMonolith

type P2PMonolith struct {
	Sessions       *pineconeSessions.Sessions
	Multicast      *pineconeMulticast.Multicast
	ConnManager    *pineconeConnections.ConnectionManager
	Router         *pineconeRouter.Router
	EventChannel   chan pineconeEvents.Event
	RelayRetriever relay.RelayServerRetriever
	ProcessCtx     *process.ProcessContext
	// contains filtered or unexported fields
}

func (*P2PMonolith) Addr

func (p *P2PMonolith) Addr() string

func (*P2PMonolith) GetFederationAPI

func (p *P2PMonolith) GetFederationAPI() federationAPI.FederationInternalAPI

func (*P2PMonolith) GetRelayAPI

func (p *P2PMonolith) GetRelayAPI() relayAPI.RelayInternalAPI

func (*P2PMonolith) GetUserAPI

func (p *P2PMonolith) GetUserAPI() userAPI.UserInternalAPI

func (*P2PMonolith) SetupDendrite

func (p *P2PMonolith) SetupDendrite(
	processCtx *process.ProcessContext, cfg *config.Dendrite, cm *sqlutil.Connections, routers httputil.Routers,
	port int, enableRelaying bool, enableMetrics bool, enableWebsockets bool)

func (*P2PMonolith) SetupPinecone

func (p *P2PMonolith) SetupPinecone(sk ed25519.PrivateKey)

func (*P2PMonolith) StartMonolith

func (p *P2PMonolith) StartMonolith()

func (*P2PMonolith) Stop

func (p *P2PMonolith) Stop()

func (*P2PMonolith) WaitForShutdown

func (p *P2PMonolith) WaitForShutdown()

Jump to

Keyboard shortcuts

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