Documentation ¶
Index ¶
- Constants
- type RouteGin
- type RouteMux
- type Router
- type RouterGin
- func (r *RouterGin) Delete(path string, handleFunc interface{})
- func (r *RouterGin) Get(path string, handleFunc interface{})
- func (r *RouterGin) Options(path string, handleFunc interface{})
- func (r *RouterGin) Patch(path string, handleFunc interface{})
- func (r *RouterGin) Post(path string, handleFunc interface{})
- func (r *RouterGin) Put(path string, handleFunc interface{})
- func (r *RouterGin) Run(port int) error
- func (r *RouterGin) UseMiddleware(middleware interface{})
- type RouterMux
- func (r *RouterMux) Delete(path string, handleFunc interface{})
- func (r *RouterMux) Get(path string, handleFunc interface{})
- func (r *RouterMux) Options(path string, handleFunc interface{})
- func (r *RouterMux) Patch(path string, handleFunc interface{})
- func (r *RouterMux) Post(path string, handleFunc interface{})
- func (r *RouterMux) Put(path string, handleFunc interface{})
- func (r *RouterMux) Run(port int) error
- func (r *RouterMux) UseMiddleware(middleware interface{})
Constants ¶
View Source
const GIN string = "gin"
View Source
const MUX string = "mux"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router interface { Get(path string, handleFunc interface{}) Post(path string, handleFunc interface{}) Put(path string, handleFunc interface{}) Patch(path string, handleFunc interface{}) Delete(path string, handleFunc interface{}) Options(path string, handleFunc interface{}) Run(port int) error UseMiddleware(middleware interface{}) }
type RouterGin ¶
type RouterGin struct {
// contains filtered or unexported fields
}
func NewginRouter ¶
func NewginRouter() *RouterGin
func (*RouterGin) UseMiddleware ¶
func (r *RouterGin) UseMiddleware(middleware interface{})
type RouterMux ¶
type RouterMux struct {
// contains filtered or unexported fields
}
func NewMuxRouter ¶
func NewMuxRouter() *RouterMux
func (*RouterMux) UseMiddleware ¶
func (r *RouterMux) UseMiddleware(middleware interface{})
Click to show internal directories.
Click to hide internal directories.