moodle

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MyCourses = Branch{
		ID:   "expandable_branch_0_mycourses",
		Name: "My courses",
		Key:  "mycourses",
		Type: Root,
	}

	Courses = Branch{
		ID:   "expandable_branch_0_courses",
		Name: "Courses",
		Key:  "courses",
		Type: Root,
	}

	Home = Branch{
		Children: []Branch{Courses, MyCourses},
		Type:     Root,
	}
)

Functions

This section is empty.

Types

type Branch

type Branch struct {
	ID          string
	Name        string
	Type        Type
	Key         string
	Title       string
	Link        string
	HasChildren bool
	Children    []Branch
	Parent      *Branch
}

func (*Branch) IsEmpty

func (b *Branch) IsEmpty() bool

func (*Branch) IsViewable

func (b *Branch) IsViewable() bool

func (*Branch) SetChildren

func (b *Branch) SetChildren(index int, child *Branch)

func (*Branch) String

func (b *Branch) String() string

type Type

type Type int

Jump to

Keyboard shortcuts

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