mirror of
https://github.com/hanzozt/zt.git
synced 2026-10-30 15:04:55 +00:00
Global rebrand of all OpenZiti references to Hanzo ZT: - Go module paths: github.com/openziti/* → github.com/hanzozt/* - Docker images: openziti/* → hanzozt/* - Java packages: org.openziti.* → org.hanzozt.* - Brand: OpenZiti → Hanzo ZT - URLs: openziti.io → hanzozt.dev
49 lines
1.5 KiB
Go
49 lines
1.5 KiB
Go
package inspect
|
|
|
|
import "github.com/hanzozt/sdk-golang/xgress"
|
|
|
|
const (
|
|
RouterCircuitsKey = "router-circuits"
|
|
RouterEdgeCircuitsKey = "router-edge-circuits"
|
|
RouterSdkCircuitsKey = "router-sdk-circuits"
|
|
)
|
|
|
|
type ForwarderCircuits struct {
|
|
Circuits map[string]*CircuitDetail `json:"circuits"`
|
|
}
|
|
|
|
type CircuitDetail struct {
|
|
Id string `json:"id"`
|
|
TimeSinceActivity string `json:"timeSinceActivity"`
|
|
CtrlId string `json:"ctrlId"`
|
|
Routes map[string]string `json:"routes"`
|
|
Destinations map[string]string `json:"destinations"`
|
|
}
|
|
|
|
type EdgeXgFwdInspectDetail struct {
|
|
ChannelConnId string `json:"channelConnId"`
|
|
IdentityId string `json:"identityId"`
|
|
CircuitId string `json:"circuitId"`
|
|
Originator string `json:"originator"`
|
|
Address string `json:"address"`
|
|
CtrlId string `json:"ctrlId"`
|
|
EdgeConnId uint32 `json:"edgeConnId"`
|
|
TimeSinceLastLinkRx string `json:"timeSinceLastLinkRx"`
|
|
Tags map[string]string `json:"tags"`
|
|
}
|
|
|
|
type EdgeListenerCircuits struct {
|
|
Circuits map[string]*EdgeXgFwdInspectDetail `json:"circuits"`
|
|
}
|
|
|
|
type SdkCircuits struct {
|
|
Circuits map[string]*SdkCircuitDetail `json:"circuits"`
|
|
Errors []string `json:"errors,omitempty"`
|
|
}
|
|
|
|
type SdkCircuitDetail struct {
|
|
IdentityId string `json:"identityId"`
|
|
ChannelConnId string `json:"channelConnId"`
|
|
*xgress.CircuitDetail
|
|
}
|