google

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Key        flow.Key = "google"
	GCInterval          = time.Minute
	Expiry              = time.Minute * 5
)

Variables

View Source
var (
	ErrInvalidResponse = errors.New("invalid response")
)

Functions

This section is empty.

Types

type Google

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

func New

func New(storage storage.Google, options *Options, logger *zerolog.Logger) *Google

func (*Google) CompleteFlow

func (g *Google) CompleteFlow(ctx context.Context, code string, state string) (string, string, string, string, error)

func (*Google) Key

func (g *Google) Key() flow.Key

func (*Google) Start

func (g *Google) Start() error

func (*Google) StartFlow

func (g *Google) StartFlow(ctx context.Context, nextURL string, organization string, deviceIdentifier string) (string, error)

func (*Google) Stop

func (g *Google) Stop() error

type Options

type Options struct {
	ClientID     string
	ClientSecret string
	Redirect     string
}

Jump to

Keyboard shortcuts

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