common

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 24 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDBEngine

func InitDBEngine(ctx context.Context) (err error)

InitDBEngine In case of problems connecting to DB, retry connection. Eg, PGSQL in Docker Container on Synology

func Middlewares

func Middlewares() []func(http.Handler) http.Handler

Middlewares returns common middlewares

func ServeBlob

func ServeBlob(ctx *context.Context, blob *git.Blob, lastModified time.Time) error

ServeBlob download a git.Blob

func ServeData

func ServeData(ctx *context.Context, filePath string, size int64, reader io.Reader) error

ServeData download file from io.Reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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