package
0.0.0-20210107091901-2acd0009cb76
Repository: https://github.com/askotjm/tiuku.git
Documentation: pkg.go.dev

# Functions

Add joined Segment to Students Segment List.
Joining Student user to segment status: works.
Toggle Archive status of course, it's segments and categories, true to archive, false to un-archive W0rks.
Get ArchivedSessions shared data.
Archive Segment on Student User Segments table T35T errorFlag fixed.
Archive Sessions to Archive_Tables and input user, segmentsId, populated ArchiveSessions T35T errorFlag fixed.
Auto creating catergories for segments status: works, but decided to go with one shared table for categories.
AutoCreateSegments for Courses comment: Modified code from CreateSegments.
No description provided by the author
Fix archive status of courses segments and categories Should work by working through courses and checking that their segments and categories have same archive status T0D0.
Check if Category matches Segment, returns True if match False if not W0rks errorFlag fixed.
Check if Faculty ID is available W0rks.
Check if Faculty User is in DB W0rks.
Test if required tables exist, should include all the necessary table or fail W0rks.
Check if ResourceID exists in users table.Input: user and resource_id to check T35T.
Check if segment is in schools archived table W1P.
Check if Sessions Category matches the Segment, returns True if match False if not W0rks , errorFlag fixed might need additional work.
Check if Student user exists student users table, returns StatusOk if W0rks.
Check if Student user doesn't exists in student users table, returns StatusOk if W0rks.
Check if content of request is JSON W0rks.
Check participation to Segment, returns how many found.
Check segment status from Segment table, archived or active W1P.
Check if Students segment is in the active or archived table, returns "archived" or "active" and 200 on success.
Establish connection to database W0rks.
Count how many rows there are in the table.
Create SegmentSessionTable for active segments for new student user.
Create new Category for Segment, return True on success, else False.
Create new course in Courses table.
Create new AnonID, generates, check if AnonID is already in use, tries 5 times to generate unique W0rks.
Create new Faculty User W0rks?.
Add/Start Session, Returns errorFlag False on success / True on Error T35T.
Create new Student User W0rks.
No description provided by the author
Create new Segment for course Status: works, needs to be re-worked to be without.
Create Archive SegmentSessionTable for student user.
For creating Segments table for new Student users and adding it to student_user list Status: Works.
For creating Archive Segment table for containing old segments Not in use but, Works comment: Most likely unnecessary.
Remove Session from Student User, SoftDelete W0rks.
Remove Student user From all segments participation T35T errorFlag fixed.
Remove Student user From segment participation W0rks errorFlag fixed.
Delete {student}, remove identifying data W0rks errorFlag fixed, Add Transfer of non-Archived Sessions and Remove from Segment.
GET all Active Sessions for Segment W1P, W0rks but remodel privacy handling? Move it to Session by Session setting.
Get All Archived Sessions for the {segment} from schools Archived Table W1P, needed to get archived sessions from schools Archived table.
Get Apartment info with ID number, 0 returns all apartments.
Get Campus info with ID number, 0 returns all campuses.
Find ALL categories belonging to segment, true include 0 defaults / false only segments own categories.
Get Category by ID number comment:.
Get Courses, default only active.
Find course by courseCode Status: Unclear.
Find course by id Status: Unclear.
Get degree with ID number, 0 returns all degrees.
Get Faculty Users, 0 returns all, with ID returns that User W0rks.
Desc: Get Faculty User by faculty user name W0rks.
Get segments of faculty user, active and with parameters, archived=yes and archived=only status: comment: New version as added Archived bool, makes search simpler, doesn't require reading Courses tables.
Get Last Student Session, returns Session with highest resource_id W0rks.
Get Status of Last Session.
Get School info with ID number, 0 returns all schools.
Find segment by id status:.
No description provided by the author
Get Student Session data with it's ID Works.
Get Students User, 0 returns all, with ID returns that User W0rks.
Get all Students Archived Sessions, with SegmentID 0 returns all Sessions Works.
Get Students participating on Segment W0rks.
Get all Students Sessions for active Segments, with SegmentID 0 returns all Sessions Works.
Get Student user with AnonID W0rks.
Get Student user with ID number W0rks.
Desc: Get Students data by username W0rks , but needs more.
Get segments of student user W0rks.
initDB() for creating needed tables for database.
Auto Populate categories with test categories.
Auto-generating courses for testing purposes.
Testing purposes generates faculty users .
OBSOLETE! Replaced by initDB scripts.
Auto-generating student users for testing purposes.
Replace Session data W0rks errorFlag fixed.
Stop Active Session ToDo : Needs way to check if that are isn't value in EndTime already.
Update or replace existing course data W0rks ?.
Update Faculty User data T35T.
Update Student User data W0rks.
Check if New Category has required minimum of data W0rks.
Check if New Course has required minimum of data CourseCode, CourseName, Degree, W0rks.
Check if New {FacultyUser} has valid data W0rks.
Check if New Segment has required minimum of data W0rks.
Validate that incoming Session has required data W0rks errorFlag fixed.
Check if New {StudentUser} has valid data W0rks.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Global variables for School, etc Should be temporary solution, now just easier to change naming conventions Maybe at least replace with configuration file?var schoolShortName = "OAMK".
Debug mode for spamming your logs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Variable for empty field in mySQL, because GORM.
No description provided by the author
Global variable for database.

# Structs

func (Campus) TableName() string { return "OAMK_Campuses" } */ Table for different Apartment in Campus, Apartment can have multiple Degrees.
Struct to Save Archived Sessions T35T.
Campus of the School, Campus can have multiple Apartments.
Table for course.
Degree in the Apartment.
Table for FacultyUsers of the API.
No description provided by the author
mysql.NullTime Table for School.
Schools Segment table has data for students and where to find their Session for the Segement.
Course can have on or more Segments.
Segment has different Categories for tracking and settings for them.
Session Report Struct for Segment.
No description provided by the author
Students Segments list.
Students Sessions for Segment.
No description provided by the author