mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-25 10:12:37 +02:00
20 lines
388 B
Go
20 lines
388 B
Go
package piwigo
|
|
|
|
import "sync"
|
|
|
|
type Piwigo struct {
|
|
Url string `json:"url"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Token string `json:"token"`
|
|
|
|
mu sync.Mutex
|
|
}
|
|
|
|
type PiwigoResult struct {
|
|
Stat string `json:"stat"`
|
|
Err int `json:"err"`
|
|
ErrMessage string `json:"message"`
|
|
Result interface{} `json:"result"`
|
|
}
|