Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpHandler ¶
func NewHttpHandler(httpType HTTPType, method string, handler ...gin.HandlerFunc) func() IHandler
Types ¶
type Handler ¶
type Handler struct { HttpType HTTPType Method string Handler []gin.HandlerFunc }
func (*Handler) GetHandler ¶
func (h *Handler) GetHandler() []gin.HandlerFunc
func (*Handler) GetHttpType ¶
type HttpBuilder ¶
type HttpBuilder interface { SetPort(port string) HttpBuilder SetStatics(statics map[string]string) HttpBuilder SetWriteTimeout(d time.Duration) HttpBuilder SetReadTimeout(d time.Duration) HttpBuilder SetLogger(logger log.Logger) HttpBuilder AddApiInterceptors(...gin.HandlerFunc) HttpBuilder AddRouterInterceptors(...gin.HandlerFunc) HttpBuilder AddSystemHandlers(...IHandler) HttpBuilder Build(lifecycle fx.Lifecycle) gin.IRouter SetDiscoveryServiceProvider(dsp discoveryService.DiscoveryServiceProvider) HttpBuilder }
Click to show internal directories.
Click to hide internal directories.