Documentation ¶
Index ¶
Constants ¶
View Source
const (
PROVIDER_GITHUB = "github"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountReader ¶
type AccountReader interface { Email() (*string, error) Username() (*string, error) Name() (*string, error) Avatar() (*string, error) Data() (interface{}, error) Token(authCode string) (*oauth2.Token, error) }
AccountReader type abstracts how data is retrieved from different providers
func MakeReader ¶
func MakeReader(provider string) (AccountReader, error)
MakeReader creates reader based on requested provider
func MakeReaderWithToken ¶
func MakeReaderWithToken(provider string, token oauth2.Token) (AccountReader, error)
MakeReaderWithToken creates reader based on requested provider with given token
Click to show internal directories.
Click to hide internal directories.