Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
DownloadFile downloading file from a url
Types ¶
type Config ¶
type Config struct { BindAddr string `toml:"bind_addr"` LogLevel string `toml:"log_level"` DatabaseURL string `toml:"database_url"` JwtKey []byte `toml:"jwt_key"` }
Config is a interface for starting server
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter Hijacker http.Hijacker // contains filtered or unexported fields }
ResponseWriter is a new respinseWriter
func (*ResponseWriter) Hijack ¶
func (w *ResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
Hijack hiajcking http
func (*ResponseWriter) WriteHeader ¶
func (w *ResponseWriter) WriteHeader(statusCode int)
WriteHeader writing header to ResponseWriter struct
Click to show internal directories.
Click to hide internal directories.