app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache() *cache.Cache

func Close

func Close()

Закрытие открытых соединений с ограничением по времени исполнения.

func Debug

func Debug(format string, args ...interface{})

func I16S

func I16S(i uint16) string

func I3S

func I3S(i uint32) string

func I6S

func I6S(i uint64) string

func NewServer

func NewServer(r *gin.Engine, cfg *config.Config)

Запуск HTTP сервера.

func Postgre

func Postgre() *pgxpool.Pool

func Redis

func Redis() *redis.Ring

func Router

func Router() *gin.Engine

Роутер приложения.

func Signal

func Signal() os.Signal

Обработка прерываний сервера HTTP. Список значений: os.Interrupt, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT

func StartHTTP

func StartHTTP(r *gin.Engine)

Запуск HTTP сервера.

Types

type H

type H map[string]interface{}

Jump to

Keyboard shortcuts

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