Documentation
¶
Overview ¶
Package legalgate is a tiny, fail-closed "is this policy in force yet?" gate.
When a service announces an adverse policy change (a new data-retention or account-deletion rule, say) with a future effective date, the code path that enforces the new rule must stay gated until that date arrives — and must fail closed (treat the policy as not yet in force) when the configured date is malformed, so a typo can never silently enforce a policy early.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PolicyInForce ¶
PolicyInForce reports whether the policy with the given effective date (YYYY-MM-DD, interpreted at KST midnight) is in force at now.
A malformed effectiveDate returns false (fail-closed): the announced policy is treated as not yet in force rather than risk enforcing it early.
Types ¶
This section is empty.