File: openid.go

package info (click to toggle)
golang-github-yohcop-openid-go 0.0~git20170901.0.cfc72ed-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 184 kB
  • sloc: makefile: 3
file content (15 lines) | stat: -rw-r--r-- 246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)