github

package
v0.0.0-...-7c5da1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient HTTPClient) *Client

func (*Client) GetAuthenticatedUser

func (c *Client) GetAuthenticatedUser() (auth.ProviderUser, error)

type HTTPClient

type HTTPClient interface {
	Get(url string) (resp *http.Response, err error)
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(clientID, clientSecret string) *Provider

func (*Provider) AuthURL

func (p *Provider) AuthURL(state string) string

func (*Provider) AuthenticatedUser

func (p *Provider) AuthenticatedUser(ctx context.Context, code string) (auth.ProviderUser, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL