agentViewFromIdentity maps the storage record to the public view.
(ag *identity.AgentIdentity)
| 67 | |
| 68 | // agentViewFromIdentity maps the storage record to the public view. |
| 69 | func agentViewFromIdentity(ag *identity.AgentIdentity) AgentView { |
| 70 | return AgentView{ |
| 71 | ID: ag.ID, |
| 72 | Domain: ag.Domain, |
| 73 | Email: ag.EmailAddress(), |
| 74 | Name: ag.Name, |
| 75 | DomainVerified: ag.DomainVerified, |
| 76 | CreatedAt: ag.CreatedAt, |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | // listAgentsOutput uses the shared Page[T] envelope (items + next_cursor) so |
| 81 | // the list has a pagination slot from GA day one. next_cursor is null at launch |
no test coverage detected