underbbs/models/settings.go

25 lines
681 B
Go
Raw Permalink Normal View History

2024-05-13 00:26:44 +00:00
package models
2025-01-05 03:45:22 +00:00
import (
"crypto"
)
type GlobalSettings struct {
ApKey *string `json:"apkey",omitempty`
ApDomain *string `json:"apDomain",omitempty`
Port int `json:"port"`
Adapters []Settings `json:"adapters"`
}
2024-05-13 00:26:44 +00:00
type Settings struct {
2024-05-19 20:42:28 +00:00
Nickname string
Protocol string
2025-01-05 03:45:22 +00:00
PrivKey *string `json:"privkey",omitempty`
Relays []string `json:"relays",omitempty`
Server *string `json:"server",omitempty`
ApiKey *string `json:"apiKey",omitempty`
Handle *string `json:"handle",omitempty`
Password *string `json:"password",omitempty`
ApSigner *crypto.PrivateKey `json:"_",omitempty`
2024-05-19 20:42:28 +00:00
}