Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTLSCertificate ¶
CreateTLSCertificate creates a self-signed key/cert pair for https server you can give the destination path without extension (.crt/.key will be added), and optionally pass hostnames to be written to the cert
func Middleware ¶
Middleware attaches CORS (access-control-allow-*) headers to gin.Context on every request to allow cross-domain requests from the frontend.
func WebRpcDebugMiddleware ¶
Types ¶
type GinWriteInterceptor ¶
type GinWriteInterceptor struct { gin.ResponseWriter // contains filtered or unexported fields }
func (*GinWriteInterceptor) WriteString ¶
func (gwi *GinWriteInterceptor) WriteString(str string) (int, error)
Click to show internal directories.
Click to hide internal directories.