Documentation ¶
Index ¶
- Constants
- type HTTPHandler
- type Server
- 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)
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 HTTPHandler ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg config.API, lg *zap.Logger, isClosing func() bool, nsmgr *mgrns.NamespaceManager, cfgmgr *mgrcfg.ConfigManager, crtmgr *mgrcrt.CertManager, handler HTTPHandler, ready *atomic.Bool) (*Server, error)
func (*Server) DebugHealth ¶
func (*Server) DebugRedirect ¶
func (*Server) NamespaceCommit ¶
func (*Server) NamespaceGet ¶
func (*Server) NamespaceList ¶
func (*Server) NamespaceRemove ¶
func (*Server) NamespaceUpsert ¶
Click to show internal directories.
Click to hide internal directories.