Versions in this module Expand all Collapse all v0 v0.2.0 Aug 15, 2020 v0.1.0 Aug 9, 2020 Changes in this version + var ContentDispositionHeaderKey = "Content-Disposition" + var ContentDispositionHeaderValueFormat = `attachment; filename="%s"` + func MakeCookie(userID int) (cookie http.Cookie, err error) + func Register(v interface{}) + func StartServer(port int) error + type AddResult struct + ID int + type Checker interface + Check func(context.Context) error + type Content struct + ContentLength int64 + ContentReader io.Reader + ContentType string + ExtraHeaders map[string]string + func MakeContentFromBuffer(filename string, buf *bytes.Buffer) Content + type File struct + type Filter interface + Filter func() interface{} + type Group struct + type HandlerFunc = func(context.Context, Param) (Result, error) + type Limiter struct + type Method struct + type Newer interface + New func() interface{} + type Param struct + func (p *Param) Parse(ctx context.Context, v interface{}) error + func (p *Param) ParseMultipartForm(maxFileSize int64, v interface{}) ([]byte, error) + type Result struct + CookieAfterLogin int + Data interface{} + RequestID string + func (r *Result) PresentData(v interface{}) error + type Router struct + func DefaultRouter() *Router + func NewRouter() *Router + func (r *Router) Register(v interface{})