Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.