Documentation
¶
Index ¶
- type Error
- func Bad(e error, msg string, args ...interface{}) Error
- func Errorf(code int, e error, msg string, args ...interface{}) Error
- func Forbidden(e error, msg string, args ...interface{}) Error
- func NotFound(e error, msg string, args ...interface{}) Error
- func Oops(e error, msg string, args ...interface{}) Error
- func Unauthorized(e error, msg string, args ...interface{}) Error
- type Handler
- type Request
- func (r *Request) BasicAuthorized(username, password, realm string) bool
- func (r *Request) Done() bool
- func (r *Request) Fail(e Error)
- func (r *Request) Missing(params ...string) bool
- func (r *Request) OK(resp interface{})
- func (r *Request) Param(name, def string) string
- func (r *Request) ParamDate(name string) *time.Time
- func (r *Request) ParamDuration(name string) *time.Duration
- func (r *Request) ParamIs(name, want string) bool
- func (r *Request) Payload(v interface{}) bool
- func (r *Request) Redirect(code int, to string)
- func (r *Request) RemoteIP() string
- func (r *Request) Respond(code int, typ, msg string, args ...interface{})
- func (r *Request) String() string
- func (r *Request) Success(msg string, args ...interface{})
- func (r *Request) Upgrade(settings WebSocketSettings) *WebSocket
- func (r *Request) UserAgent() string
- type Router
- type WebSocket
- type WebSocketSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Diagnostic string `json:"diagnostic,omitempty"` Message string `json:"error,omitempty"` Missing []string `json:"missing,omitempty"` // contains filtered or unexported fields }
func Unauthorized ¶
func (*Error) ProvideDiagnostic ¶
func (e *Error) ProvideDiagnostic()
type Request ¶
func NewRequest ¶
func (*Request) BasicAuthorized ¶
func (*Request) Upgrade ¶
func (r *Request) Upgrade(settings WebSocketSettings) *WebSocket
type WebSocketSettings ¶
Click to show internal directories.
Click to hide internal directories.