mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 03:11:02 +01:00
22 lines
307 B
Go
22 lines
307 B
Go
package server
|
|
|
|
type ResourceType string
|
|
|
|
const (
|
|
// nolint
|
|
hostType ResourceType = "Host"
|
|
//nolint
|
|
subnetType ResourceType = "Subnet"
|
|
// nolint
|
|
domainType ResourceType = "Domain"
|
|
)
|
|
|
|
func (p ResourceType) String() string {
|
|
return string(p)
|
|
}
|
|
|
|
type Resource struct {
|
|
Type ResourceType
|
|
ID string
|
|
}
|