student

package
v0.0.0-...-eb9d81b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Student

type Student struct {
	Client  *http.Client
	Sesskey string
	Site    string
}

A Student represents a student

func New

func New(site *url.URL) (*Student, error)

New returns a new student

func (*Student) Download

func (s *Student) Download(b *moodle.Branch, p string) error

Download download

func (*Student) Login

func (s *Student) Login() error

Login ask credentials and login

func (*Student) LoginWith

func (s *Student) LoginWith(username string, password string) error

LoginWith login

func (*Student) String

func (s *Student) String() string

func (*Student) View

func (s *Student) View(b *moodle.Branch) (*moodle.Branch, error)

View get view

Jump to

Keyboard shortcuts

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