2021-07-11 12:49:31 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
type AccessToken struct {
|
|
|
|
ServerConfig
|
|
|
|
ClientConfig
|
|
|
|
WG
|
|
|
|
}
|
|
|
|
|
|
|
|
type ClientConfig struct {
|
2021-10-09 03:07:12 +08:00
|
|
|
Network string `json:"network"`
|
|
|
|
Key string `json:"key"`
|
|
|
|
LocalRange string `json:"localrange"`
|
2021-07-11 12:49:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type ServerConfig struct {
|
2021-10-09 03:07:12 +08:00
|
|
|
CoreDNSAddr string `json:"corednsaddr"`
|
|
|
|
APIConnString string `json:"apiconn"`
|
|
|
|
APIHost string `json:"apihost"`
|
|
|
|
APIPort string `json:"apiport"`
|
|
|
|
GRPCConnString string `json:"grpcconn"`
|
|
|
|
GRPCHost string `json:"grpchost"`
|
|
|
|
GRPCPort string `json:"grpcport"`
|
|
|
|
GRPCSSL string `json:"grpcssl"`
|
|
|
|
CheckinInterval string `json:"checkininterval"`
|
2021-07-11 12:49:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type WG struct {
|
2021-10-09 03:07:12 +08:00
|
|
|
GRPCWireGuard string `json:"grpcwg"`
|
|
|
|
GRPCWGAddress string `json:"grpcwgaddr"`
|
|
|
|
GRPCWGPort string `json:"grpcwgport"`
|
|
|
|
GRPCWGPubKey string `json:"grpcwgpubkey"`
|
|
|
|
GRPCWGEndpoint string `json:"grpcwgendpoint"`
|
2021-07-11 12:49:31 +08:00
|
|
|
}
|