Documentation
¶
Index ¶
Constants ¶
View Source
const (
ServiceOKCode = 0
)
Variables ¶
This section is empty.
Functions ¶
func GetPostedJson ¶
func RegisterMiddleware ¶
func RegisterMiddleware(before []gin.HandlerFunc, after []AfterHandler)
Types ¶
type AfterHandler ¶
type AfterHandler func(result *ServiceResult, res *Response)
type BeforeHandler ¶
type BeforeHandler gin.HandlerFunc
type Config ¶
type Config struct {
Address string `json:"address"`
RouteRegisters []RouteRegister `json:"-"`
LogFile string `json:"log_file"`
}
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func (*Response) ServiceResult ¶
type RouteRegister ¶
type ServiceResult ¶
Click to show internal directories.
Click to hide internal directories.