Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpMethod ¶
type HttpMethod string
const ( GET HttpMethod = "GET" POST HttpMethod = "POST" PUT HttpMethod = "PUT" PATCH HttpMethod = "PATCH" DELETE HttpMethod = "DELETE" )
type NatsRoute ¶
type NatsRoute struct {
// contains filtered or unexported fields
}
Holder for a nats route's info.
func NewNatsRoute ¶
Create a new route with it's subscription path and corresponding handler.
type Route ¶
type Route interface { GetPath() string GetHandler() interface{} }
Base interface for generic route types.
type WebRoute ¶
type WebRoute struct {
// contains filtered or unexported fields
}
func NewWebRoute ¶
func NewWebRoute(name string, pathStr string, method HttpMethod, handlerFun httprouter.Handle) *WebRoute
func (*WebRoute) GetHandler ¶
func (n *WebRoute) GetHandler() httprouter.Handle
Click to show internal directories.
Click to hide internal directories.