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

Method IsDraining

internal/manager/manager.go:448–450  ·  view source on GitHub ↗

IsDraining returns true if the session is in draining role

()

Source from the content-addressed store, hash-verified

446
447// IsDraining returns true if the session is in draining role
448func (s *Session) IsDraining() bool {
449 return s.Role == RoleDraining
450}
451
452// launchPrimarySession launches a new primary session
453func (cm *ConnManager) launchPrimarySession(ctx context.Context) {

Callers 4

TestSession_RoleMethodsFunction · 0.95
checkSessionsMethod · 0.80
GetCurrentMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestSession_RoleMethodsFunction · 0.76