endpoints

package
v0.0.0-...-37719a7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TEXT              = websocket.TextMessage
	PING_TIMEOUT_WAIT = 1800 * time.Millisecond
)
View Source
var (
	X_REAL_IP_HEADER   = "X-Real-Ip"
	REMOTE_ADDR_HEADER = "RemoteAddr"
)

Functions

func DisallowFileBrowsing

func DisallowFileBrowsing(next http.Handler) http.Handler

func InitConfig

func InitConfig(conf dtos.AppConfig, newLogger *zap.Logger)

func SendBasicInvalidResponse

func SendBasicInvalidResponse(w http.ResponseWriter, req *http.Request, msg string, statusCode int)

func SetupCORS

func SetupCORS(w http.ResponseWriter, req *http.Request)

func SetupRouter

func SetupRouter() *mux.Router

Types

This section is empty.

Jump to

Keyboard shortcuts

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