Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/etkecc/go-msc1929
https://github.com/etkecc/go-msc1929
library matrix-org msc1929
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/etkecc/go-msc1929
- Owner: etkecc
- License: lgpl-3.0
- Created: 2024-08-08T18:39:23.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T09:04:30.000Z (6 months ago)
- Last Synced: 2024-11-23T05:14:18.078Z (2 months ago)
- Topics: library, matrix-org, msc1929
- Language: Go
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [MSC1929](https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/1929-admin-contact.md) and [MSC4121](https://github.com/FSG-Cat/matrix-spec-proposals/blob/FSG-Cat-Moderation-Role-well-known-support-record/proposals/4121-m.role.moderator.md) go client
This library parses MSC1929 support file (including MSC4121 support), and provides a go client to interact with the admin contact API.
Initially it was developed to be used in the [Matrix Rooms Search](https://gitlab.com/etke.cc/mrs/api) project, but it can be used in any other project that needs to interact with the admin contact API.
## Usage
```go
package mainimport (
"fmt"
"github.com/etkecc/go-msc1929"
)func main() {
contacts, err := msc1929.Get("matrix.org")
if err != nil {
fmt.Println(err)
}
fmt.Println(contactts.AdminEmails())
}
```