mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
review fix
This commit is contained in:
parent
61738782c0
commit
75e9476026
3 changed files with 20 additions and 17 deletions
|
|
@ -15,15 +15,16 @@ import (
|
|||
|
||||
// JSON-serializable input and output types for the script
|
||||
type AuthScriptInput struct {
|
||||
AccountName string
|
||||
Passphrase string
|
||||
Certfp string
|
||||
AccountName string `json:"accountName,omitempty"`
|
||||
Passphrase string `json:"passphrase,omitempty"`
|
||||
Certfp string `json:"certfp,omitempty"`
|
||||
IP string `json:"ip,omitempty"`
|
||||
}
|
||||
|
||||
type AuthScriptOutput struct {
|
||||
AccountName string
|
||||
Success bool
|
||||
Error string
|
||||
AccountName string `json:"accountName"`
|
||||
Success bool `json:"success"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
// internal tupling of output and error for passing over a channel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue