client

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: 0BSD Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Moodle

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

Moodle struct represents single moodle instance

func NewMoodle

func NewMoodle(hostname string, username string, password string, database string) (moodle *Moodle, err error)

func (*Moodle) GetStorageStats

func (m *Moodle) GetStorageStats() (stats *StorageStats, err error)

Single Moodle Funcs

func (*Moodle) GetUserStats

func (m *Moodle) GetUserStats() (stats *UserStats, err error)

Single Moodle Funcs

func (Moodle) String

func (m Moodle) String() string

type MoodleList

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

List of Moodle instances

func NewMoodleList

func NewMoodleList(hostname string, username string, password string) (list MoodleList, err error)

func (*MoodleList) GetStorageStats

func (list *MoodleList) GetStorageStats() (statsList []*StorageStats, err error)

Moodle List Funcs

func (*MoodleList) GetUserStats

func (list *MoodleList) GetUserStats() (statsList []*UserStats, err error)

Moodle List Funcs

func (MoodleList) String

func (list MoodleList) String() (str string)

type StorageStats

type StorageStats struct {
	BytesAssignSubmission map[int]int
	BytesBackup           map[int]int
	BytesBackupAuto       map[int]int
	BytesAll              int64
	// contains filtered or unexported fields
}

func (StorageStats) MoodleShortName

func (stats StorageStats) MoodleShortName() string

type UserStats

type UserStats struct {
	LiveUsers                        int
	ExpectedUpcomingExamParticipants int
	// contains filtered or unexported fields
}

func (UserStats) MoodleShortName

func (stats UserStats) MoodleShortName() string

Jump to

Keyboard shortcuts

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