browser

package
v3.0.0-...-fed599b Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefLoginTimeout = 5 * time.Minute

DefLoginTimeout is the default Slack login timeout

Variables

View Source
var (
	ErrNoToken            = errors.New("no token found")
	ErrInvalidTokenValue  = errors.New("invalid token value")
	ErrInvalidContentType = errors.New("invalid content-type header")
)
View Source
var ErrBrowserClosed = errors.New("browser closed or timed out")

Functions

func Reinstall

func Reinstall(browser Browser, verbose bool) error

Reinstall cleans and reinstalls the browser.

Types

type Browser

type Browser int
const (
	Bfirefox Browser = iota
	Bchromium
)

func (*Browser) Set

func (e *Browser) Set(v string) error

func (Browser) String

func (i Browser) String() string

type Client

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

Client is the client for Browser Auth Provider.

func New

func New(workspace string, opts ...Option) (*Client, error)

New create new browser based client.

func (*Client) Authenticate

func (cl *Client) Authenticate(ctx context.Context) (string, []*http.Cookie, error)

type Option

type Option func(*Client)

func OptBrowser

func OptBrowser(b Browser) Option

func OptTimeout

func OptTimeout(d time.Duration) Option

func OptVerbose

func OptVerbose(b bool) Option

Directories

Path Synopsis
Package pwcompat provides a compatibility layer, so when the playwright-go team decides to break compatibility again, there's a place to write a workaround.
Package pwcompat provides a compatibility layer, so when the playwright-go team decides to break compatibility again, there's a place to write a workaround.

Jump to

Keyboard shortcuts

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