https_core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Responses = map[string]Response{
		"not-found-screen": {
			Fn: func(c *gin.Context) {
				c.HTML(http.StatusNotFound, "not-found.html", nil)
			},
			Method: "GET",
		},
	}
)

Functions

func Log

func Log()

func LogConnection

func LogConnection(connection *gin.Context)

func LogInfo

func LogInfo(s string)

Types

type HttpsServer

type HttpsServer struct {
	Router *gin.Engine
}

func (*HttpsServer) ListenAndServe

func (H *HttpsServer) ListenAndServe(templatesDir string, assetsDir string)

type Response

type Response struct {
	Fn        gin.HandlerFunc
	Method    string
	Addresses []string
	Protected bool
}

func (*Response) OnProtected

func (R *Response) OnProtected(c *gin.Context)

Jump to

Keyboard shortcuts

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