internal

package
v0.0.0-...-6dd005e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FederationInternalAPI

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

FederationInternalAPI is an implementation of api.FederationInternalAPI

func (*FederationInternalAPI) Backfill

func (a *FederationInternalAPI) Backfill(
	ctx context.Context, origin, s spec.ServerName, roomID string, limit int, eventIDs []string,
) (res gomatrixserverlib.Transaction, err error)

func (*FederationInternalAPI) ClaimKeys

func (a *FederationInternalAPI) ClaimKeys(
	ctx context.Context, origin, s spec.ServerName, oneTimeKeys map[string]map[string]string,
) (fclient.RespClaimKeys, error)

func (*FederationInternalAPI) FetcherName

func (s *FederationInternalAPI) FetcherName() string

func (*FederationInternalAPI) GetEvent

func (a *FederationInternalAPI) GetEvent(
	ctx context.Context, origin, s spec.ServerName, eventID string,
) (res gomatrixserverlib.Transaction, err error)

func (*FederationInternalAPI) GetEventAuth

func (a *FederationInternalAPI) GetEventAuth(
	ctx context.Context, origin, s spec.ServerName,
	roomVersion gomatrixserverlib.RoomVersion, roomID, eventID string,
) (res fclient.RespEventAuth, err error)

func (*FederationInternalAPI) GetUserDevices

func (a *FederationInternalAPI) GetUserDevices(
	ctx context.Context, origin, s spec.ServerName, userID string,
) (fclient.RespUserDevices, error)

func (*FederationInternalAPI) IsBlacklistedOrBackingOff

func (a *FederationInternalAPI) IsBlacklistedOrBackingOff(s spec.ServerName) (*statistics.ServerStatistics, error)

func (*FederationInternalAPI) KeyRing

func (*FederationInternalAPI) LookupMissingEvents

func (a *FederationInternalAPI) LookupMissingEvents(
	ctx context.Context, origin, s spec.ServerName, roomID string,
	missing fclient.MissingEvents, roomVersion gomatrixserverlib.RoomVersion,
) (res fclient.RespMissingEvents, err error)

func (*FederationInternalAPI) LookupServerKeys

func (*FederationInternalAPI) LookupState

func (a *FederationInternalAPI) LookupState(
	ctx context.Context, origin, s spec.ServerName, roomID, eventID string, roomVersion gomatrixserverlib.RoomVersion,
) (res gomatrixserverlib.StateResponse, err error)

func (*FederationInternalAPI) LookupStateIDs

func (a *FederationInternalAPI) LookupStateIDs(
	ctx context.Context, origin, s spec.ServerName, roomID, eventID string,
) (res gomatrixserverlib.StateIDResponse, err error)

func (*FederationInternalAPI) MSC2836EventRelationships

func (*FederationInternalAPI) MakeJoin

func (a *FederationInternalAPI) MakeJoin(
	ctx context.Context, origin, s spec.ServerName, roomID, userID string,
) (res gomatrixserverlib.MakeJoinResponse, err error)

func (*FederationInternalAPI) MarkServersAlive

func (r *FederationInternalAPI) MarkServersAlive(destinations []spec.ServerName)

func (*FederationInternalAPI) PerformBroadcastEDU

func (r *FederationInternalAPI) PerformBroadcastEDU(
	ctx context.Context,
	request *api.PerformBroadcastEDURequest,
	response *api.PerformBroadcastEDUResponse,
) (err error)

PerformServersAlive implements api.FederationInternalAPI

func (*FederationInternalAPI) PerformDirectoryLookup

func (r *FederationInternalAPI) PerformDirectoryLookup(
	ctx context.Context,
	request *api.PerformDirectoryLookupRequest,
	response *api.PerformDirectoryLookupResponse,
) (err error)

PerformLeaveRequest implements api.FederationInternalAPI

func (*FederationInternalAPI) PerformJoin

func (r *FederationInternalAPI) PerformJoin(
	ctx context.Context,
	request *api.PerformJoinRequest,
	response *api.PerformJoinResponse,
)

PerformJoin implements api.FederationInternalAPI

func (*FederationInternalAPI) PerformLeave

func (r *FederationInternalAPI) PerformLeave(
	ctx context.Context,
	request *api.PerformLeaveRequest,
	response *api.PerformLeaveResponse,
) (err error)

PerformLeaveRequest implements api.FederationInternalAPI

func (*FederationInternalAPI) PerformWakeupServers

func (r *FederationInternalAPI) PerformWakeupServers(
	ctx context.Context,
	request *api.PerformWakeupServersRequest,
	response *api.PerformWakeupServersResponse,
) (err error)

PerformWakeupServers implements api.FederationInternalAPI

func (*FederationInternalAPI) QueryJoinedHostServerNamesInRoom

func (f *FederationInternalAPI) QueryJoinedHostServerNamesInRoom(
	ctx context.Context,
	request *api.QueryJoinedHostServerNamesInRoomRequest,
	response *api.QueryJoinedHostServerNamesInRoomResponse,
) (err error)

QueryJoinedHostServerNamesInRoom implements api.FederationInternalAPI

func (*FederationInternalAPI) QueryKeys

func (a *FederationInternalAPI) QueryKeys(
	ctx context.Context, origin, s spec.ServerName, keys map[string][]string,
) (fclient.RespQueryKeys, error)

func (*FederationInternalAPI) QueryServerKeys

func (*FederationInternalAPI) RoomHierarchies

func (a *FederationInternalAPI) RoomHierarchies(
	ctx context.Context, origin, s spec.ServerName, roomID string, suggestedOnly bool,
) (res fclient.RoomHierarchyResponse, err error)

func (*FederationInternalAPI) SendInvite

SendInvite implements api.FederationInternalAPI

func (*FederationInternalAPI) SendInviteV3

SendInviteV3 implements api.FederationInternalAPI

func (*FederationInternalAPI) SendJoin

Jump to

Keyboard shortcuts

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