class

package
v0.0.0-...-a7a9960 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	Id       int
	Group    group.Group
	BeginAt  time.Time
	EndAt    time.Time
	Students []Student
	// contains filtered or unexported fields
}

type ClassService

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

func NewClassService

func NewClassService(sqler db.SQLer) ClassService

func (ClassService) FindAll

func (s ClassService) FindAll() ([]Class, error)

func (ClassService) FindBetweenDates

func (s ClassService) FindBetweenDates(begin, end time.Time) ([]Class, error)

func (ClassService) FindByGroupIdBetweenDates

func (s ClassService) FindByGroupIdBetweenDates(groupId int, begin, end time.Time) ([]Class, error)

func (ClassService) FindById

func (s ClassService) FindById(id int) (Class, error)

func (ClassService) Save

func (s ClassService) Save(ip net.IP, agent int, c *Class) error

type Student

type Student struct {
	Id         int
	Enrollment enrollment.Enrollment
	Attended   bool
	// contains filtered or unexported fields
}

type StudentService

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

func NewStudentService

func NewStudentService(sqler db.SQLer) StudentService

func (StudentService) FindAll

func (s StudentService) FindAll() ([]Student, error)

func (StudentService) FindById

func (s StudentService) FindById(id int) (Student, error)

func (StudentService) Save

func (s StudentService) Save(ip net.IP, agent int, student *Student, c Class) error

Jump to

Keyboard shortcuts

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