mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 20:57:32 +08:00
add mcp bridge (#107)
This commit is contained in:
30
registry/memory/model.go
Normal file
30
registry/memory/model.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package memory
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"istio.io/api/networking/v1alpha3"
|
||||
)
|
||||
|
||||
type ServiceEntryWrapper struct {
|
||||
ServiceName string
|
||||
ServiceEntry *v1alpha3.ServiceEntry
|
||||
Suffix string
|
||||
RegistryType string
|
||||
createTime time.Time
|
||||
}
|
||||
|
||||
func (sew *ServiceEntryWrapper) DeepCopy() *ServiceEntryWrapper {
|
||||
return &ServiceEntryWrapper{
|
||||
ServiceEntry: sew.ServiceEntry.DeepCopy(),
|
||||
createTime: sew.GetCreateTime(),
|
||||
}
|
||||
}
|
||||
|
||||
func (sew *ServiceEntryWrapper) SetCreateTime(createTime time.Time) {
|
||||
sew.createTime = createTime
|
||||
}
|
||||
|
||||
func (sew *ServiceEntryWrapper) GetCreateTime() time.Time {
|
||||
return sew.createTime
|
||||
}
|
||||
Reference in New Issue
Block a user