(e *api.Info)
| 60 | } |
| 61 | |
| 62 | func FromEntityInfo(e *api.Info) *Info { |
| 63 | upstream := e.Upstream |
| 64 | if upstream == "" { |
| 65 | upstream = e.Service |
| 66 | } |
| 67 | return &Info{ |
| 68 | UUID: e.UUID, |
| 69 | Name: e.Name, |
| 70 | Description: e.Description, |
| 71 | CreateAt: e.CreateAt, |
| 72 | UpdateAt: e.UpdateAt, |
| 73 | Service: e.Service, |
| 74 | Team: e.Team, |
| 75 | Creator: e.Creator, |
| 76 | Updater: e.Updater, |
| 77 | Methods: e.Method, |
| 78 | Upstream: upstream, |
| 79 | Protocols: e.Protocol, |
| 80 | Path: e.Path, |
| 81 | Match: e.Match, |
| 82 | Disable: e.Disable, |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | type Kind string |
| 87 |