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

Method IsPrimary

internal/manager/manager.go:438–440  ·  view source on GitHub ↗

IsPrimary returns true if the session is in primary role

()

Source from the content-addressed store, hash-verified

436
437// IsPrimary returns true if the session is in primary role
438func (s *Session) IsPrimary() bool {
439 return s.Role == RolePrimary
440}
441
442// IsSecondary returns true if the session is in secondary role
443func (s *Session) IsSecondary() bool {

Callers 5

TestSession_RoleMethodsFunction · 0.95
checkSessionsMethod · 0.80
GetCurrentMethod · 0.80
launchPrimarySessionMethod · 0.80
promoteSecondaryMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestSession_RoleMethodsFunction · 0.76