Documentation ¶
Index ¶
- func CreateFile(dir, fileName string, data []byte, logger *slog.Logger) (err error)
- func CreateUploadsDir(dirname string, logger *slog.Logger) (err error)
- func PrepareTLSCert(cert, key []byte) (tls.Certificate, error)
- func WrapBoth(rw http.ResponseWriter, err error)
- func WrapCli(err error)
- func WrapHttp(rw http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
func PrepareTLSCert ¶
func PrepareTLSCert(cert, key []byte) (tls.Certificate, error)
func WrapBoth ¶
func WrapBoth(rw http.ResponseWriter, err error)
WrapBoth to Http response and stdout
func WrapHttp ¶
func WrapHttp(rw http.ResponseWriter)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.