funcs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTCP

func IsTCP(address string) bool

IsTCP tests if the address is an tcp address

func IsUnix

func IsUnix(address string) bool

IsUnix tests if the address is an unix address. It returns false if its an tcp address.

func StaticFS

func StaticFS(r gin.IRouter, files fs.FS)

StaticFS is an Handler for Staticfiles that doesn't use globs and uses a fs.FS

Types

type PGXLogger

type PGXLogger struct{}

PGXLogger is an struct to intergrate the Logger Interface of pgx

func (PGXLogger) Log

func (PGXLogger) Log(ctx context.Context, level pgx.LogLevel, msg string, data map[string]interface{})

Log sends the logging data to phuslu/log

Jump to

Keyboard shortcuts

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