models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: NCSA Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminRole     = "Admin"
	StaffRole     = "Staff"
	MentorRole    = "Mentor"
	ApplicantRole = "Applicant"
	AttendeeRole  = "Attendee"
	UserRole      = "User"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllRegistration

type AllRegistration struct {
	Attendee *UserRegistration   `json:"attendee"`
	Mentor   *MentorRegistration `json:"mentor"`
}

type FilteredRegistrations

type FilteredRegistrations struct {
	Registrations []UserRegistration `json:"registrations"`
}

type MailList

type MailList struct {
	ID      string   `json:"id"`
	UserIDs []string `json:"userIds"`
}

type MailOrder

type MailOrder struct {
	IDs      []string `json:"ids"`
	Template string   `json:"template"`
}

type MentorRegistration

type MentorRegistration = datastore.DataStore

type Role

type Role = string

type UserDecision

type UserDecision struct {
	ID     string `json:"id"`
	Status string `json:"status"`
}

type UserInfo

type UserInfo struct {
	ID        string `json:"id"`
	Username  string `json:"username"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Email     string `json:"email"`
}

type UserRegistration

type UserRegistration = datastore.DataStore

type UserRoleModification

type UserRoleModification struct {
	ID   string `json:"id"`
	Role string `json:"role"`
}

type UserRoles

type UserRoles struct {
	ID    string   `json:"id"`
	Roles []string `json:"roles"`
}

Jump to

Keyboard shortcuts

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