Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(name string, config Config, l *log.Logger, h fasthttp.RequestHandler) *Application
func (*Application) Start ¶
func (app *Application) Start()
type BaseConfig ¶
type BaseConfig struct { Host string `default:""` Port string `default:"8080"` LogLevel string `default:"info"` }
func (*BaseConfig) ListenerAddr ¶
func (c *BaseConfig) ListenerAddr() string
func (*BaseConfig) LoadConfig ¶
func (c *BaseConfig) LoadConfig()
func (*BaseConfig) ParseLogLevel ¶
func (c *BaseConfig) ParseLogLevel() log.Level
type BaseController ¶
type BaseController struct { }
func (*BaseController) MarshalResponse ¶
func (c *BaseController) MarshalResponse(payload Model, status int) fasthttp.RequestHandler
func (*BaseController) UnmarshalRequest ¶
func (c *BaseController) UnmarshalRequest(payload Model) fasthttp.RequestHandler
type Controller ¶
type Controller interface { UnmarshalRequest(m Model) fasthttp.RequestHandler MarshalResponse(m Model, status int) fasthttp.RequestHandler }
type HttpError ¶
type HttpError struct {
// contains filtered or unexported fields
}
func NewHttpError ¶
Click to show internal directories.
Click to hide internal directories.