17 lines
262 B
Go
17 lines
262 B
Go
package api
|
|
|
|
type User struct {
|
|
ID string
|
|
PasswordHash []byte
|
|
}
|
|
|
|
type Device struct {
|
|
ID string
|
|
PublicKey []byte
|
|
}
|
|
|
|
type Clipboard struct {
|
|
SenderPublicKey []byte
|
|
// Payloads maps DeviceIDs to encrypted data.
|
|
Payloads map[string][]byte
|
|
}
|