controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CasdoorApplication = beego.AppConfig.String("casdoorApplication")
View Source
var CasdoorEndpoint = beego.AppConfig.String("casdoorEndpoint")
View Source
var CasdoorOrganization = beego.AppConfig.String("casdoorOrganization")
View Source
var ClientId = beego.AppConfig.String("clientId")
View Source
var ClientSecret = beego.AppConfig.String("clientSecret")
View Source
var JwtPublicKey string

Functions

func IssueOpen

func IssueOpen(issueEvent github.IssuesEvent) bool

func PullRequestOpen

func PullRequestOpen(pullRequestEvent github.PullRequestEvent) bool

Types

type ApiController

type ApiController struct {
	beego.Controller
}

func (*ApiController) AddIssue

func (c *ApiController) AddIssue()

func (*ApiController) AddMachine

func (c *ApiController) AddMachine()

func (*ApiController) AddProgram

func (c *ApiController) AddProgram()

func (*ApiController) AddReport

func (c *ApiController) AddReport()

func (*ApiController) AddRound

func (c *ApiController) AddRound()

func (*ApiController) AddStudent

func (c *ApiController) AddStudent()

func (*ApiController) AutoUpdateReport

func (c *ApiController) AutoUpdateReport()

func (*ApiController) DeleteIssue

func (c *ApiController) DeleteIssue()

func (*ApiController) DeleteMachine

func (c *ApiController) DeleteMachine()

func (*ApiController) DeleteProgram

func (c *ApiController) DeleteProgram()

func (*ApiController) DeleteReport

func (c *ApiController) DeleteReport()

func (*ApiController) DeleteRound

func (c *ApiController) DeleteRound()

func (*ApiController) DeleteStudent

func (c *ApiController) DeleteStudent()

func (*ApiController) GetAccount

func (c *ApiController) GetAccount()

func (*ApiController) GetFilteredReports

func (c *ApiController) GetFilteredReports()

func (*ApiController) GetFilteredRounds

func (c *ApiController) GetFilteredRounds()

func (*ApiController) GetFilteredStudents

func (c *ApiController) GetFilteredStudents()

func (*ApiController) GetGithubUserByUsername

func (c *ApiController) GetGithubUserByUsername()

func (*ApiController) GetIssue

func (c *ApiController) GetIssue()

func (*ApiController) GetIssueByName

func (c *ApiController) GetIssueByName()

func (*ApiController) GetMachine

func (c *ApiController) GetMachine()

func (*ApiController) GetMachines

func (c *ApiController) GetMachines()

func (*ApiController) GetProgram

func (c *ApiController) GetProgram()

func (*ApiController) GetPrograms

func (c *ApiController) GetPrograms()

func (*ApiController) GetProjectColumns

func (c *ApiController) GetProjectColumns()

func (*ApiController) GetReport

func (c *ApiController) GetReport()

func (*ApiController) GetReports

func (c *ApiController) GetReports()

func (*ApiController) GetRepositoryByOrg

func (c *ApiController) GetRepositoryByOrg()

func (*ApiController) GetRound

func (c *ApiController) GetRound()

func (*ApiController) GetRounds

func (c *ApiController) GetRounds()

func (*ApiController) GetSessionClaims

func (c *ApiController) GetSessionClaims() *casdoorsdk.Claims

func (*ApiController) GetSessionUser

func (c *ApiController) GetSessionUser() *casdoorsdk.User

func (*ApiController) GetStudent

func (c *ApiController) GetStudent()

func (*ApiController) GetStudents

func (c *ApiController) GetStudents()

func (*ApiController) GetUsers

func (c *ApiController) GetUsers()

func (*ApiController) IsMainlandIp

func (c *ApiController) IsMainlandIp()

func (*ApiController) RequireAdmin

func (c *ApiController) RequireAdmin() bool

func (*ApiController) RequireSignedIn

func (c *ApiController) RequireSignedIn() bool

func (*ApiController) ResponseError

func (c *ApiController) ResponseError(error string, data ...interface{})

func (*ApiController) ResponseOk

func (c *ApiController) ResponseOk(data ...interface{})

func (*ApiController) SetSessionClaims

func (c *ApiController) SetSessionClaims(claims *casdoorsdk.Claims)

func (*ApiController) Signin

func (c *ApiController) Signin()

func (*ApiController) Signout

func (c *ApiController) Signout()

func (*ApiController) UpdateIssue

func (c *ApiController) UpdateIssue()

func (*ApiController) UpdateMachine

func (c *ApiController) UpdateMachine()

func (*ApiController) UpdateProgram

func (c *ApiController) UpdateProgram()

func (*ApiController) UpdateReport

func (c *ApiController) UpdateReport()

func (*ApiController) UpdateRound

func (c *ApiController) UpdateRound()

func (*ApiController) UpdateStudent

func (c *ApiController) UpdateStudent()

func (*ApiController) WebhookOpen

func (c *ApiController) WebhookOpen()

type Response

type Response struct {
	Status string      `json:"status"`
	Msg    string      `json:"msg"`
	Data   interface{} `json:"data"`
	Data2  interface{} `json:"data2"`
}

Jump to

Keyboard shortcuts

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