Documentation
¶
Index ¶
- Constants
- type BackendReader
- type ConfigManager
- type HTTPHandler
- type Managers
- type Server
- func (h *Server) BackendMetrics(c *gin.Context)
- func (h *Server) Close() error
- func (h *Server) ConfigGet(c *gin.Context)
- func (h *Server) ConfigSet(c *gin.Context)
- func (h *Server) DebugHealth(c *gin.Context)
- func (h *Server) DebugRedirect(c *gin.Context)
- func (h *Server) NamespaceCommit(c *gin.Context)
- func (h *Server) NamespaceGet(c *gin.Context)
- func (h *Server) NamespaceList(c *gin.Context)
- func (h *Server) NamespaceRemove(c *gin.Context)
- func (h *Server) NamespaceUpsert(c *gin.Context)
- func (h *Server) PreClose()
- func (h *Server) TrafficCancel(c *gin.Context)
- func (h *Server) TrafficCapture(c *gin.Context)
- func (h *Server) TrafficReplay(c *gin.Context)
- func (h *Server) TrafficShow(c *gin.Context)
Constants ¶
View Source
const ( // DefAPILimit is the global API limit per second. DefAPILimit = 100 // DefConnTimeout is used as timeout duration in the HTTP server. DefConnTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendReader ¶ added in v1.2.0
type BackendReader interface {
GetBackendMetrics() []byte
}
type ConfigManager ¶
type ConfigManager interface {
GetConfig() *config.Config
SetTOMLConfig(data []byte) error
GetConfigChecksum() uint32
GetNamespace(ctx context.Context, ns string) (*config.Namespace, error)
ListAllNamespace(ctx context.Context) ([]*config.Namespace, error)
SetNamespace(ctx context.Context, ns string, nsc *config.Namespace) error
DelNamespace(ctx context.Context, ns string) error
}
type HTTPHandler ¶
type Managers ¶ added in v1.3.0
type Managers struct {
CfgMgr ConfigManager
NsMgr mgrns.NamespaceManager
CertMgr *mgrcrt.CertManager
BackendReader BackendReader
ReplayJobMgr mgrrp.JobManager
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) BackendMetrics ¶ added in v1.2.0
func (*Server) DebugHealth ¶
func (*Server) DebugRedirect ¶
func (*Server) NamespaceCommit ¶
func (*Server) NamespaceGet ¶
func (*Server) NamespaceList ¶
func (*Server) NamespaceRemove ¶
func (*Server) NamespaceUpsert ¶
func (*Server) TrafficCancel ¶ added in v1.3.1
func (*Server) TrafficCapture ¶ added in v1.3.0
func (*Server) TrafficReplay ¶ added in v1.3.0
func (*Server) TrafficShow ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.