Functions here are "proxying" calls to the gomatrixserverlib federation client.
( ctx context.Context, s gomatrixserverlib.ServerName, roomVersion gomatrixserverlib.RoomVersion, roomID, eventID string, )
| 11 | // client. |
| 12 | |
| 13 | func (a *FederationInternalAPI) GetEventAuth( |
| 14 | ctx context.Context, s gomatrixserverlib.ServerName, |
| 15 | roomVersion gomatrixserverlib.RoomVersion, roomID, eventID string, |
| 16 | ) (res gomatrixserverlib.RespEventAuth, err error) { |
| 17 | ctx, cancel := context.WithTimeout(ctx, time.Second*30) |
| 18 | defer cancel() |
| 19 | ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) { |
| 20 | return a.federation.GetEventAuth(ctx, s, roomVersion, roomID, eventID) |
| 21 | }) |
| 22 | if err != nil { |
| 23 | return gomatrixserverlib.RespEventAuth{}, err |
| 24 | } |
| 25 | return ires.(gomatrixserverlib.RespEventAuth), nil |
| 26 | } |
| 27 | |
| 28 | func (a *FederationInternalAPI) GetUserDevices( |
| 29 | ctx context.Context, s gomatrixserverlib.ServerName, userID string, |
nothing calls this directly
no test coverage detected