Documentation
¶
Index ¶
- func InjectGatewayConfig(s *GatewayConfig)
- func LoadGatewayConfig() baseiface.ISingleton
- type GatewayConfig
- type GatewayRouter
- func (r *GatewayRouter) CheckLoginAuth(ctx *gin.Context) *basedto.IchubResult
- func (r *GatewayRouter) Delete(ctx *gin.Context) *webclient.WebMsgProxyResp
- func (r *GatewayRouter) DestPath() string
- func (r *GatewayRouter) Filter(ctx *gin.Context) *basedto.IchubResult
- func (r *GatewayRouter) Get(ctx *gin.Context) *webclient.WebMsgProxyResp
- func (r *GatewayRouter) Parse(ctx *gin.Context) *GatewayRouter
- func (r *GatewayRouter) Post(ctx *gin.Context) *webclient.WebMsgProxyResp
- func (r *GatewayRouter) Put(ctx *gin.Context) *webclient.WebMsgProxyResp
- func (r *GatewayRouter) RefreshAddr() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectGatewayConfig ¶
func InjectGatewayConfig(s *GatewayConfig)
func LoadGatewayConfig ¶
func LoadGatewayConfig() baseiface.ISingleton
Types ¶
type GatewayConfig ¶
type GatewayConfig struct {
basedto.BaseEntity
Config *ichubconfig.IchubConfig `json:"-"`
ServiceId string `json:"service_id"`
Path string `json:"path"`
}
func FindBeanGatewayConfig ¶
func FindBeanGatewayConfig() *GatewayConfig
func NewGatewayConfig ¶
func NewGatewayConfig() *GatewayConfig
func (*GatewayConfig) Bypass ¶
func (this *GatewayConfig) Bypass() bool
func (*GatewayConfig) FindServiceName ¶
func (this *GatewayConfig) FindServiceName() string
func (*GatewayConfig) FullPath ¶
func (this *GatewayConfig) FullPath() string
func (*GatewayConfig) LogGateway ¶
func (this *GatewayConfig) LogGateway()
type GatewayRouter ¶
type GatewayRouter struct {
*GatewayConfig
WebClient *webclient.IchubWebClient
}
func NewGatewayRouter ¶
func NewGatewayRouter() *GatewayRouter
func (*GatewayRouter) CheckLoginAuth ¶
func (r *GatewayRouter) CheckLoginAuth(ctx *gin.Context) *basedto.IchubResult
func (*GatewayRouter) Delete ¶
func (r *GatewayRouter) Delete(ctx *gin.Context) *webclient.WebMsgProxyResp
func (*GatewayRouter) DestPath ¶
func (r *GatewayRouter) DestPath() string
func (*GatewayRouter) Filter ¶
func (r *GatewayRouter) Filter(ctx *gin.Context) *basedto.IchubResult
func (*GatewayRouter) Get ¶
func (r *GatewayRouter) Get(ctx *gin.Context) *webclient.WebMsgProxyResp
func (*GatewayRouter) Parse ¶
func (r *GatewayRouter) Parse(ctx *gin.Context) *GatewayRouter
gateway/deptemp/queryemp consts ApiGateway = "/gateway/:serviceId/*path"
func (*GatewayRouter) Post ¶
func (r *GatewayRouter) Post(ctx *gin.Context) *webclient.WebMsgProxyResp
copyHeaders
func (*GatewayRouter) Put ¶
func (r *GatewayRouter) Put(ctx *gin.Context) *webclient.WebMsgProxyResp
func (*GatewayRouter) RefreshAddr ¶
func (r *GatewayRouter) RefreshAddr() error
Click to show internal directories.
Click to hide internal directories.