Documentation ¶
Index ¶
- func SendResponse(ctx *gin.Context, httpCode int, data interface{})
- func SendResponseError(ctx *gin.Context, httpCode int, data interface{})
- func SendResponseErrorString(ctx *gin.Context, httpCode int, data interface{}, err error)
- func SendResponseString(ctx *gin.Context, httpCode int, format string, data *string)
- func SendResponseValidationError(ctx *gin.Context, httpCode int, err error)
- type HttpServer
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendResponse ¶
SendResponse setting gin.JSON
func SendResponseError ¶
SendResponseError setting gin.JSON
func SendResponseErrorString ¶
func SendResponseString ¶
Types ¶
type HttpServer ¶
func NewHttpServer ¶
func NewHttpServer(name string) *HttpServer
NewHttpServer returns an instance of
func (*HttpServer) LoadFromConfig ¶
func (server *HttpServer) LoadFromConfig(key string, config *viper.Viper)
LoadFromConfig reads the conf for settings
Click to show internal directories.
Click to hide internal directories.