Documentation
¶
Index ¶
- type Api
- func (s *Api) Private(r *chi.Mux, method, path string, handler http.HandlerFunc)
- func (s *Api) Public(r *chi.Mux, method, path string, handler http.HandlerFunc)
- func (s *Api) SetAutentication(middleware func(http.Handler) http.Handler)
- func (s *Api) Use(middlewares ...func(http.Handler) http.Handler)
- type Ettp
- func (s *Ettp) Close()
- func (s *Ettp) HandleFunc(pattern string, handlerFn http.HandlerFunc)
- func (s *Ettp) Mount(pattern string, handler http.Handler)
- func (s *Ettp) NotFound(handlerFn http.HandlerFunc)
- func (s *Ettp) OnClose(onClose func())
- func (s *Ettp) OnStart(onStart func())
- func (s *Ettp) Start()
- func (s *Ettp) StartWait()
- func (s *Ettp) Use(middlewares ...func(http.Handler) http.Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶ added in v1.0.21
type Api struct {
Name string
Hostname string
Version string
// contains filtered or unexported fields
}
func (*Api) Private ¶ added in v1.0.21
* * Private * @param method, path string, handler http.HandlerFunc *
func (*Api) Public ¶ added in v1.0.21
* * Public * @param method, path string, handler http.HandlerFunc *
func (*Api) SetAutentication ¶ added in v1.0.21
* * SetAutentication * @param middleware func(http.Handler) http.Handler *
type Ettp ¶
func (*Ettp) HandleFunc ¶ added in v1.0.12
func (s *Ettp) HandleFunc(pattern string, handlerFn http.HandlerFunc)
* * HandleFunc * @param pattern string, handlerFn http.HandlerFunc *
func (*Ettp) NotFound ¶ added in v1.0.12
func (s *Ettp) NotFound(handlerFn http.HandlerFunc)
* * NotFound * @param handlerFn http.HandlerFunc *
Click to show internal directories.
Click to hide internal directories.