mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 02:41:34 +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
|
|
}
|