DTO

package
v0.0.0-...-9bc97f2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Id              uint     `json:"id"`
	Name            string   `json:"name"`
	StartDate       string   `json:"startDate"`
	EndDate         string   `json:"endDate"`
	Address         string   `json:"address"`
	Credit          float64  `json:"credit"`
	Constraints     []string `json:"constraints"`
	Details         string   `json:"details"`
	MaxParticipants uint     `json:"maxParticipants"`
	Status          string   `json:"status"`
	Type            string   `json:"type"`
	Group           string   `json:"group"`
	AttachedProgram uint     `json:"attachedProgram"`
}

func (*Event) CheckFields

func (e *Event) CheckFields() (err string)

type Program

type Program struct {
	Id                   uint   `json:"id"`
	Name                 string `json:"name"`
	Description          string `json:"description"`
	StartDate            string `json:"startDate"`
	EndDate              string `json:"endDate"`
	NbrOfHoursToComplete int    `json:"nbrOfHoursToComplete"`
	EnrolledStudents     []uint `json:"enrolledStudent"`
}

func (Program) CheckField

func (p Program) CheckField() (err string)

type UserMsg

type UserMsg struct {
	Information string
	Error       string
}

Jump to

Keyboard shortcuts

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