Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeResponse ¶
func EncodeResponse(w http.ResponseWriter, data interface{})
Types ¶
type Listener ¶
type Listener interface {
RegisterEndpoints(router RouterInterface)
}
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) HandleFunc ¶
type RouterInterface ¶
type RouterInterface interface { Handler() http.Handler HandleFunc(path string, method string, fn func(w http.ResponseWriter, r *http.Request)) }
func NewRouter ¶
func NewRouter() RouterInterface
Click to show internal directories.
Click to hide internal directories.