MCPcopy Index your code
hub / github.com/authorizerdev/authorizer / StringValue

Function StringValue

internal/refs/string.go:9–17  ·  view source on GitHub ↗

StringValue returns the value of the given string ref

(r *string, defaultValue ...string)

Source from the content-addressed store, hash-verified

7
8// StringValue returns the value of the given string ref
9func StringValue(r *string, defaultValue ...string) string {
10 if r != nil {
11 return *r
12 }
13 if len(defaultValue) > 0 {
14 return defaultValue[0]
15 }
16 return ""
17}

Callers 15

TestTOTPAtRestFunction · 0.92
AuditLogsMethod · 0.92
InviteMembersMethod · 0.92
AddEmailTemplateMethod · 0.92
UpdateEmailTemplateMethod · 0.92
UpdateUserMethod · 0.92
DeleteUserMethod · 0.92
MagicLinkLoginMethod · 0.92
ResendOTPMethod · 0.92
DeactivateAccountMethod · 0.92
CheckPermissionsMethod · 0.92
ListPermissionsMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestTOTPAtRestFunction · 0.74