edubase

package
v0.0.0-...-d715805 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Id    int
	Title string
}

type BookProvider

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

func NewBookProvider

func NewBookProvider(page playwright.Page, id int) *BookProvider

func (*BookProvider) GetTotalPages

func (b *BookProvider) GetTotalPages() (int, error)

func (*BookProvider) NextPage

func (b *BookProvider) NextPage() error

func (*BookProvider) Open

func (b *BookProvider) Open(page int) error

func (*BookProvider) Screenshot

func (b *BookProvider) Screenshot(filename string) error

type Credentials

type Credentials struct {
	Email    string
	Password string
}

func GetCredentials

func GetCredentials() (Credentials, error)

type LibraryProvider

type LibraryProvider struct {
	Books []Book
	// contains filtered or unexported fields
}

func NewLibraryProvider

func NewLibraryProvider(page playwright.Page) *LibraryProvider

func (*LibraryProvider) GetBooks

func (l *LibraryProvider) GetBooks() ([]Book, error)

type LoginProvider

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

func NewLoginProvider

func NewLoginProvider(page playwright.Page) *LoginProvider

func (*LoginProvider) Login

func (l *LoginProvider) Login(credentials Credentials) error

Jump to

Keyboard shortcuts

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