Documentation ¶
Index ¶
- type Method
- type PathRewriter
- type Router
- type ServiceAdder
- func (s *ServiceAdder) Add(method Method, path string, handler fiber.Handler)
- func (s *ServiceAdder) Delete(path string, handler fiber.Handler)
- func (s *ServiceAdder) Get(path string, handler fiber.Handler)
- func (s *ServiceAdder) Post(path string, handler fiber.Handler)
- func (s *ServiceAdder) Put(path string, handler fiber.Handler)
- func (s ServiceAdder) WithPath(path string) (ss ServiceAdder)
- func (s ServiceAdder) WithRewriter(rewriter PathRewriter) (ss ServiceAdder)
- type WithPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method string
const ( Get Method = http.MethodGet Head Method = http.MethodHead Post Method = http.MethodPost Put Method = http.MethodPut Patch Method = http.MethodPatch Delete Method = http.MethodDelete Connect Method = http.MethodConnect Options Method = http.MethodOptions Trace Method = http.MethodTrace )
type PathRewriter ¶
type ServiceAdder ¶
type ServiceAdder struct {
// contains filtered or unexported fields
}
func NewServiceAdder ¶
func NewServiceAdder(router Router) (s ServiceAdder)
func (*ServiceAdder) Add ¶
func (s *ServiceAdder) Add(method Method, path string, handler fiber.Handler)
func (ServiceAdder) WithPath ¶
func (s ServiceAdder) WithPath(path string) (ss ServiceAdder)
func (ServiceAdder) WithRewriter ¶
func (s ServiceAdder) WithRewriter(rewriter PathRewriter) (ss ServiceAdder)
Click to show internal directories.
Click to hide internal directories.