( ctx context.Context, s gomatrixserverlib.ServerName, eventID string, )
| 123 | } |
| 124 | |
| 125 | func (a *FederationInternalAPI) GetEvent( |
| 126 | ctx context.Context, s gomatrixserverlib.ServerName, eventID string, |
| 127 | ) (res gomatrixserverlib.Transaction, err error) { |
| 128 | ctx, cancel := context.WithTimeout(ctx, time.Second*30) |
| 129 | defer cancel() |
| 130 | ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) { |
| 131 | return a.federation.GetEvent(ctx, s, eventID) |
| 132 | }) |
| 133 | if err != nil { |
| 134 | return gomatrixserverlib.Transaction{}, err |
| 135 | } |
| 136 | return ires.(gomatrixserverlib.Transaction), nil |
| 137 | } |
| 138 | |
| 139 | func (a *FederationInternalAPI) LookupServerKeys( |
| 140 | ctx context.Context, s gomatrixserverlib.ServerName, keyRequests map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.Timestamp, |
nothing calls this directly
no test coverage detected