Documentation
¶
Index ¶
- func Deref(val reflect.Value) reflect.Value
- func ExtractUUID(val reflect.Value, fieldName string) (uuid.UUID, bool)
- func GetIntField(val reflect.Value, name string) (int, bool)
- func MapFieldAny(val reflect.Value, fieldName string) map[string]any
- func ResolveActiveLocaleCodes(ctx context.Context, resolver LocaleResolver) ([]string, error)
- func ResolveLocaleID(ctx context.Context, cache *LocaleIDCache, localeCode string) (uuid.UUID, bool)
- func SetMapField(val reflect.Value, fieldName string, value map[string]any)
- func SetStringField(val reflect.Value, fieldName string, value string)
- type ActiveLocaleResolver
- type LocaleIDCache
- type LocaleResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveActiveLocaleCodes ¶
func ResolveActiveLocaleCodes(ctx context.Context, resolver LocaleResolver) ([]string, error)
func ResolveLocaleID ¶ added in v0.33.0
Types ¶
type ActiveLocaleResolver ¶
type ActiveLocaleResolver interface {
ActiveLocales(ctx context.Context) ([]cms.LocaleInfo, error)
}
type LocaleIDCache ¶
type LocaleIDCache struct {
// contains filtered or unexported fields
}
func NewLocaleIDCache ¶
func NewLocaleIDCache(resolver LocaleResolver) *LocaleIDCache
type LocaleResolver ¶
Click to show internal directories.
Click to hide internal directories.