connection

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func GetCoreClient() *core.Client

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

func SwitchToUserRelays(publicKey string) error

SwitchToUserRelays switches the core client to use user's cached relays from mailboxes

Types

This section is empty.

Jump to

Keyboard shortcuts

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