internal

package
v0.0.0-...-b015d54 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_MaxHeaderBytes     = 2 << 11 // 4K
	HTTP_ReadHeaderTimeout  = 2 * time.Second
	HTTP_ReadTimeout        = 10 * time.Second
	HTTP_WriteTimeout       = 10 * time.Second
	HTTP_IdleTimeout        = 60
	HTTP_MaxMultipartMemory = 8 << 20 // 8M

	LOG_SizeMB = 512
)

Variables

This section is empty.

Functions

func AppendStaticDir

func AppendStaticDir(dirs ...wrap.StaticDir)

func Load

func Load(fp string, release bool) (err error)

func NewEngine

func NewEngine(release bool) (engi *gin.Engine, err error)

func Serve

func Serve(addr string, meta map[string]any) (errch chan error, err error)

Types

type Cron

type Cron struct {
	At   string `mapstructure:"at" json:"at,omitemoty"`
	Name string `mapstructure:"name" json:"name,omitemoty"`
}

Directories

Path Synopsis
services
api
ws

Jump to

Keyboard shortcuts

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