-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to retrieve a user's devices
- Loading branch information
Jonathan Cooper
committed
May 4, 2020
1 parent
6271f05
commit ae1ce66
Showing
4 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
package wireguardhttps | ||
|
||
import ( | ||
"net" | ||
"net/url" | ||
) | ||
|
||
|
||
type DeviceRequest struct{ | ||
type DeviceRequest struct { | ||
Name string `json:"name"` | ||
OS string `json:"os"` | ||
OS string `json:"os"` | ||
} | ||
|
||
type PeerConfigINI struct{ | ||
PublicKey string | ||
type PeerConfigINI struct { | ||
PublicKey string | ||
PrivateKey string | ||
AllowedIPs []string | ||
Addresses []string | ||
Addresses []string | ||
DNSServers []string | ||
ServerName string | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters