gitea: code.gitea.io/gitea/routers/private Index | Files

package private

import "code.gitea.io/gitea/routers/private"

Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.

Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.

Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.

Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.

Index

Package Files

hook.go internal.go key.go mail.go manager.go manager_unix.go serv.go

func AddLogger Uses

func AddLogger(ctx *macaron.Context, opts private.LoggerOptions)

AddLogger adds a logger

func AuthorizedPublicKeyByContent Uses

func AuthorizedPublicKeyByContent(ctx *macaron.Context)

AuthorizedPublicKeyByContent searches content as prefix (leak e-mail part) and returns public key found.

func CheckInternalToken Uses

func CheckInternalToken(ctx *macaron.Context)

CheckInternalToken check internal token is set

func FlushQueues Uses

func FlushQueues(ctx *macaron.Context, opts private.FlushOptions)

FlushQueues flushes all the Queues

func HookPostReceive Uses

func HookPostReceive(ctx *macaron.Context, opts private.HookOptions)

HookPostReceive updates services and users

func HookPreReceive Uses

func HookPreReceive(ctx *macaron.Context, opts private.HookOptions)

HookPreReceive checks whether a individual commit is acceptable

func PauseLogging Uses

func PauseLogging(ctx *macaron.Context)

PauseLogging pauses logging

func RegisterRoutes Uses

func RegisterRoutes(m *macaron.Macaron)

RegisterRoutes registers all internal APIs routes to web application. These APIs will be invoked by internal commands for example `gitea serv` and etc.

func ReleaseReopenLogging Uses

func ReleaseReopenLogging(ctx *macaron.Context)

ReleaseReopenLogging releases and reopens logging files

func RemoveLogger Uses

func RemoveLogger(ctx *macaron.Context)

RemoveLogger removes a logger

func Restart Uses

func Restart(ctx *macaron.Context)

Restart causes the server to perform a graceful restart

func ResumeLogging Uses

func ResumeLogging(ctx *macaron.Context)

ResumeLogging resumes logging

func SendEmail Uses

func SendEmail(ctx *macaron.Context)

SendEmail pushes messages to mail queue

It doesn't wait before each message will be processed

func ServCommand Uses

func ServCommand(ctx *macaron.Context)

ServCommand returns information about the provided keyid

func ServNoCommand Uses

func ServNoCommand(ctx *macaron.Context)

ServNoCommand returns information about the provided keyid

func SetDefaultBranch Uses

func SetDefaultBranch(ctx *macaron.Context)

SetDefaultBranch updates the default branch

func Shutdown Uses

func Shutdown(ctx *macaron.Context)

Shutdown causes the server to perform a graceful shutdown

func UpdatePublicKeyInRepo Uses

func UpdatePublicKeyInRepo(ctx *macaron.Context)

UpdatePublicKeyInRepo update public key and deploy key updates

Package private imports 25 packages (graph) and is imported by 21 packages. Updated 2021-01-22. Refresh now. Tools for package owners.