Documentation ¶
Index ¶
- Variables
- func CallerContext() string
- func GetAbsoluteURL(url string, caller string) (string, error)
- func GetFunctionName(myvar interface{}) string
- func Match(url string, mux *http.ServeMux, h interface{})
- func RegisterHandler(url string, caller string, h interface{}, mux *http.ServeMux)
- func RegisterRouterPoint(caller string, url string, f interface{})
- type InvalidHandlerError
- type NotRegisteredPatternError
- type PatternAlreadyRegisteredError
- type RouterPoint
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisteredPatterns = make(map[string]*RouterPoint)
RegisteredPatterns type
Functions ¶
func GetAbsoluteURL ¶
GetAbsoluteURL func
func RegisterHandler ¶
RegisterHandler func
func RegisterRouterPoint ¶
RegisterRouterPoint func
Types ¶
type InvalidHandlerError ¶
type InvalidHandlerError struct {
// contains filtered or unexported fields
}
InvalidHandlerError error
func (InvalidHandlerError) Error ¶
func (e InvalidHandlerError) Error() string
type NotRegisteredPatternError ¶
type NotRegisteredPatternError struct {
// contains filtered or unexported fields
}
NotRegisteredPatternError error
func (*NotRegisteredPatternError) Error ¶
func (n *NotRegisteredPatternError) Error() string
type PatternAlreadyRegisteredError ¶
type PatternAlreadyRegisteredError struct {
// contains filtered or unexported fields
}
PatternAlreadyRegisteredError error
func (PatternAlreadyRegisteredError) Error ¶
func (e PatternAlreadyRegisteredError) Error() string
type RouterPoint ¶
type RouterPoint struct { URL string Handler http.Handler HandlerFunc http.HandlerFunc }
RouterPoint type
Click to show internal directories.
Click to hide internal directories.