MCPcopy
hub / github.com/pocketbase/pocketbase / DurationTime

Method DurationTime

core/settings_model.go:761–763  ·  view source on GitHub ↗

DurationTime returns the tag's Duration as [time.Duration].

()

Source from the content-addressed store, hash-verified

759
760// DurationTime returns the tag's Duration as [time.Duration].
761func (c RateLimitRule) DurationTime() time.Duration {
762 return time.Duration(c.Duration) * time.Second
763}
764
765// String returns a string representation of the rule.
766func (c RateLimitRule) String() string {

Callers 15

DeleteExpiredOTPsMethod · 0.45
DeleteExpiredMFAsMethod · 0.45
newAuthTokenMethod · 0.45
NewVerificationTokenMethod · 0.45
NewPasswordResetTokenMethod · 0.45
NewEmailChangeTokenMethod · 0.45
NewFileTokenMethod · 0.45

Calls

no outgoing calls