Documentation ¶
Index ¶
- type FederationInternalAPI
- func (a *FederationInternalAPI) Backfill(ctx context.Context, origin, s gomatrixserverlib.ServerName, roomID string, ...) (res gomatrixserverlib.Transaction, err error)
- func (a *FederationInternalAPI) ClaimKeys(ctx context.Context, origin, s gomatrixserverlib.ServerName, ...) (gomatrixserverlib.RespClaimKeys, error)
- func (s *FederationInternalAPI) FetchKeys(_ context.Context, ...) (...)
- func (s *FederationInternalAPI) FetcherName() string
- func (a *FederationInternalAPI) GetEvent(ctx context.Context, origin, s gomatrixserverlib.ServerName, eventID string) (res gomatrixserverlib.Transaction, err error)
- func (a *FederationInternalAPI) GetEventAuth(ctx context.Context, origin, s gomatrixserverlib.ServerName, ...) (res gomatrixserverlib.RespEventAuth, err error)
- func (a *FederationInternalAPI) GetUserDevices(ctx context.Context, origin, s gomatrixserverlib.ServerName, userID string) (gomatrixserverlib.RespUserDevices, error)
- func (s *FederationInternalAPI) KeyRing() *gomatrixserverlib.KeyRing
- func (a *FederationInternalAPI) LookupMissingEvents(ctx context.Context, origin, s gomatrixserverlib.ServerName, roomID string, ...) (res gomatrixserverlib.RespMissingEvents, err error)
- func (a *FederationInternalAPI) LookupServerKeys(ctx context.Context, s gomatrixserverlib.ServerName, ...) ([]gomatrixserverlib.ServerKeys, error)
- func (a *FederationInternalAPI) LookupState(ctx context.Context, origin, s gomatrixserverlib.ServerName, ...) (res gomatrixserverlib.RespState, err error)
- func (a *FederationInternalAPI) LookupStateIDs(ctx context.Context, origin, s gomatrixserverlib.ServerName, ...) (res gomatrixserverlib.RespStateIDs, err error)
- func (a *FederationInternalAPI) MSC2836EventRelationships(ctx context.Context, origin, s gomatrixserverlib.ServerName, ...) (res gomatrixserverlib.MSC2836EventRelationshipsResponse, err error)
- func (a *FederationInternalAPI) MSC2946Spaces(ctx context.Context, origin, s gomatrixserverlib.ServerName, roomID string, ...) (res gomatrixserverlib.MSC2946SpacesResponse, err error)
- func (r *FederationInternalAPI) MarkServersAlive(destinations []gomatrixserverlib.ServerName)
- func (r *FederationInternalAPI) PerformBroadcastEDU(ctx context.Context, request *api.PerformBroadcastEDURequest, ...) (err error)
- func (r *FederationInternalAPI) PerformDirectoryLookup(ctx context.Context, request *api.PerformDirectoryLookupRequest, ...) (err error)
- func (r *FederationInternalAPI) PerformInvite(ctx context.Context, request *api.PerformInviteRequest, ...) (err error)
- func (r *FederationInternalAPI) PerformJoin(ctx context.Context, request *api.PerformJoinRequest, ...)
- func (r *FederationInternalAPI) PerformLeave(ctx context.Context, request *api.PerformLeaveRequest, ...) (err error)
- func (r *FederationInternalAPI) PerformOutboundPeek(ctx context.Context, request *api.PerformOutboundPeekRequest, ...) error
- func (r *FederationInternalAPI) PerformWakeupServers(ctx context.Context, request *api.PerformWakeupServersRequest, ...) (err error)
- func (f *FederationInternalAPI) QueryJoinedHostServerNamesInRoom(ctx context.Context, request *api.QueryJoinedHostServerNamesInRoomRequest, ...) (err error)
- func (a *FederationInternalAPI) QueryKeys(ctx context.Context, origin, s gomatrixserverlib.ServerName, ...) (gomatrixserverlib.RespQueryKeys, error)
- func (a *FederationInternalAPI) QueryServerKeys(ctx context.Context, req *api.QueryServerKeysRequest, ...) error
- func (s *FederationInternalAPI) StoreKeys(_ context.Context, ...) error
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 NewFederationInternalAPI ¶
func NewFederationInternalAPI( db storage.Database, cfg *config.FederationAPI, rsAPI roomserverAPI.FederationRoomserverAPI, federation api.FederationClient, statistics *statistics.Statistics, caches *caching.Caches, queues *queue.OutgoingQueues, keyRing *gomatrixserverlib.KeyRing, ) *FederationInternalAPI
func (*FederationInternalAPI) Backfill ¶
func (a *FederationInternalAPI) Backfill( ctx context.Context, origin, s gomatrixserverlib.ServerName, roomID string, limit int, eventIDs []string, ) (res gomatrixserverlib.Transaction, err error)
func (*FederationInternalAPI) ClaimKeys ¶
func (a *FederationInternalAPI) ClaimKeys( ctx context.Context, origin, s gomatrixserverlib.ServerName, oneTimeKeys map[string]map[string]string, ) (gomatrixserverlib.RespClaimKeys, error)
func (*FederationInternalAPI) FetchKeys ¶
func (s *FederationInternalAPI) FetchKeys( _ context.Context, requests map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.Timestamp, ) (map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.PublicKeyLookupResult, error)
func (*FederationInternalAPI) FetcherName ¶
func (s *FederationInternalAPI) FetcherName() string
func (*FederationInternalAPI) GetEvent ¶
func (a *FederationInternalAPI) GetEvent( ctx context.Context, origin, s gomatrixserverlib.ServerName, eventID string, ) (res gomatrixserverlib.Transaction, err error)
func (*FederationInternalAPI) GetEventAuth ¶
func (a *FederationInternalAPI) GetEventAuth( ctx context.Context, origin, s gomatrixserverlib.ServerName, roomVersion gomatrixserverlib.RoomVersion, roomID, eventID string, ) (res gomatrixserverlib.RespEventAuth, err error)
func (*FederationInternalAPI) GetUserDevices ¶
func (a *FederationInternalAPI) GetUserDevices( ctx context.Context, origin, s gomatrixserverlib.ServerName, userID string, ) (gomatrixserverlib.RespUserDevices, error)
func (*FederationInternalAPI) KeyRing ¶
func (s *FederationInternalAPI) KeyRing() *gomatrixserverlib.KeyRing
func (*FederationInternalAPI) LookupMissingEvents ¶
func (a *FederationInternalAPI) LookupMissingEvents( ctx context.Context, origin, s gomatrixserverlib.ServerName, roomID string, missing gomatrixserverlib.MissingEvents, roomVersion gomatrixserverlib.RoomVersion, ) (res gomatrixserverlib.RespMissingEvents, err error)
func (*FederationInternalAPI) LookupServerKeys ¶
func (a *FederationInternalAPI) LookupServerKeys( ctx context.Context, s gomatrixserverlib.ServerName, keyRequests map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.Timestamp, ) ([]gomatrixserverlib.ServerKeys, error)
func (*FederationInternalAPI) LookupState ¶
func (a *FederationInternalAPI) LookupState( ctx context.Context, origin, s gomatrixserverlib.ServerName, roomID, eventID string, roomVersion gomatrixserverlib.RoomVersion, ) (res gomatrixserverlib.RespState, err error)
func (*FederationInternalAPI) LookupStateIDs ¶
func (a *FederationInternalAPI) LookupStateIDs( ctx context.Context, origin, s gomatrixserverlib.ServerName, roomID, eventID string, ) (res gomatrixserverlib.RespStateIDs, err error)
func (*FederationInternalAPI) MSC2836EventRelationships ¶
func (a *FederationInternalAPI) MSC2836EventRelationships( ctx context.Context, origin, s gomatrixserverlib.ServerName, r gomatrixserverlib.MSC2836EventRelationshipsRequest, roomVersion gomatrixserverlib.RoomVersion, ) (res gomatrixserverlib.MSC2836EventRelationshipsResponse, err error)
func (*FederationInternalAPI) MSC2946Spaces ¶
func (a *FederationInternalAPI) MSC2946Spaces( ctx context.Context, origin, s gomatrixserverlib.ServerName, roomID string, suggestedOnly bool, ) (res gomatrixserverlib.MSC2946SpacesResponse, err error)
func (*FederationInternalAPI) MarkServersAlive ¶ added in v0.8.3
func (r *FederationInternalAPI) MarkServersAlive(destinations []gomatrixserverlib.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) PerformInvite ¶
func (r *FederationInternalAPI) PerformInvite( ctx context.Context, request *api.PerformInviteRequest, response *api.PerformInviteResponse, ) (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) PerformOutboundPeek ¶
func (r *FederationInternalAPI) PerformOutboundPeek( ctx context.Context, request *api.PerformOutboundPeekRequest, response *api.PerformOutboundPeekResponse, ) error
PerformOutboundPeekRequest implements api.FederationInternalAPI
func (*FederationInternalAPI) PerformWakeupServers ¶ added in v0.10.8
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 gomatrixserverlib.ServerName, keys map[string][]string, ) (gomatrixserverlib.RespQueryKeys, error)
func (*FederationInternalAPI) QueryServerKeys ¶
func (a *FederationInternalAPI) QueryServerKeys( ctx context.Context, req *api.QueryServerKeysRequest, res *api.QueryServerKeysResponse, ) error
func (*FederationInternalAPI) StoreKeys ¶
func (s *FederationInternalAPI) StoreKeys( _ context.Context, results map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.PublicKeyLookupResult, ) error
Click to show internal directories.
Click to hide internal directories.