-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add -dryrun flag, add 'just dryrun', small refactoring
- Loading branch information
Showing
4 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package models | ||
|
||
// DeletedMediaResponse is a struct that holds the response from the Synapse server, | ||
// note that the included fields are only the ones that are needed for this application. | ||
type DeletedMediaResponse struct { | ||
Total int `json:"total"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package models | ||
|
||
// Account is a struct that holds the information about a user account, | ||
// note that the included fields are only the ones that are needed for this application. | ||
type Account struct { | ||
Name string `json:"name"` | ||
IsGuest bool `json:"is_guest"` | ||
Admin bool `json:"admin"` | ||
Deactivated bool `json:"deactivated"` | ||
Locked bool `json:"locked"` | ||
CreationTs int64 `json:"creation_ts"` | ||
} | ||
|
||
// AccountsResponse is a struct that holds the response from the Synapse server | ||
type AccountsResponse struct { | ||
Accounts []*Account `json:"users"` | ||
NextToken string `json:"next_token"` | ||
Total int `json:"total"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters