mirror of
https://github.com/fosrl/newt.git
synced 2025-05-12 21:20:39 +01:00
22 lines
490 B
Go
22 lines
490 B
Go
package websocket
|
|
|
|
type Config struct {
|
|
NewtID string `json:"newtId"`
|
|
Secret string `json:"secret"`
|
|
Token string `json:"token"`
|
|
Endpoint string `json:"endpoint"`
|
|
TlsClientCert string `json:"tlsClientCert"`
|
|
}
|
|
|
|
type TokenResponse struct {
|
|
Data struct {
|
|
Token string `json:"token"`
|
|
} `json:"data"`
|
|
Success bool `json:"success"`
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type WSMessage struct {
|
|
Type string `json:"type"`
|
|
Data interface{} `json:"data"`
|
|
}
|