handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OAuthStateTTL = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

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

AuthHandler handles authentication endpoints

func NewAuthHandler

func NewAuthHandler(sessionManager *session.Manager, authService *service.AuthService, template *template.Template) *AuthHandler

NewAuthHandler creates a new auth handler

func (*AuthHandler) HandleLogin

func (h *AuthHandler) HandleLogin(w http.ResponseWriter, r *http.Request)

HandleLogin renders the login page

func (*AuthHandler) HandleLogout

func (h *AuthHandler) HandleLogout(w http.ResponseWriter, r *http.Request)

HandleLogout logs out the user

func (*AuthHandler) HandleOAuthCallback

func (h *AuthHandler) HandleOAuthCallback(w http.ResponseWriter, r *http.Request)

HandleOAuthCallback handles the OAuth callback

func (*AuthHandler) HandleOAuthStart

func (h *AuthHandler) HandleOAuthStart(w http.ResponseWriter, r *http.Request)

HandleOAuthStart initiates the OAuth flow

func (*AuthHandler) HandleTokenLogin

func (h *AuthHandler) HandleTokenLogin(w http.ResponseWriter, r *http.Request)

HandleTokenLogin handles direct access token login

type DashboardHandler

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

DashboardHandler handles dashboard operations

func NewDashboardHandler

func NewDashboardHandler(repoService *service.RepoService, authService *service.AuthService, template *template.Template) *DashboardHandler

NewDashboardHandler creates a new dashboard handler

func (*DashboardHandler) HandleConfigUpdate

func (h *DashboardHandler) HandleConfigUpdate(w http.ResponseWriter, r *http.Request)

HandleConfigUpdate updates Cirrus CI configuration

func (*DashboardHandler) HandleDashboard

func (h *DashboardHandler) HandleDashboard(w http.ResponseWriter, r *http.Request)

HandleDashboard displays the dashboard

type RepoHandler

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

RepoHandler handles repository operations

func NewRepoHandler

func NewRepoHandler(repoService *service.RepoService, authService *service.AuthService, template *template.Template) *RepoHandler

NewRepoHandler creates a new repository handler

func (*RepoHandler) HandleRepoDetail

func (h *RepoHandler) HandleRepoDetail(w http.ResponseWriter, r *http.Request)

HandleRepoDetail displays repository detail page

func (*RepoHandler) HandleRepoDisable

func (h *RepoHandler) HandleRepoDisable(w http.ResponseWriter, r *http.Request)

HandleRepoDisable disables Cirrus CI for a repository

func (*RepoHandler) HandleRepoEnable

func (h *RepoHandler) HandleRepoEnable(w http.ResponseWriter, r *http.Request)

HandleRepoEnable enables Cirrus CI for a repository

type WebhookHandler

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

WebhookHandler handles webhook requests

func NewWebhookHandler

func NewWebhookHandler(webhookService *service.WebhookService, repoInstallationDal dal.RepoInstallationDal) *WebhookHandler

NewWebhookHandler creates a new webhook handler

func (*WebhookHandler) HandleWebhook

func (h *WebhookHandler) HandleWebhook(w http.ResponseWriter, r *http.Request)

HandleWebhook processes incoming webhooks from Forgejo

Jump to

Keyboard shortcuts

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