proxy

package
v0.0.0-...-89d789c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamNamespace = "namespace"
	ParamBreaker   = "breaker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonJsonResp

type CommonJsonResp struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

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 (*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)

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(cfg *config.Proxy) *Proxy

func (*Proxy) Close

func (p *Proxy) Close()

func (*Proxy) Init

func (p *Proxy) Init() error

func (*Proxy) Run

func (p *Proxy) Run() error

TODO(eastfisher): refactor this function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL