| 37 | } |
| 38 | |
| 39 | type peer struct { |
| 40 | name string |
| 41 | roles []ttnpb.ClusterRole |
| 42 | tags map[string]string |
| 43 | |
| 44 | target string |
| 45 | tlsServerName string |
| 46 | |
| 47 | ctx context.Context |
| 48 | cancel context.CancelFunc |
| 49 | conn *grpc.ClientConn |
| 50 | connErr error |
| 51 | } |
| 52 | |
| 53 | func (p *peer) Name() string { return p.name } |
| 54 | func (p *peer) Conn() (*grpc.ClientConn, error) { return p.conn, p.connErr } |
nothing calls this directly
no outgoing calls
no test coverage detected