session

package
v0.0.0-...-c36d36f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 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 Session

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

*

func NewSession

func NewSession() (*Session, error)

NewSession a session to control the browser creation, creates a new browser if one is not running

func (*Session) AddTab

func (s *Session) AddTab() (context.Context, context.CancelFunc)

AddTab return another tab to navigate to

func (*Session) ApplySettings

func (s *Session) ApplySettings(ctx context.Context) error

ApplySettings applies the preferences saved by the user such as shutting off mute and

func (*Session) Login

func (s *Session) Login(ctx context.Context) error

login navigates to https://photos.google.com/ and waits for the user to have authenticated (or for 2 minutes to have elapsed).

func (*Session) NewContext

func (s *Session) NewContext() (context.Context, context.CancelFunc)

Build a NewSession to open a meet uri

func (*Session) Open

func (s *Session) Open(ctx context.Context, meetURI string) error

Open navigates to the meeturn uri and waits for the body to load. Then turns off the mic, turns off the camera and joins the meeting

func (*Session) Shutdown

func (s *Session) Shutdown()

Shutdown calls the parent context to cancel

func (*Session) Wait

func (s *Session) Wait(ctx context.Context)

wait for the browser to exit

Jump to

Keyboard shortcuts

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