func getMergedPerms(lg *zap.Logger, tx backend.ReadTx, userName string) *unifiedRangePermissions { … } func checkKeyInterval( lg *zap.Logger, cachedPerms *unifiedRangePermissions, key, rangeEnd []byte, permtyp authpb.Permission_Type) bool { … } func checkKeyPoint(lg *zap.Logger, cachedPerms *unifiedRangePermissions, key []byte, permtyp authpb.Permission_Type) bool { … } func (as *authStore) isRangeOpPermitted(userName string, key, rangeEnd []byte, permtyp authpb.Permission_Type) bool { … } func (as *authStore) refreshRangePermCache(tx backend.ReadTx) { … } type unifiedRangePermissions … func isOpenEnded(rangeEnd []byte) bool { … } func isValidPermissionRange(key, rangeEnd []byte) bool { … }