internal

package
v0.13.8 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RelayInternalAPI

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

func NewRelayInternalAPI

func NewRelayInternalAPI(
	db storage.Database,
	fedClient fclient.FederationClient,
	rsAPI rsAPI.RoomserverInternalAPI,
	keyRing *gomatrixserverlib.KeyRing,
	producer *producers.SyncAPIProducer,
	presenceEnabledInbound bool,
	serverName spec.ServerName,
	relayingEnabled bool,
) *RelayInternalAPI

func (*RelayInternalAPI) PerformRelayServerSync

func (r *RelayInternalAPI) PerformRelayServerSync(
	ctx context.Context,
	userID spec.UserID,
	relayServer spec.ServerName,
) error

PerformRelayServerSync implements api.RelayInternalAPI

func (*RelayInternalAPI) PerformStoreTransaction

func (r *RelayInternalAPI) PerformStoreTransaction(
	ctx context.Context,
	transaction gomatrixserverlib.Transaction,
	userID spec.UserID,
) error

PerformStoreTransaction implements api.RelayInternalAPI

func (*RelayInternalAPI) QueryTransactions

func (r *RelayInternalAPI) QueryTransactions(
	ctx context.Context,
	userID spec.UserID,
	previousEntry fclient.RelayEntry,
) (api.QueryRelayTransactionsResponse, error)

QueryTransactions implements api.RelayInternalAPI

func (*RelayInternalAPI) RelayingEnabled

func (r *RelayInternalAPI) RelayingEnabled() bool

RelayingEnabled implements api.RelayInternalAPI

func (*RelayInternalAPI) SetRelayingEnabled

func (r *RelayInternalAPI) SetRelayingEnabled(enabled bool)

SetRelayingEnabled implements api.RelayInternalAPI

Jump to

Keyboard shortcuts

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