private

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInternalToken

func CheckInternalToken(ctx *macaron.Context)

CheckInternalToken check internal token is set

func GetProtectedBranchBy

func GetProtectedBranchBy(ctx *macaron.Context)

GetProtectedBranchBy get protected branch information

func PushUpdate

func PushUpdate(ctx *macaron.Context)

PushUpdate update public key updates

func RegisterRoutes

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 UpdatePublicKey

func UpdatePublicKey(ctx *macaron.Context)

UpdatePublicKey update publick key updates

Types

This section is empty.

Jump to

Keyboard shortcuts

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