synchronized, returns a copy
(linkId baseds.LinkId)
| 592 | |
| 593 | // synchronized, returns a copy |
| 594 | func (router *WshRouter) getLinkMeta(linkId baseds.LinkId) *linkMeta { |
| 595 | if linkId == baseds.NoLinkId { |
| 596 | return nil |
| 597 | } |
| 598 | router.lock.Lock() |
| 599 | defer router.lock.Unlock() |
| 600 | lm := router.linkMap[linkId] |
| 601 | if lm == nil { |
| 602 | return nil |
| 603 | } |
| 604 | lmCopy := *lm |
| 605 | return &lmCopy |
| 606 | } |
| 607 | |
| 608 | // synchronized, returns a copy |
| 609 | func (router *WshRouter) getLinkForRoute(routeId string) *linkMeta { |
no outgoing calls
no test coverage detected