Documentation ¶
Index ¶
- Variables
- func AddIssue(issueWebhook *Issue) bool
- func AddMachine(machine *Machine) bool
- func AddMachines(machines []*Machine) bool
- func AddProgram(program *Program) bool
- func AddReport(report *Report) bool
- func AddRound(round *Round) bool
- func AddStudent(student *Student) bool
- func AutoUpdateReportText(id string, author string, startDate time.Time, endDate time.Time, ...) string
- func DeleteIssue(issueWebhook *Issue) bool
- func DeleteMachine(machine *Machine) bool
- func DeleteProgram(program *Program) bool
- func DeleteReport(report *Report) bool
- func DeleteRound(round *Round) bool
- func DeleteStudent(student *Student) bool
- func GetPRState(org string, repo string, pullNumber int) string
- func GetReportTextByEvents(events []*Event) string
- func GetStudentGithubMap(students []*Student, users []*casdoorsdk.User) map[string]string
- func GetWebhookOrgs() []string
- func InitAdapter()
- func InitConfig()
- func ReDeliverOrgWebhook(orgWebhook OrgWebhook)
- func RedeliverAllOrgWebhook()
- func RegularRedeliver()
- func RegularUpdate()
- func TimingAutoUpdate()
- func UpdateIssue(name string, issueWebhook *Issue) bool
- func UpdateMachine(id string, machine *Machine) bool
- func UpdateProgram(id string, program *Program) bool
- func UpdateReport(id string, report *Report) bool
- func UpdateRound(id string, round *Round) bool
- func UpdateStudent(owner string, name string, program string, student *Student) bool
- type Adapter
- type Event
- type Issue
- type Machine
- type OrgRepositories
- type OrgWebhook
- type PayLoad
- type Program
- type Report
- type Round
- type Service
- type Student
- type TopicInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ProgramName = ""
View Source
var Url = ""
Functions ¶
func AddMachine ¶
func AddMachines ¶
func AddProgram ¶
func AddStudent ¶
func AutoUpdateReportText ¶
func DeleteIssue ¶
func DeleteMachine ¶
func DeleteProgram ¶
func DeleteReport ¶
func DeleteRound ¶
func DeleteStudent ¶
func GetReportTextByEvents ¶
func GetStudentGithubMap ¶
func GetStudentGithubMap(students []*Student, users []*casdoorsdk.User) map[string]string
func GetWebhookOrgs ¶
func GetWebhookOrgs() []string
func InitAdapter ¶
func InitAdapter()
func InitConfig ¶
func InitConfig()
func ReDeliverOrgWebhook ¶
func ReDeliverOrgWebhook(orgWebhook OrgWebhook)
func RedeliverAllOrgWebhook ¶
func RedeliverAllOrgWebhook()
func RegularRedeliver ¶
func RegularRedeliver()
func RegularUpdate ¶
func RegularUpdate()
func TimingAutoUpdate ¶
func TimingAutoUpdate()
func UpdateIssue ¶
func UpdateMachine ¶
func UpdateProgram ¶
func UpdateReport ¶
func UpdateRound ¶
Types ¶
type Event ¶
type Issue ¶
type Issue struct { Name string `xorm:"varchar(100) notnull pk" json:"name"` Org string `xorm:"varchar(100)" json:"org"` Repo string `xorm:"varchar(100)" json:"repo"` Assignee string `xorm:"varchar(1000)" json:"assignee"` ProjectName string `xorm:"varchar(1000)" json:"project_name"` ProjectId int64 `xorm:"varchar(100)" json:"project_id"` AtPeople []string `xorm:"varchar(1000)" json:"at_people"` }
func GetIssueByName ¶
func GetIssueByOrgAndRepo ¶
func GetIssueIfExist ¶
type Machine ¶
type Machine struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` Description string `xorm:"varchar(100)" json:"description"` Ip string `xorm:"varchar(100)" json:"ip"` Port int `json:"port"` Username string `xorm:"varchar(100)" json:"username"` Password string `xorm:"varchar(100)" json:"password"` Language string `xorm:"varchar(100)" json:"language"` AutoQuery bool `json:"autoQuery"` IsPermanent bool `json:"isPermanent"` Services []*Service `json:"services"` }
func GetMachine ¶
func GetMachines ¶
type OrgRepositories ¶
type OrgRepositories struct { Organization string `json:"organization"` Repositories []string `json:"repositories"` }
func GetRepositoryByOrganization ¶
func GetRepositoryByOrganization(org string) OrgRepositories
type OrgWebhook ¶
func GetAllOrgWebhooks ¶
func GetAllOrgWebhooks() []*OrgWebhook
type PayLoad ¶
type PayLoad struct { Review github.PullRequestReview `json:"review"` PullRequest github.PullRequest `json:"pull_request"` Issue github.Issue `json:"issue"` Comment github.PullRequestComment `json:"comment"` }
type Program ¶
type Program struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` Title string `xorm:"varchar(100)" json:"title"` Url string `xorm:"varchar(100)" json:"url"` StartDate string `xorm:"varchar(100)" json:"startDate"` EndDate string `xorm:"varchar(100)" json:"endDate"` Provider2 string `xorm:"varchar(100)" json:"provider2"` CanApply bool `json:"canApply"` Type string `xorm:"varchar(100)" json:"type"` }
func GetProgram ¶
func GetPrograms ¶
type Report ¶
type Report struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` Program string `xorm:"varchar(100)" json:"program"` Round string `xorm:"varchar(100)" json:"round"` Student string `xorm:"varchar(100)" json:"student"` Mentor string `xorm:"varchar(100)" json:"mentor"` Text string `xorm:"mediumtext" json:"text"` Score int `json:"score"` Events []*Event `json:"events"` }
func GetFilteredReports ¶
func GetNewReport ¶
func GetReports ¶
type Round ¶
type Round struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` Title string `xorm:"varchar(100)" json:"title"` Program string `xorm:"varchar(100)" json:"program"` StartDate string `xorm:"varchar(100)" json:"startDate"` EndDate string `xorm:"varchar(100)" json:"endDate"` }
func GetFilteredRounds ¶
func GetLateRound ¶
type Student ¶
type Student struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` Program string `xorm:"varchar(100) notnull pk" json:"program"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` OrgRepositories []*OrgRepositories `xorm:"varchar(1000)" json:"org_repositories"` Mentor string `xorm:"varchar(100)" json:"mentor"` }
func GetFilteredStudents ¶
func GetStudents ¶
Click to show internal directories.
Click to hide internal directories.