-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tit Petric
committed
Oct 9, 2024
1 parent
4edf1ee
commit 20045ab
Showing
3 changed files
with
62 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package model | ||
package apidef | ||
|
||
type ( | ||
HealthCheckStatus 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package apidef | ||
|
||
type InboundData struct { | ||
KeyName string | ||
Value string | ||
SessionState string | ||
Timeout int64 | ||
Per int64 | ||
Expire int64 | ||
} | ||
|
||
type DefRequest struct { | ||
OrgId string | ||
Tags []string | ||
LoadOAS bool | ||
} | ||
|
||
type GroupLoginRequest struct { | ||
UserKey string | ||
GroupID string | ||
ForceSync bool | ||
Node []byte | ||
} | ||
|
||
// HostDetails contains information about a host machine, | ||
// including its hostname, process ID (PID), and IP address. | ||
type HostDetails struct { | ||
Hostname string | ||
PID int | ||
Address string | ||
} | ||
|
||
type NodeData struct { | ||
NodeID string `json:"node_id"` | ||
APIKey string `json:"api_key"` | ||
GroupID string `json:"group_id"` | ||
NodeVersion string `json:"node_version"` | ||
TTL int64 `json:"ttl"` | ||
NodeIsSegmented bool `json:"node_is_segmented"` | ||
Tags []string `json:"tags"` | ||
Health map[string]HealthCheckItem `json:"health"` | ||
Stats GWStats `json:"stats"` | ||
HostDetails HostDetails `json:"host_details"` | ||
} | ||
|
||
type GWStats struct { | ||
APIsCount int `json:"apis_count"` | ||
PoliciesCount int `json:"policies_count"` | ||
} | ||
|
||
type GroupKeySpaceRequest struct { | ||
OrgID string | ||
GroupID string | ||
} | ||
|
||
type KeysValuesPair struct { | ||
Keys []string | ||
Values []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