Factory allows us to have 1 set of metrics for all oauth2 providers. Primarily to avoid any prometheus errors registering duplicate metrics.
| 59 | // Factory allows us to have 1 set of metrics for all oauth2 providers. |
| 60 | // Primarily to avoid any prometheus errors registering duplicate metrics. |
| 61 | type Factory struct { |
| 62 | metrics *metrics |
| 63 | // optional replace now func |
| 64 | Now func() time.Time |
| 65 | } |
| 66 | |
| 67 | // metrics is the reusable metrics for all oauth2 providers. |
| 68 | type metrics struct { |
nothing calls this directly
no outgoing calls
no test coverage detected