lanonna/pam/bin/datatypes.ml

20 lines
490 B
OCaml
Raw Normal View History

2024-03-16 09:34:29 +01:00
type reminder = { (* from an issue in forgejo get a reminder *)
url: string;
title: string;
due_date: string ;
}
2024-03-25 14:17:34 +01:00
type client_id = | MqClient | HttpClient
2024-03-16 09:34:29 +01:00
type Riot.Message.t +=
2024-03-25 14:17:34 +01:00
| RegisterClient of (client_id * Riot.Pid.t)
| LookupClient of client_id
2024-03-16 09:34:29 +01:00
| ReceivedFromMq of string
2024-03-25 14:17:34 +01:00
| ListIssues
2024-03-16 09:34:29 +01:00
| ForgejoIssues of reminder list
| ForgejoError of string
| InternalFailure of string
let forgejo_issues lst = ForgejoIssues lst
let forgejo_error reason = ForgejoError reason