cloudflared-mirror/edgediscovery/allregions/usedby.go

15 lines
189 B
Go
Raw Normal View History

package allregions
type UsedBy struct {
ConnID int
Used bool
}
func InUse(connID int) UsedBy {
return UsedBy{ConnID: connID, Used: true}
}
func Unused() UsedBy {
return UsedBy{}
}