Documentation
¶
Overview ¶
Code generated DO NOT EDIT
Index ¶
- func DefaultResourceChecker(ctx context.Context) (context.Context, error)
- type Checker
- type ContextChecker
- type Getter
- type Optioner
- type Peeker
- type Poster
- type Resource
- func (_ Resource) BestMime(req *http.Request, supported ...string) (string, error)
- func (_ Resource) FormValue(req *http.Request, key string) (string, error)
- func (_ Resource) FormValueBool(req *http.Request, key string) (bool, error)
- func (_ Resource) FormValueFloat32(req *http.Request, key string) (float32, error)
- func (_ Resource) FormValueInt16(req *http.Request, key string) (int16, error)
- func (_ Resource) FormValueInt32(req *http.Request, key string) (int32, error)
- func (m *Resource) Init(v interface{}, eh web.ErrorHandlerFunc, check ContextChecker)
- func (_ Resource) ParseForm(req *http.Request, size int64) error
- func (m *Resource) ServeHTTP(rw http.ResponseWriter, req *http.Request)
- func (m *Resource) TryServeHTTP(rw http.ResponseWriter, req *http.Request) error
- func (_ Resource) WriteJSON(w http.ResponseWriter, prefix string, indent string, d interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Optioner ¶
type Optioner interface {
Options(rw http.ResponseWriter, req *http.Request) error
}
OPTIONS
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
func NewResource(v interface{}, eh web.ErrorHandlerFunc, check ContextChecker) *Resource
func (Resource) FormValueBool ¶
func (Resource) FormValueFloat32 ¶
func (Resource) FormValueInt16 ¶
func (Resource) FormValueInt32 ¶
func (*Resource) Init ¶
func (m *Resource) Init(v interface{}, eh web.ErrorHandlerFunc, check ContextChecker)
func (*Resource) ServeHTTP ¶
func (m *Resource) ServeHTTP(rw http.ResponseWriter, req *http.Request)
func (*Resource) TryServeHTTP ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.