types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxTypeCourseTemplate = contextType(ctxTypeBase + "CourseTemplate")
	CtxTypeCourseOffering = contextType(ctxTypeBase + "CourseOffering")
	CtxTypeCourseSection  = contextType(ctxTypeBase + "CourseSection")
	CtxTypeGroup          = contextType(ctxTypeBase + "Group")
)
View Source
const (
	SysSysAdmin     = systemRole(sRoleBase + "SysAdmin")
	SysSupport      = systemRole(sRoleBase + "SysSupport")
	SysCreator      = systemRole(sRoleBase + "Creator")
	SysAccountAdmin = systemRole(sRoleBase + "AccountAdmin")
	SysUser         = systemRole(sRoleBase + "User")
	SysAdmin        = systemRole(sRoleBase + "Administrator")
	SysNone         = systemRole(sRoleBase + "None")
)
View Source
const (
	InstStudent            = institutionRole(iRoleBase + "Student")
	InstFaculty            = institutionRole(iRoleBase + "Faculty")
	InstMember             = institutionRole(iRoleBase + "Member")
	InstLearner            = institutionRole(iRoleBase + "Learner")
	InstInstructor         = institutionRole(iRoleBase + "Instructor")
	InstMentor             = institutionRole(iRoleBase + "Mentor")
	InstStaff              = institutionRole(iRoleBase + "Staff")
	InstAlumni             = institutionRole(iRoleBase + "Alumni")
	InstProspectiveStudent = institutionRole(iRoleBase + "ProspectiveStudent")
	InstGuest              = institutionRole(iRoleBase + "Guest")
	InstOther              = institutionRole(iRoleBase + "Other")
	InstAdmin              = institutionRole(iRoleBase + "Administrator")
	InstObserver           = institutionRole(iRoleBase + "Observer")
	InstNone               = institutionRole(iRoleBase + "None")
)
View Source
const (
	CtxLearner                  = contextRole(cRoleBase + "Learner")
	CtxLearner_Learner          = contextRole(cRoleBase + "Learner/Learner")
	CtxLearner_NonCreditLearner = contextRole(cRoleBase + "Learner/NonCreditLeaner")
	CtxLearner_GuestLeaner      = contextRole(cRoleBase + "Learner/GuestLearner")
	CtxLearner_ExternalLearner  = contextRole(cRoleBase + "Learner/ExternalLearner")
	CtxLearner_Instructor       = contextRole(cRoleBase + "Learner/Instructor")

	CtxInstructor                    = contextRole(cRoleBase + "Instructor")
	CtxInstructor_PrimaryInstructor  = contextRole(cRoleBase + "Instructor/PrimaryInstructor")
	CtxInstructor_Lecturer           = contextRole(cRoleBase + "Instructor/Lecturer")
	CtxInstructor_GuestInstructor    = contextRole(cRoleBase + "Instructor/GuestInstructor")
	CtxInstructor_ExternalInstructor = contextRole(cRoleBase + "Instructor/ExternalInstructor")

	CtxContentDev                       = contextRole(cRoleBase + "ContentDeveloper")
	CtxContentDev_ContentDev            = contextRole(cRoleBase + "ContentDeveloper/ContentDeveloper")
	CtxContentDev_Librarian             = contextRole(cRoleBase + "ContentDeveloper/Librarian")
	CtxContentDev_ContentExpert         = contextRole(cRoleBase + "ContentDeveloper/ContentExpert")
	CtxContentDev_ExternalContentExpert = contextRole(cRoleBase + "ContentDeveloper/ExternalContentExpert")

	CtxMember        = contextRole(cRoleBase + "Member")
	CtxMember_Member = contextRole(cRoleBase + "Member/Member")

	CtxManager                   = contextRole(cRoleBase + "Manager")
	CtxManager_AreaManager       = contextRole(cRoleBase + "Manager/AreaManager")
	CtxManager_CourseCoordiantor = contextRole(cRoleBase + "Manager/CourseCoordianto")
	CtxManager_Observer          = contextRole(cRoleBase + "Manager/Observer")
	CtxManager_ExtObserver       = contextRole(cRoleBase + "Manager/ExternalObserver")

	CtxMentor                        = contextRole(cRoleBase + "Mentor")
	CtxMentor_Mentor                 = contextRole(cRoleBase + "Mentor/Mentor")
	CtxMentor_Reviewer               = contextRole(cRoleBase + "Mentor/Reviewer")
	CtxMentor_Advisor                = contextRole(cRoleBase + "Mentor/Advisor")
	CtxMentor_Auditor                = contextRole(cRoleBase + "Mentor/Auditor")
	CtxMentor_Tutor                  = contextRole(cRoleBase + "Mentor/Tutor")
	CtxMentor_LearningFacilitator    = contextRole(cRoleBase + "Mentor/LearningFacilitator")
	CtxMentor_ExtAdvisor             = contextRole(cRoleBase + "Mentor/ExternalAdvisor")
	CtxMentor_ExtReviewer            = contextRole(cRoleBase + "Mentor/ExternalReviewer")
	CtxMentor_ExtAuditor             = contextRole(cRoleBase + "Mentor/ExternalAuditor")
	CtxMentor_ExtTutor               = contextRole(cRoleBase + "Mentor/ExternalTutor")
	CtxMentor_ExtLearningFacilitator = contextRole(cRoleBase + "Mentor/ExternalLearningFacilitator")

	CtxAdmin             = contextRole(cRoleBase + "Administrator")
	CtxAdmin_Admin       = contextRole(cRoleBase + "Administrator/Administrator")
	CtxAdmin_Support     = contextRole(cRoleBase + "Administrator/Support")
	CtxAdmin_Dev         = contextRole(cRoleBase + "Administrator/Developer")
	CtxAdmin_SysAdmin    = contextRole(cRoleBase + "Administrator/SystemAdministrator")
	CtxAdmin_ExtSysAdmin = contextRole(cRoleBase + "Administrator/ExternalSystemAdministrator")
	CtxAdmin_ExtDev      = contextRole(cRoleBase + "Administrator/ExternalDeveloper")
	CtxAdmin_ExtSupport  = contextRole(cRoleBase + "Administrator/ExternalSupport")

	CtxTA                    = contextRole(cRoleBase + "TeachingAssistant")
	CtxTA_TA                 = contextRole(cRoleBase + "TeachingAssistant/TeachingAssistant")
	CtxTA_Section            = contextRole(cRoleBase + "TeachingAssistant/TeachingAssistantSection")
	CtxTA_SectionAssociation = contextRole(cRoleBase + "TeachingAssistant/TeachingAssistantSectionAssociation")
	CtxTA_Offering           = contextRole(cRoleBase + "TeachingAssistant/TeachingAssistantOffering")
	CtxTA_Template           = contextRole(cRoleBase + "TeachingAssistant/TeachingAssistantTemplate")
	CtxTA_Group              = contextRole(cRoleBase + "TeachingAssistant/TeachingAssistantGroup")
	CtxTA_Grader             = contextRole(cRoleBase + "TeachingAssistant/TeachingAssistantGrader")
)
View Source
const (
	LTIBasicMessage = ltiMessage("basic-lti-launch-request")
)
View Source
const (
	LTIVersion1_0 = ltiVersion("LTI-1p0")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LTIContextType

type LTIContextType []contextType

func NewLTIContextType

func NewLTIContextType(s ...contextType) (*LTIContextType, error)

func (*LTIContextType) AddContextTypes

func (l *LTIContextType) AddContextTypes(ctxs ...contextType) error

func (*LTIContextType) EncodeValues

func (l *LTIContextType) EncodeValues(key string, val *url.Values) error

URL Form Encoding interface

func (*LTIContextType) HasContextType

func (l *LTIContextType) HasContextType(ctx contextType) bool

func (LTIContextType) MarshalJSON

func (l LTIContextType) MarshalJSON() ([]byte, error)

JSON Marshaler/Unmarshaler interface

func (*LTIContextType) RemoveContextTypes

func (l *LTIContextType) RemoveContextTypes(ctxs ...contextType) error

func (*LTIContextType) UnmarshalJSON

func (l *LTIContextType) UnmarshalJSON(in []byte) error

type LTIMessage

type LTIMessage ltiMessage

func NewLTIMessage

func NewLTIMessage(s ltiMessage) (LTIMessage, error)

func (*LTIMessage) UnmarshalJSON

func (m *LTIMessage) UnmarshalJSON(in []byte) error

LTI Message Unmarshaler interface

type LTIRoles

type LTIRoles struct {
	// contains filtered or unexported fields
}

func NewLTIRoles

func NewLTIRoles(r string) *LTIRoles

func (*LTIRoles) AddContextRoles

func (l *LTIRoles) AddContextRoles(c ...contextRole)

func (*LTIRoles) AddInstitutionRoles

func (l *LTIRoles) AddInstitutionRoles(i ...institutionRole)

func (*LTIRoles) AddSystemRoles

func (l *LTIRoles) AddSystemRoles(s ...systemRole)

func (*LTIRoles) EncodeValues

func (l *LTIRoles) EncodeValues(key string, val *url.Values) error

URL Form Encoding interface

func (*LTIRoles) GetContextRoles

func (l *LTIRoles) GetContextRoles() []contextRole

func (*LTIRoles) GetInstitutionRoles

func (l *LTIRoles) GetInstitutionRoles() []institutionRole

func (*LTIRoles) GetSystemRoles

func (l *LTIRoles) GetSystemRoles() []systemRole

func (*LTIRoles) GetUndefinedRoles

func (l *LTIRoles) GetUndefinedRoles() []string

func (*LTIRoles) HasContextRole

func (l *LTIRoles) HasContextRole(c contextRole) bool

func (*LTIRoles) HasInstitutionRole

func (l *LTIRoles) HasInstitutionRole(i institutionRole) bool

func (*LTIRoles) HasSystemRole

func (l *LTIRoles) HasSystemRole(s systemRole) bool

func (LTIRoles) MarshalJSON

func (l LTIRoles) MarshalJSON() ([]byte, error)

JSON Marshaler/Unmarshaler interface

func (*LTIRoles) RemoveContextRoles

func (l *LTIRoles) RemoveContextRoles(c ...contextRole)

func (*LTIRoles) RemoveInstitutionRoles

func (l *LTIRoles) RemoveInstitutionRoles(i ...institutionRole)

func (*LTIRoles) RemoveSystemRoles

func (l *LTIRoles) RemoveSystemRoles(s ...systemRole)

func (*LTIRoles) UnmarshalJSON

func (l *LTIRoles) UnmarshalJSON(in []byte) error

func (*LTIRoles) UnmarshalText

func (l *LTIRoles) UnmarshalText(in []byte) error

URL Form Unmarshaler interface

type LTIVersion

type LTIVersion ltiVersion

func NewLTIVersion

func NewLTIVersion(s ltiVersion) (LTIVersion, error)

func (*LTIVersion) UnmarshalJSON

func (v *LTIVersion) UnmarshalJSON(in []byte) error

LTI Version JSON Unmarshaler interface

Jump to

Keyboard shortcuts

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