data

package
Version: 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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Administrator

type Administrator struct {
	Logged
	Form
	User user.User
}

func NewAdministrator

func NewAdministrator(username types.Name, menu Menu) Administrator

type Administrators

type Administrators struct {
	Logged
	Users []user.User
}

func NewAdministrators

func NewAdministrators(username types.Name, menu Menu, users []user.User) Administrators

type Class

type Class struct {
	Logged
	Form
	Class class.Class
}

func NewClass

func NewClass(username types.Name, menu Menu) Class

type Client

type Client struct {
	Logged
	Form
	Client      client.Client
	Enrollments []enrollment.Enrollment
	Payments    []payment.Payment
}

func NewClient

func NewClient(username types.Name, menu Menu) Client

type Clients

type Clients struct {
	Logged
	Clients []client.Client
}

func NewClients

func NewClients(username types.Name, menu Menu, clients []client.Client) Clients

type Enrollment

type Enrollment struct {
	Logged
	Form
	Enrollment enrollment.Enrollment
	Clients    []client.Client
	Groups     []group.Group
	Back       string
}

func NewEnrollment

func NewEnrollment(username types.Name, menu Menu) Enrollment

type Form

type Form struct {
	FieldMessage map[string]string
	Message      string
}

func NewForm

func NewForm() Form

func (*Form) AddFieldMessage

func (f *Form) AddFieldMessage(field, message string)

func (*Form) AddMessage

func (f *Form) AddMessage(message string)

type Former

type Former interface {
	AddFieldMessage(field, message string)
	AddMessage(message string)
}

type Group

type Group struct {
	Logged
	Form
	Group       group.Group
	Places      []place.Place
	Enrollments []enrollment.Enrollment
}

func NewGroup

func NewGroup(username types.Name, menu Menu) Group

type Groups

type Groups struct {
	Logged
	Groups []group.Group
}

func NewGroups

func NewGroups(username types.Name, menu Menu, groups []group.Group) Groups

type InternalServerError

type InternalServerError struct {
	Ticket string
}

func NewInternalServerError

func NewInternalServerError(ticket string) InternalServerError

type Logged

type Logged struct {
	Username string
	Menu     string
	Time     string
}

func NewLogged

func NewLogged(username types.Name, menu Menu) Logged

type Login

type Login struct {
	Form
	Email string
}

func NewLogin

func NewLogin(email string) Login
type Menu string
const (
	MenuSchedule       Menu = "schedule"
	MenuReports        Menu = "reports"
	MenuGroups         Menu = "groups"
	MenuClients        Menu = "clients"
	MenuPlaces         Menu = "places"
	MenuAdministrators Menu = "administrators"
)

type Place

type Place struct {
	Logged
	Form
	Place place.Place
}

func NewPlace

func NewPlace(username types.Name, menu Menu) Place

type Places

type Places struct {
	Logged
	Places []place.Place
}

func NewPlaces

func NewPlaces(username types.Name, menu Menu, places []place.Place) Places

type Reports

type Reports struct {
	Logged
	Incomings []reports.Incoming
}

func NewReports

func NewReports(username types.Name, menu Menu, incomings []reports.Incoming) Reports

type Schedule

type Schedule struct {
	Logged
	Begin    time.Time
	End      time.Time
	Classes  []class.Class
	Next     time.Time
	Previous time.Time
}

func NewSchedule

func NewSchedule(username types.Name, menu Menu, begin, end time.Time,
	classes []class.Class, next, previous time.Time) Schedule

Jump to

Keyboard shortcuts

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