Documentation
¶
Index ¶
- func RealClientIPMiddleware() gin.HandlerFunc
- func RoundTripOf(cli agents.Client) http.RoundTripper
- type PluginInfoGetter
- func (p *PluginInfoGetter) ClusterNameOf(tenant, project, environment string) (clusterName string)
- func (p *PluginInfoGetter) NacosInfoOf(clusterName string) (addr, username, password string, err error)
- func (p *PluginInfoGetter) RoundTripperOf(clusterName string) (rt http.RoundTripper)
- func (p *PluginInfoGetter) Username(c *gin.Context) string
- type RoundTripperFunc
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RealClientIPMiddleware ¶
func RealClientIPMiddleware() gin.HandlerFunc
func RoundTripOf ¶
func RoundTripOf(cli agents.Client) http.RoundTripper
Types ¶
type PluginInfoGetter ¶
type PluginInfoGetter struct {
base.BaseHandler
}
func (*PluginInfoGetter) ClusterNameOf ¶
func (p *PluginInfoGetter) ClusterNameOf(tenant, project, environment string) (clusterName string)
func (*PluginInfoGetter) NacosInfoOf ¶
func (p *PluginInfoGetter) NacosInfoOf(clusterName string) (addr, username, password string, err error)
func (*PluginInfoGetter) RoundTripperOf ¶
func (p *PluginInfoGetter) RoundTripperOf(clusterName string) (rt http.RoundTripper)
type RoundTripperFunc ¶
Click to show internal directories.
Click to hide internal directories.