Documentation
¶
Index ¶
- func CloseCoreClient() error
- func EnsureRelayConnections() error
- func GetCoreClient() *core.Client
- func GetCoreClientStatus() map[string]interface{}
- func GetIndexRelays() []string
- func InitializeCoreClient(serverCfg *cfgType.ServerConfig) error
- func IsCoreClientInitialized() bool
- func SetIndexRelays(relays []string)
- func StartRelayHealthCheck(interval time.Duration)
- func SwitchToIndexRelays() error
- func SwitchToUserRelays(publicKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseCoreClient ¶
func CloseCoreClient() error
CloseCoreClient closes the core client connections
func EnsureRelayConnections ¶
func EnsureRelayConnections() error
EnsureRelayConnections checks and reconnects to relays if needed
func GetCoreClient ¶
GetCoreClient returns the core client instance
func GetCoreClientStatus ¶
func GetCoreClientStatus() map[string]interface{}
GetCoreClientStatus returns status information about the core client
func GetIndexRelays ¶ added in v0.5.0
func GetIndexRelays() []string
GetIndexRelays returns the configured index/seed relays
func InitializeCoreClient ¶
func InitializeCoreClient(serverCfg *cfgType.ServerConfig) error
InitializeCoreClient sets up the global core client with server configuration
func IsCoreClientInitialized ¶
func IsCoreClientInitialized() bool
IsCoreClientInitialized checks if the core client is properly initialized
func SetIndexRelays ¶ added in v0.5.0
func SetIndexRelays(relays []string)
SetIndexRelays sets the index/seed relays used for discovery
func StartRelayHealthCheck ¶ added in v0.5.0
StartRelayHealthCheck starts a background goroutine to maintain relay connections
func SwitchToIndexRelays ¶ added in v0.5.0
func SwitchToIndexRelays() error
SwitchToIndexRelays switches the core client back to the configured index/seed relays — used when a session ends and per-user mailbox connections should be released.
func SwitchToUserRelays ¶ added in v0.4.12
SwitchToUserRelays switches the core client to use user's cached relays from mailboxes
Types ¶
This section is empty.