browser

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 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 added in v2.4.7

func Reinstall(browser Browser, verbose bool) error

Reinstall cleans and reinstalls the browser.

Types

type Browser added in v2.3.0

type Browser int
const (
	Bfirefox Browser = iota
	Bchromium
)

func (*Browser) Set added in v2.3.0

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

func (Browser) String added in v2.3.0

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 added in v2.3.0

type Option func(*Client)

func OptBrowser added in v2.3.0

func OptBrowser(b Browser) Option

func OptTimeout added in v2.4.4

func OptTimeout(d time.Duration) Option

func OptVerbose added in v2.5.0

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