Skip to content

Commit

Permalink
Adjust schema to add additional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyguru committed Feb 23, 2024
1 parent c319861 commit 730c236
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
11 changes: 7 additions & 4 deletions internal/model/actor.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package model

type Actor struct {
ActorType string `json:"actor_type"`
Id string `json:"id"`
PublicKey string `json:"public_key"`
PrivateKey string `json:"private_key"`
ActorType string `json:"actor_type"`
Id string `json:"id"`
DisplayName string `json:"display_name"`
Bio string `json:"bio"`
MatrixUserId string `json:"matrix_user_id"`
PublicKey string `json:"public_key"`
PrivateKey string `json:"private_key"`
}
16 changes: 9 additions & 7 deletions test-send.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ func main() {
defer cancel()

body := `
{
"actor_type": "user",
"id": "[email protected]",
"private_key": "some super secure string",
"public_key": "the public key"
}
`
{
"actor_type": "user",
"id": "[email protected]",
"display_name": "Lazyguru",
"bio": "I am a lazy guru",
"matrix_user_id": "@lazyguru:discuss.online",
"private_key": "some super secure string",
"public_key": "the public key"
}`
err = ch.ExchangeDeclare(
"federation", // name
"direct", // type
Expand Down

0 comments on commit 730c236

Please sign in to comment.