Documentation
¶
Index ¶
- func New(config Config) server.Server
- type Config
- type Context
- func (c *Context) BaseUrl() string
- func (c *Context) BodyParser(v interface{}) error
- func (c *Context) Context() context.Context
- func (c *Context) Cookie(v *server.Cookie)
- func (c *Context) Cookies(key string, defaultValue ...string) string
- func (c *Context) File(name string) (*multipart.FileHeader, error)
- func (c *Context) Header(key string, vals ...string) string
- func (c *Context) Hostname() string
- func (c *Context) Json(v interface{}) error
- func (c *Context) Locals(key string, value ...interface{}) (val interface{})
- func (c *Context) Logger() logger.Logger
- func (c *Context) Messages(ms ...*entities.Messages) *entities.Messages
- func (c *Context) Meta(metas ...*entities.Meta) *entities.Meta
- func (c *Context) Method() string
- func (c *Context) Next() error
- func (c *Context) OriginalURL() string
- func (c *Context) Param(key string) string
- func (c *Context) ParamInt(key string, values ...int) int
- func (c *Context) Path() string
- func (c *Context) Post(posts ...*entities.Post) *entities.Post
- func (c *Context) Query(key string, values ...string) string
- func (c *Context) QueryInt(key string, values ...int) int
- func (c *Context) Redirect(path string) error
- func (c *Context) RedirectToRoute(name string, params ...map[string]interface{}) error
- func (c *Context) Render(fn func(meta *entities.Meta, wr *bufio.Writer)) error
- func (c *Context) RequestID() string
- func (c *Context) Response() server.Response
- func (c *Context) RouteName() string
- func (c *Context) Send(data []byte) error
- func (c *Context) SendString(data string) error
- func (c *Context) Status(v int) server.Context
- func (c *Context) User() *entities.User
- func (c *Context) WithError(msg string, err error)
- type Group
- func (g *Group) Delete(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (g *Group) Get(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (g *Group) Group(prefix string, handlers ...server.Handler) server.Group
- func (g *Group) Head(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (g *Group) Options(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (g *Group) Patch(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (g *Group) Post(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (g *Group) Put(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (g *Group) Use(handler server.Handler)
- type Response
- type Route
- type Server
- func (s *Server) Delete(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (s *Server) Get(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (s *Server) Group(prefix string, handlers ...server.Handler) server.Group
- func (s *Server) Head(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (s *Server) Listen(address string)
- func (s *Server) Options(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (s *Server) Patch(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (s *Server) Post(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (s *Server) Put(path string, handler server.Handler, authConfigs ...*server.AuthConfig)
- func (s *Server) Register(register func(ss server.Server)) server.Server
- func (s *Server) Static(prefix, root string, configs ...server.StaticConfig)
- func (s *Server) Test(req *http.Request, msTimeout ...int) (resp *http.Response, err error)
- func (s *Server) Use(handlers ...server.Handler)
- func (s *Server) UsePrefix(prefix string, handlers ...server.Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { JwtSigningKey string AppName string JSONEncoder utils.JSONMarshal }
type Context ¶
func (*Context) BodyParser ¶
func (*Context) OriginalURL ¶
func (*Context) RedirectToRoute ¶
func (*Context) SendString ¶
type Group ¶
type Group struct { *fiber.App FGroup *fiber.Group // contains filtered or unexported fields }
type Server ¶
type Server struct { *fiber.App // contains filtered or unexported fields }
func (*Server) Static ¶
func (s *Server) Static(prefix, root string, configs ...server.StaticConfig)
Click to show internal directories.
Click to hide internal directories.