Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CodeWriter ¶
type CodeWriter struct {
*sqlx.Tx
http.ResponseWriter
// contains filtered or unexported fields
}
func (*CodeWriter) WriteHeader ¶
func (c *CodeWriter) WriteHeader(code int)
type HTTPService ¶
type HTTPService interface {
ProxyPass(path, dst string)
Register(string, http.HandlerFunc)
Reject(w http.ResponseWriter, reason map[string][]amalgam.AError)
Respond(w http.ResponseWriter, result interface{})
ListenAndServe(string)
Redirect(w http.ResponseWriter, r *http.Request, url string, code int)
GetUser(ctx context.Context) (django.User, error)
GetOrCreateTracker(context.Context, *http.Request) (string, error)
}
func NewFakeHTTPService ¶
func NewFakeHTTPService() HTTPService
func NewHTTPService ¶
func NewHTTPService( addr string, ctx context.Context, sessions django.SessionStore, ) HTTPService
Click to show internal directories.
Click to hide internal directories.