http

package
v0.0.0-...-5635ba1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	Release bool
	State   interface{}
}

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

HTTPServer

func New

func New(staticFS *embed.FS, env *Env) *HTTPServer

New make new HTTP Server instance, add routes, middlewares

func (*HTTPServer) Run

func (hs *HTTPServer) Run(address string)

Run server

func (*HTTPServer) RunTLS

func (hs *HTTPServer) RunTLS(address string, cert, key string)

RunTLS server

func (*HTTPServer) Shutdown

func (hs *HTTPServer) Shutdown()

Shutdown server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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