https://github.com/etkecc/go-msc1929
https://github.com/etkecc/go-msc1929
library matrix-org msc1929
Last synced: 3 months 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-20T14:46:31.000Z (7 months ago)
- Last Synced: 2025-05-20T15:47:27.745Z (7 months ago)
- Topics: library, matrix-org, msc1929
- Language: Go
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Matrix Server Contacts go client
This small library provides a go client to interact with [`/.well-known/matrix/support`](https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixsupport) endpoint.
The following MSCs are supported:
* [MSC1929](https://github.com/matrix-org/matrix-spec-proposals/pull/1929) - the `/.well-known/matrix/support` endpoint
* [MSC4121](https://github.com/matrix-org/matrix-spec-proposals/pull/4121) - the moderator role
* [MSC4265](https://github.com/matrix-org/matrix-spec-proposals/pull/4265) - the DPO role
Initially it was developed to be used in the [Matrix Rooms Search](https://github.com/etkecc/mrs) project, but it can be used in any other project that needs to interact with the admin contact API.
## Usage
```go
package main
import (
"fmt"
"github.com/etkecc/go-msc1929"
)
func main() {
contacts, err := msc1929.Get("matrix.org")
if err != nil {
fmt.Println(err)
}
fmt.Println(contacts.AdminEmails())
}
```