Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideRouterStrategy ¶
func RegisterGinRouters ¶
func RegisterGinRouters(p RegisterRouterIn)
Types ¶
type HttpStrategy ¶
type HttpStrategy struct { }
func (HttpStrategy) Handle ¶
func (h HttpStrategy) Handle(group *gin.RouterGroup, api qn.Api)
func (HttpStrategy) Protocol ¶
func (h HttpStrategy) Protocol() protocol.ProtocolType
type RegisterRouterIn ¶
type Strategy ¶
type Strategy interface { Protocol() protocol.ProtocolType Handle(group *gin.RouterGroup, api qn.Api) }
func NewHttpStrategy ¶
func NewHttpStrategy() Strategy
func NewWsStrategy ¶
func NewWsStrategy() Strategy
type WsStrategy ¶
type WsStrategy struct { }
func (WsStrategy) Handle ¶
func (w WsStrategy) Handle(group *gin.RouterGroup, api qn.Api)
func (WsStrategy) Protocol ¶
func (w WsStrategy) Protocol() protocol.ProtocolType
Click to show internal directories.
Click to hide internal directories.