faux

package
v0.0.0-...-1ba6274 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Faux

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

func New

func New() *Faux

func (*Faux) BeginAuth

func (f *Faux) BeginAuth(state string) (goth.Session, error)

func (*Faux) Debug

func (f *Faux) Debug(d bool)

func (*Faux) Name

func (f *Faux) Name() string

func (*Faux) RefreshToken

func (f *Faux) RefreshToken(rt string) (*oauth2.Token, error)

func (*Faux) RefreshTokenAvailable

func (f *Faux) RefreshTokenAvailable() bool

func (*Faux) SetName

func (f *Faux) SetName(name string)

func (*Faux) UnmarshalSession

func (f *Faux) UnmarshalSession(session string) (Session, error)

type Session

type Session struct {
	ID          string
	Name        string
	Email       string
	AuthURL     string
	AccessToken string
}

func (*Session) Authorize

func (s *Session) Authorize(goth.Provider, goth.Params) (string, error)

func (*Session) GetAuthURL

func (s *Session) GetAuthURL() (string, error)

func (*Session) Marshal

func (s *Session) Marshal() string

Jump to

Keyboard shortcuts

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