(name string, under OAuth2Config)
| 148 | } |
| 149 | |
| 150 | func (f *Factory) New(name string, under OAuth2Config) *Config { |
| 151 | return &Config{ |
| 152 | name: name, |
| 153 | underlying: under, |
| 154 | metrics: f.metrics, |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | // NewGithub returns a new instrumented oauth2 config for github. It tracks |
| 159 | // rate limits as well as just the external request counts. |
no outgoing calls