connection

package
v0.4.1-pre-release Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 3 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 GetAppRelays

func GetAppRelays() []string

GetAppRelays 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(relays []string) error

InitializeCoreClient sets up the global core client with retry

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 SetAppRelays

func SetAppRelays(relays []string)

SetAppRelays sets the application relays for initial discovery

Types

This section is empty.

Jump to

Keyboard shortcuts

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