Documentation ¶
Index ¶
- type GatewayHealthServicer
- func (s *GatewayHealthServicer) Disable(ctx context.Context, req *protos.DisableMessage) (*orcprotos.Void, error)
- func (s *GatewayHealthServicer) Enable(ctx context.Context, req *orcprotos.Void) (*orcprotos.Void, error)
- func (s *GatewayHealthServicer) GetHealthStatus(ctx context.Context, req *orcprotos.Void) (*protos.HealthStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayHealthServicer ¶
type GatewayHealthServicer struct {
// contains filtered or unexported fields
}
func NewGatewayHealthServicer ¶
func NewGatewayHealthServicer( cfg *mconfig.CwfGatewayHealthConfig, greProbe gre_probe.GREProbe, serviceHealth service_health.ServiceHealth, systemHealth system_health.SystemHealth, ) *GatewayHealthServicer
NewGatewayHealthServicer constructs a GatewayHealthServicer.
func (*GatewayHealthServicer) Disable ¶
func (s *GatewayHealthServicer) Disable(ctx context.Context, req *protos.DisableMessage) (*orcprotos.Void, error)
Disable disables datapath and service functionality. It disables datapath functionality by adding a drop rule for ICMP on eth1 of the gateway to ensure the standby gateway's GRE tunnel is perceived as being down by the AP/WLC. It disables service functionality by stopping to ensure the RADIUS server is perceived as being down.
func (*GatewayHealthServicer) Enable ¶
func (s *GatewayHealthServicer) Enable(ctx context.Context, req *orcprotos.Void) (*orcprotos.Void, error)
Enable ensures ICMP is enabled on eth1, then restarts radius and sessiond to trigger initialization of the gateway.
func (*GatewayHealthServicer) GetHealthStatus ¶
func (s *GatewayHealthServicer) GetHealthStatus(ctx context.Context, req *orcprotos.Void) (*protos.HealthStatus, error)
GetHealthStatus retrieves a health status object which contains the current health of the gateway.
Click to show internal directories.
Click to hide internal directories.