Versions in this module Expand all Collapse all v1 v1.0.8 Jul 8, 2022 Changes in this version + var RESPONSE = make(map[int]interface{}, 12) + func RemoteAddr(c *gin.Context) string + type BaseServer struct + func (s *BaseServer) NewEngine(opts ...Option) *gin.Engine + func (s *BaseServer) Start() + type Option func(options *Options) + type Options struct + CORSAllowedHeaders []string + CORSAllowedMethods []string + CORSAllowedOrigins []string + DisableCORS bool + Host string + MaxHeaderBytes int + Name string + Port int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + SSLCrtFile string + SSLKeyFile string + WriteTimeout time.Duration + type Response struct + Code int + Data interface{} + ErrorNo int + Msg string + func FormatResponse(status int, data interface{}) (int, *Response)