model

package
v0.0.0-...-4a67c56 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: NCSA Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupCommittees = "committees"
	GroupSIGs       = "sigs"

	GroupTop4      = "Top4"
	GroupAdmin     = "Admin"
	GroupCorporate = "Corporate"
)
View Source
const (
	UserMarkBasic     = "BASIC"
	UserMarkPaid      = "PAID"
	UserMarkRecruiter = "RECRUITER"
)

Variables

View Source
var (
	GroupValidCommittees = []string{GroupTop4, GroupAdmin, GroupCorporate}
)
View Source
var ResumeValidOptions = ResumeOptions{
	GraduationMonths: []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
	GraduationYears:  []int{2020, 2021, 2022, 2023, 2024, 2025},
	Degrees:          []string{"Bachelors", "Masters", "PhD"},
	Seekings:         []string{"Internship", "Co Op", "Full Time"},
	Majors:           []string{"Computer Science", "Computer Engineering", "Electrical Enginering", "Mathematics", "Other Engineering", "Other Sciences", "Other"},
}

Functions

This section is empty.

Types

type About

type About struct {
	Content    []string     `yaml:"content"`
	Facilities []Facility   `yaml:"facilites"`
	History    AboutHistory `yaml:"history"`
	Links      []AboutLink  `yaml:"links"`
}

type AboutHistory

type AboutHistory struct {
	Events []AboutHistoryEvent `yaml:"events"`
}

type AboutHistoryEvent

type AboutHistoryEvent struct {
	Year  int    `yaml:"year"`
	Title string `yaml:"title"`
	Body  string `yaml:"body"`
}
type AboutLink struct {
	Name string `yaml:"name"`
	Uri  string `yaml:"uri"`
}

type Event

type Event struct {
	Name           string         `yaml:"name"`
	Description    string         `yaml:"description"`
	LogoUri        string         `yaml:"logoUri"`
	Website        string         `yaml:"website"`
	WebsiteArchive []EventWebsite `yaml:"websiteArchive"`
}

type EventWebsite

type EventWebsite struct {
	Year int    `yaml:"year"`
	Uri  string `yaml:"uri"`
}

type Facility

type Facility struct {
	Location    string `yaml:"location"`
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
}

type Group

type Group struct {
	Name        string        `yaml:"name"`
	Description string        `yaml:"description"`
	Chairs      string        `yaml:"chairs"`
	Meetings    []Meeting     `yaml:"meetings"`
	Members     []GroupMember `yaml:"members"`
	Website     string        `yaml:"website"`
	Email       string        `yaml:"email"`
}

type GroupMember

type GroupMember struct {
	Username    string `yaml:"username"`
	Role        string `yaml:"role"`
	DisplayName string `yaml:"displayName"`
	Email       string `yaml:"email"`
}

type Home

type Home struct {
	Entries []HomeItem `yaml:"entries"`
	Cards   []HomeItem `yaml:"cards"`
}

type HomeItem

type HomeItem struct {
	Title string   `yaml:"title"`
	Body  string   `yaml:"body"`
	Link  HomeLink `yaml:"link"`
}
type HomeLink struct {
	Name string `yaml:"name"`
	Uri  string `yaml:"uri"`
}

type Intranet

type Intranet struct {
	Cards []IntranetCard `yaml:"cards"`
	Links []IntranetLink `yaml:"links"`
}

type IntranetCard

type IntranetCard struct {
	Title       string   `yaml:"title"`
	Description string   `yaml:"description"`
	Uri         string   `yaml:"uri"`
	Groups      []string `yaml:"groups"`
	Marks       []string `yaml:"marks"`
}
type IntranetLink struct {
	Name string `yaml:"name"`
	Uri  string `yaml:"uri"`
}

type Meeting

type Meeting struct {
	Topic           string `yaml:"topic"`
	MeetingTime     string `yaml:"meetingTime"`
	MeetingLocation string `yaml:"meetingLocation"`
}

type Resume

type Resume struct {
	Username        string `db:"username" json:"username"`
	FirstName       string `db:"first_name" json:"first_name"`
	LastName        string `db:"last_name" json:"last_name"`
	Email           string `db:"email" json:"email"`
	GraduationMonth int    `db:"graduation_month" json:"graduation_month"`
	GraduationYear  int    `db:"graduation_year" json:"graduation_year"`
	Major           string `db:"major" json:"major"`
	Degree          string `db:"degree" json:"degree"`
	Seeking         string `db:"seeking" json:"seeking"`
	BlobKey         string `db:"blob_key" json:"blob_key"`
	Approved        bool   `db:"approved" json:"approved"`
	UpdatedAt       int64  `db:"updated_at" json:"updated_at"`
}

type ResumeOptions

type ResumeOptions struct {
	GraduationMonths []int
	GraduationYears  []int
	Degrees          []string
	Seekings         []string
	Majors           []string
}

type Sponsors

type Sponsors struct {
	Pitch       string               `yaml:"pitch"`
	Contact     string               `yaml:"contact"`
	Email       string               `yaml:"email"`
	GetInvolved string               `yaml:"getInvolved"`
	Packages    []SponsorshipPackage `yaml:"packages"`
}

type SponsorshipPackage

type SponsorshipPackage struct {
	Name  string   `yaml:"name"`
	Price string   `yaml:"price"`
	Items []string `yaml:"items"`
}

type Token

type Token struct {
	Username   string `db:"username" json:"username"`
	Token      string `db:"token" json:"token"`
	Expiration int64  `db:"expiration" json:"expiration"`
}

type User

type User struct {
	Username  string `db:"username" json:"username"`
	FirstName string `db:"first_name" json:"first_name"`
	LastName  string `db:"last_name" json:"last_name"`
	Mark      string `db:"mark" json:"mark"`
	CreatedAt int64  `db:"created_at" json:"created_at"`
}

Jump to

Keyboard shortcuts

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