Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParamNamespace = "namespace" ParamBreaker = "breaker" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonJsonResp ¶
func CreateJsonResp ¶
func CreateJsonResp(code int, msg string) CommonJsonResp
func CreateSuccessJsonResp ¶
func CreateSuccessJsonResp() CommonJsonResp
type HttpApiServer ¶
type HttpApiServer struct {
// contains filtered or unexported fields
}
func CreateHttpApiServer ¶
func CreateHttpApiServer(proxyServer *server.Server, nsmgr *namespace.NamespaceManager, cfgCenter configcenter.ConfigCenter, cfg *config.Proxy) (*HttpApiServer, error)
func (*HttpApiServer) Close ¶
func (h *HttpApiServer) Close()
func (*HttpApiServer) Run ¶
func (h *HttpApiServer) Run()
type NamespaceHttpHandler ¶
type NamespaceHttpHandler struct {
// contains filtered or unexported fields
}
func NewNamespaceHttpHandler ¶
func NewNamespaceHttpHandler(nsmgr *namespace.NamespaceManager, cfgCenter configcenter.ConfigCenter) *NamespaceHttpHandler
func (*NamespaceHttpHandler) AddHandlersToRouteGroup ¶
func (n *NamespaceHttpHandler) AddHandlersToRouteGroup(group *gin.RouterGroup)
func (*NamespaceHttpHandler) HandleCommitReload ¶
func (n *NamespaceHttpHandler) HandleCommitReload(c *gin.Context)
func (*NamespaceHttpHandler) HandlePrepareReload ¶
func (n *NamespaceHttpHandler) HandlePrepareReload(c *gin.Context)
func (*NamespaceHttpHandler) HandleRemoveNamespace ¶
func (n *NamespaceHttpHandler) HandleRemoveNamespace(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.