https://github.com/etkecc/go-msc1929
https://github.com/etkecc/go-msc1929
library matrix-org msc1929
Last synced: 4 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 (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T09:04:30.000Z (11 months ago)
- Last Synced: 2025-01-23T13:13:59.127Z (6 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
# 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 roleInitially 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 mainimport (
"fmt"
"github.com/etkecc/go-msc1929"
)func main() {
contacts, err := msc1929.Get("matrix.org")
if err != nil {
fmt.Println(err)
}
fmt.Println(contacts.AdminEmails())
}
```