admin

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

Admin

Some helper tools

Usage

Requires --database flag for postgres usage (postgres://host:address/database string)

Commands
user - get a user by id
list - list all the users
chat - get a chat by id
chatUsers - get the chat users
messages - list messages in a chat
deleteMessage - delete a messsage
reset - reset username/password
Help
# list users
admin list

# get user by id
admin user [userID]

# get a chat by id
admin chat [chatID]

# get chat users by chat id
admin chatUsers [chatID]

# get messages by chat id
admin messages [chatID]

# delete a message by id
admin deleteMessage [messageID]

# reset password
admin reset [username] [password]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL