Documentation ¶
Overview ¶
Perinets http server wrapper implementation usable for periMICA containers
Index ¶
- Constants
- Variables
- func AddEndpoints(end []Endpoint)
- func AddPaths(end []PathInfo)
- func AddRouter(handler roleHandlerType) *mux.Router
- func HttpRedirect(listenAddress string, redirectPort uint16)
- func ListenAndServe(listenAddress string)
- func Restart()
- func SendSSE[T []byte | string](path string, message T)
- func SetCertificates(certs Certificates)
- func Shutdown()
- type Certificates
- type Endpoint
- type PathInfo
Constants ¶
View Source
const ( GET = "GET" POST = "POST" PATCH = "PATCH" PUT = "PUT" DELETE = "DELETE" HEAD = "HEAD" SSE = "SSE" )
Variables ¶
View Source
var DefaultRouter *mux.Router = AddRouter(auth.RoleHandler)
Functions ¶
func AddEndpoints ¶
func AddEndpoints(end []Endpoint)
func HttpRedirect ¶
func ListenAndServe ¶
func ListenAndServe(listenAddress string)
func SetCertificates ¶
func SetCertificates(certs Certificates)
Types ¶
type Certificates ¶
Click to show internal directories.
Click to hide internal directories.