Documentation ¶
Index ¶
- Constants
- func GenerateDefaultConfig(sk ed25519.PrivateKey, storageDir string, cacheDir string, dbPrefix string) *config.Dendrite
- func GetOrCreateKey(keyfile string, oldKeyfile string) (ed25519.PrivateKey, ed25519.PublicKey)
- type P2PMonolith
- func (p *P2PMonolith) Addr() string
- func (p *P2PMonolith) GetFederationAPI() federationAPI.FederationInternalAPI
- func (p *P2PMonolith) GetRelayAPI() relayAPI.RelayInternalAPI
- func (p *P2PMonolith) GetUserAPI() userAPI.UserInternalAPI
- func (p *P2PMonolith) SetupDendrite(processCtx *process.ProcessContext, cfg *config.Dendrite, ...)
- func (p *P2PMonolith) SetupPinecone(sk ed25519.PrivateKey)
- func (p *P2PMonolith) StartMonolith()
- func (p *P2PMonolith) Stop()
- func (p *P2PMonolith) WaitForShutdown()
Constants ¶
View Source
const SessionProtocol = "matrix"
Variables ¶
This section is empty.
Functions ¶
func GenerateDefaultConfig ¶
func GetOrCreateKey ¶
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()
Click to show internal directories.
Click to hide internal directories.