Documentation ¶
Overview ¶
Package autotls support Let's Encrypt for a Go server application.
package main import ( "log" "github.com/gin-gonic/autotls" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() // Ping handler r.GET("/ping", func(c *gin.Context) { c.String(200, "pong") }) log.Fatal(autotls.Run(r, "example1.com", "example2.com")) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ReadHeaderTimeout = 3 * time.Second
)
Functions ¶
func RunWithContext ¶ added in v0.0.5
Run support 1-line LetsEncrypt HTTPS servers with graceful shutdown
func RunWithManager ¶
RunWithManager support custom autocert manager
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.