MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / IsSecondary

Method IsSecondary

internal/manager/manager.go:443–445  ·  view source on GitHub ↗

IsSecondary returns true if the session is in secondary role

()

Source from the content-addressed store, hash-verified

441
442// IsSecondary returns true if the session is in secondary role
443func (s *Session) IsSecondary() bool {
444 return s.Role == RoleSecondary
445}
446
447// IsDraining returns true if the session is in draining role
448func (s *Session) IsDraining() bool {

Callers 4

TestSession_RoleMethodsFunction · 0.95
checkSessionsMethod · 0.80
GetCurrentMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestSession_RoleMethodsFunction · 0.76