relay

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateNodeRelayServers

func UpdateNodeRelayServers(
	node spec.ServerName,
	relays []spec.ServerName,
	ctx context.Context,
	fedAPI federationAPI.FederationInternalAPI,
)

Types

type RelayServerRetriever

type RelayServerRetriever struct {
	// contains filtered or unexported fields
}

func NewRelayServerRetriever

func NewRelayServerRetriever(
	ctx context.Context,
	serverName spec.ServerName,
	federationAPI federationAPI.FederationInternalAPI,
	relayAPI relayServerAPI.RelayInternalAPI,
	quit chan bool,
) RelayServerRetriever

func (*RelayServerRetriever) GetQueriedServerStatus

func (r *RelayServerRetriever) GetQueriedServerStatus() map[spec.ServerName]bool

func (*RelayServerRetriever) GetRelayServers

func (r *RelayServerRetriever) GetRelayServers() []spec.ServerName

func (*RelayServerRetriever) InitializeRelayServers

func (r *RelayServerRetriever) InitializeRelayServers(eLog *logrus.Entry)

func (*RelayServerRetriever) IsRunning

func (r *RelayServerRetriever) IsRunning() bool

func (*RelayServerRetriever) SetRelayServers

func (r *RelayServerRetriever) SetRelayServers(servers []spec.ServerName)

func (*RelayServerRetriever) StartSync

func (r *RelayServerRetriever) StartSync()

func (*RelayServerRetriever) SyncRelayServers

func (r *RelayServerRetriever) SyncRelayServers(stop <-chan bool)

Jump to

Keyboard shortcuts

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