mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-24 16:41:30 +02:00
26 lines
661 B
Go
26 lines
661 B
Go
package nmdata
|
|
|
|
// Service is the slim twin of the reverse-proxy service.Service. It carries
|
|
// only the state proxy-policy injection reads: the persisted reverse-proxy
|
|
// services and the in-memory ones synthesised from agent-network state, which
|
|
// are never written to the database.
|
|
type Service struct {
|
|
ID string
|
|
Enabled bool
|
|
Private bool
|
|
Mode string
|
|
ProxyCluster string
|
|
AccessGroups []string
|
|
Targets []*ServiceTarget
|
|
}
|
|
|
|
// ServiceTarget is the slim twin of service.Target.
|
|
type ServiceTarget struct {
|
|
Enabled bool
|
|
Path string
|
|
Port uint16
|
|
Protocol string
|
|
TargetID string
|
|
TargetType string
|
|
}
|