Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthType ctxKeyType = "AUTH_TYPE" Username ctxKeyType = "USERNAME" AuthTypeWebSession AuthTypeValue = "WEB_SESSION" AuthTypeBearer AuthTypeValue = "BEARER" )
Variables ¶
This section is empty.
Functions ¶
func Recover ¶
func Recover(w http.ResponseWriter)
func SendError ¶
func SendError(w http.ResponseWriter, err error)
Types ¶
type AuthTypeValue ¶
type AuthTypeValue string
type HTMLData ¶
type HTMLData struct { Columns []string `json:"columns"` Rows []interface{} `json:"rows"` }
type MeteredResponseWriter ¶
MeteredResponseWriter errors if requested to write more than the provided limit
func NewMeteredResponseWriter ¶
func NewMeteredResponseWriter(w http.ResponseWriter, limit int) MeteredResponseWriter
type Server ¶
type Server interface {
Serve() error
}
func NewServer ¶
func NewServer(opts ServerOpts) Server
type ServerOpts ¶
Click to show internal directories.
Click to hide internal directories.