Documentation
¶
Index ¶
- func CloseCoreClient() error
- func EnsureRelayConnections() error
- func GetClientRelays() []string
- func GetCoreClient() *core.Client
- func GetCoreClientStatus() map[string]interface{}
- func InitializeCoreClient(serverCfg *cfgType.ServerConfig) error
- func IsCoreClientInitialized() bool
- func ReinitializeCoreClient() error
- func SetClientRelays(relays []string)
- func SwitchToDefaultRelays() 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 GetClientRelays ¶ added in v0.4.12
func GetClientRelays() []string
GetClientRelays returns the configured application relays
func GetCoreClient ¶
GetCoreClient returns the core client instance
func GetCoreClientStatus ¶
func GetCoreClientStatus() map[string]interface{}
GetCoreClientStatus returns status information about the core client
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 ReinitializeCoreClient ¶
func ReinitializeCoreClient() error
ReinitializeCoreClient reinitializes the core client (for recovery)
func SetClientRelays ¶ added in v0.4.12
func SetClientRelays(relays []string)
SetClientRelays sets the application relays for initial discovery
func SwitchToDefaultRelays ¶ added in v0.4.12
func SwitchToDefaultRelays() error
SwitchToDefaultRelays switches the core client back to default relays
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.