Documentation ¶
Index ¶
Constants ¶
View Source
const ( LanguageSv = "100000" LanguageEn = "100001" )
View Source
const ( LoginUrl = "https://login.it.gu.se/login" LoginCookie = "CAS3TGC" )
View Source
const ( SyllabusGetUrl = "http://studentportal.gu.se/english/e-services/" + "course-syllabus/?languageId=" + LanguageEn SyllabusPostUrl = "http://studentportal.gu.se/english/e-services/" + "course-syllabus/syllabisearchresultview/" )
View Source
const (
PrefToken = "sp.token"
)
Variables ¶
View Source
var DefaultHeaders = map[string]string{
"User-Agent": "gucli/1.0",
"Content-Type": "application/x-www-form-urlencoded",
}
Functions ¶
func DoSyllabus ¶
func DoSyllabus(args []string)
Types ¶
type AuthResult ¶
func (*AuthResult) SyncPrefs ¶
func (result *AuthResult) SyncPrefs()
type AuthUtility ¶
func (*AuthUtility) Dispatch ¶
func (utility *AuthUtility) Dispatch(session *Session) interface{}
type Session ¶
func NewSession ¶
func NewSession() *Session
type SyllabusResult ¶
type SyllabusResult struct { Message string Courses []SyllabusResultCourse }
type SyllabusResultCourse ¶
type SyllabusResultCourse struct { Title string Code string Level string Docs []SyllabusResultCourseDoc }
type SyllabusResultCourseDoc ¶
type SyllabusUtility ¶
type SyllabusUtility struct {
Query string
}
func (*SyllabusUtility) Dispatch ¶
func (utility *SyllabusUtility) Dispatch(session *Session) interface{}
Click to show internal directories.
Click to hide internal directories.