mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-04 16:29:37 +00:00
15 lines
246 B
Go
15 lines
246 B
Go
package openid
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type OpenID struct {
|
|
urlGetter httpGetter
|
|
}
|
|
|
|
func NewOpenID(client *http.Client) *OpenID {
|
|
return &OpenID{urlGetter: &defaultGetter{client: client}}
|
|
}
|
|
|
|
var defaultInstance = NewOpenID(http.DefaultClient)
|