Documentation ¶
Index ¶
- func Initialize(ctx context.Context, namingService service.DiscoverServer, ...) error
- type ConnCountResp
- type ConnReq
- type ConnStatsResp
- type MaintainOperateServer
- type Server
- func (s *Server) CleanInstance(ctx context.Context, req *api.Instance) *api.Response
- func (s *Server) CloseConnections(_ context.Context, reqs []ConnReq) error
- func (s *Server) FreeOSMemory(_ context.Context) error
- func (s *Server) GetLastHeartbeat(_ context.Context, req *api.Instance) *api.Response
- func (s *Server) GetLogOutputLevel(_ context.Context) (map[string]string, error)
- func (s *Server) GetServerConnStats(_ context.Context, req *ConnReq) (*ConnStatsResp, error)
- func (s *Server) GetServerConnections(_ context.Context, req *ConnReq) (*ConnCountResp, error)
- func (s *Server) SetLogOutputLevel(_ context.Context, scope string, level string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(ctx context.Context, namingService service.DiscoverServer, healthCheckServer *healthcheck.Server) error
Initialize 初始化
Types ¶
type ConnCountResp ¶
type ConnStatsResp ¶
type MaintainOperateServer ¶
type MaintainOperateServer interface { // GetServerConnections Get connection count GetServerConnections(ctx context.Context, req *ConnReq) (*ConnCountResp, error) // GetServerConnStats 获取连接缓存里面的统计信息 GetServerConnStats(ctx context.Context, req *ConnReq) (*ConnStatsResp, error) // CloseConnections Close connection by ip CloseConnections(ctx context.Context, reqs []ConnReq) error // FreeOSMemory Free system memory FreeOSMemory(ctx context.Context) error // CleanInstance Clean deleted instance CleanInstance(ctx context.Context, req *api.Instance) *api.Response // GetLastHeartbeat Get last heartbeat GetLastHeartbeat(ctx context.Context, req *api.Instance) *api.Response // GetLogOutputLevel Get log output level GetLogOutputLevel(ctx context.Context) (map[string]string, error) // SetLogOutputLevel Set log output level by scope SetLogOutputLevel(ctx context.Context, scope string, level string) error }
MaintainOperateServer Maintain related operation
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CleanInstance ¶
func (*Server) CloseConnections ¶
func (*Server) GetLastHeartbeat ¶
func (*Server) GetLogOutputLevel ¶
func (*Server) GetServerConnStats ¶
func (*Server) GetServerConnections ¶
Click to show internal directories.
Click to hide internal directories.