Documentation ¶
Index ¶
- func InitDBEngine(ctx context.Context) (err error)
- func LoggerHandler(level log.Level) func(next http.Handler) http.Handler
- func Middlewares() []func(http.Handler) http.Handler
- func ServeBlob(ctx *context.Context, blob *git.Blob) error
- func ServeData(ctx *context.Context, name string, size int64, reader io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDBEngine ¶
InitDBEngine In case of problems connecting to DB, retry connection. Eg, PGSQL in Docker Container on Synology
func LoggerHandler ¶
LoggerHandler is a handler that will log the routing to the default gitea log
func Middlewares ¶
Middlewares returns common middlewares
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.