MCPcopy Create free account

hub / github.com/corestoreio/pkg / functions

Functions7,620 in github.com/corestoreio/pkg

↓ 6 callersFunctionMakePath
MakePath makes a new validated Path. Scope is assigned to Default.
config/path.go:218
↓ 6 callersMethodNameAlias
NameAlias quotes with back ticks and splits at a dot into the qualified or unqualified identifier. First argument table and/or column name (separated
sql/dml/naming.go:328
↓ 6 callersMethodParseStrings
ParseStrings parses the arguments into a valid path. scp must be a valid scope string as defined in stores/scope package. id must be a stringified uin
config/path.go:387
↓ 6 callersMethodPing
(ctx context.Context)
sql/dml/connection_callback.go:186
↓ 6 callersMethodPrepareContext
PrepareContext - the provided context is used for the preparation of the statement, not for the execution of the statement. PrepareContext creates a p
sql/dml/interfaces.go:32
↓ 6 callersMethodPrepareOptionFactory
PrepareOptionFactory creates a closure around the type Backend. The closure will be used during a scoped request to figure out the configuration depen
net/jwt/backendjwt/options.go:28
↓ 6 callersMethodQueryRowContext
(ctx context.Context, query string, args ...any)
sql/dml/interfaces.go:77
↓ 6 callersMethodRandomUnixTime
RandomUnixTime returns a random unix time stamp between now and the last 6 years.
util/pseudo/dates.go:53
↓ 6 callersMethodReset
Reset sets the value to Go's default value and Valid to false.
storage/null/bool.go:177
↓ 6 callersMethodReverse
Reverse is a convenience method.
util/slices/int64.go:45
↓ 6 callersMethodSeparators
Separators returns the number of separators
config/path.go:608
↓ 6 callersMethodShouldStart
ShouldStart reports true atomically for a specific uint64, if a process can start. Safe for concurrent use. You should check ShouldStart() first in yo
sync/suspend/state.go:114
↓ 6 callersMethodSpaceShip
()
sql/dml/condition.go:471
↓ 6 callersMethodStoreIDbyCode
StoreIDbyCode returns, depending on the runMode, for a storeCode its active store ID and its website ID. An empty runMode hash falls back to select th
store/service.go:46
↓ 6 callersMethodString
(name string)
sql/urlvalues/values.go:26
↓ 6 callersMethodStrs
Strs splits the converted data using the CSVComma and appends it to `ret`.
config/value.go:124
↓ 6 callersMethodSum64
()
sync/suspend/state_test.go:222
↓ 6 callersMethodTop
Top returns the highest stored scope within a Perm. A Perm can consists of 3 scopes: 1. Default -> 2. Website -> 3. Store Highest scope for a Perm wit
store/scope/perm.go:81
↓ 6 callersMethodType
Type returns the underlying assigned type.
store/scope/typeid.go:175
↓ 6 callersMethodUTC
UTC returns the UTC time
sql/dml/now.go:44
↓ 6 callersMethodUint64s
Uint64s converts the underlying byte slice into an int64 slice using v.CSVComma as a separator. The result gets append to argument `ret`.
config/value.go:420
↓ 6 callersMethodUpdate
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated/output_gen.go:3192
↓ 6 callersMethodValue
(key interface{})
net/accesslog/access_log_test.go:52
↓ 6 callersMethodWithPairs
WithPairs appends a column/value pair to the statement. Calling this function multiple times with the same column name will trigger an error. Slice va
sql/dml/insert.go:205
↓ 6 callersFunctionWithRSAPrivateKeyFromFile
WithRSAPrivateKeyFromFile parses PEM encoded PKCS1 or PKCS8 private key found in a file. Provide a password as a second argument when the private key
util/csjwt/keys.go:175
↓ 6 callersMethodWithRateLimit
WithRateLimit wraps an http.Handler to limit incoming requests. Requests that are not limited will be passed to the handler unchanged. Limited reques
net/ratelimit/service_mw.go:34
↓ 6 callersMethodWriteQualifierName
WriteQualifierName same as function QualifierName but writes into w.
sql/dml/naming.go:312
↓ 6 callersMethodappendNull
()
sql/dml/argument_encoder.go:98
↓ 6 callersFunctionassertNullFloat64
(t *testing.T, f Float64, from string)
storage/null/float64_test.go:234
↓ 6 callersFunctionassertStr
(t *testing.T, s String, from string)
storage/null/string_test.go:258
↓ 6 callersFunctionctxWithToken
(ctx context.Context, scheme string, token string)
net/csgrpc/auth/auth_test.go:66
↓ 6 callersMethodfindScopedConfig
findScopedConfig used in functional options to look up if a parent configuration exists and if not creates a newScopedConfig(). The scope.DefaultTypeI
net/internal/scopedservice/service_generic.go:330
↓ 6 callersMethodfirstName
(gender string)
util/pseudo/names.go:11
↓ 6 callersMethodinitDBRCacheKey
( ctx context.Context, l log.Logger, connSource, cacheKey string, isPrepared bool, db QueryExecPreparer,
sql/dml/connection.go:558
↓ 6 callersMethodinitDBRQB
( ctx context.Context, l log.Logger, connSource string, isPrepared bool, qb QueryBuilder, db QueryExecPr
sql/dml/connection.go:608
↓ 6 callersMethodlastName
(gender string)
util/pseudo/names.go:30
↓ 6 callersMethodloadPrimitive
(ctx context.Context, ptr any, args ...any)
sql/dml/dbr.go:1159
↓ 6 callersFunctionmakeCacheKey
(s scope.TypeID, r string)
config/storage/common.go:28
↓ 6 callersFunctionmustCheckErr
(err error)
store/codegen_main.go:121
↓ 6 callersFunctionnewTrieRoute
newTrieRoute allocates and returns a new *trieRoute.
config/route_trie.go:131
↓ 6 callersMethodrunExec
(ctx context.Context, o Options, qry string)
sql/ddl/table.go:274
↓ 6 callersMethodsetupTest
(tst *testing.T, testedFlavor string)
sql/myreplicator/replication_test.go:264
↓ 6 callersFunctionskipEntitiesGen
(dAtA []byte)
store/entities_gen.pb.go:1696
↓ 6 callersFunctionskipService
(dAtA []byte)
store/service.pb.go:1782
↓ 6 callersFunctionsovProto
(x uint64)
config/observer/proto.pb.go:342
↓ 6 callersFunctiontoJSON
* std library vs easyjson with json.Encoder name old time/op new time/op delta Service_Json_Encoding-4 251µs ± 1% 27
store/service_pub_test.go:69
↓ 6 callersMethodupdateScopedConfig
updateScopedConfig used in functional options to store a scoped configuration in the internal cache. This function gets called in a function option at
net/internal/scopedservice/service_generic.go:362
↓ 6 callersFunctionwithInt
(val int, ids ...scope.TypeID)
net/internal/scopedservice/service_mock.go:73
↓ 6 callersMethodwriteStr
fnv64a
util/hashpool/register.go:54
↓ 6 callersFunctionwriteTuplePlaceholders
(buf *bytes.Buffer, rowCount, columnCount uint)
sql/dml/builder.go:315
↓ 5 callersMethodAddGroup
(ctx context.Context, in *StoreGroup, opts ...grpc.CallOption)
store/service.pb.go:377
↓ 5 callersMethodAddOnDuplicateKeyExclude
AddOnDuplicateKeyExclude adds a column to the exclude list. As soon as a column gets set with this function the ON DUPLICATE KEY clause gets generated
sql/dml/insert.go:189
↓ 5 callersMethodAddStore
(ctx context.Context, in *Store, opts ...grpc.CallOption)
store/service.pb.go:381
↓ 5 callersMethodAddWebsite
(ctx context.Context, in *StoreWebsite, opts ...grpc.CallOption)
store/service.pb.go:373
↓ 5 callersMethodAllInvocations
AllInvocations returns all called paths and increases the counter for duplicated paths.
config/fake.go:113
↓ 5 callersMethodAppend
Append adds s (variadic) to the StringSlice
util/slices/string.go:45
↓ 5 callersMethodByte
Byte reads a []byte value and appends it to the arguments slice or assigns the []byte value stored in sql.RawBytes to the pointer. See the documentati
sql/dml/mapper.go:1092
↓ 5 callersMethodClose
Close must be called to terminate the internal goroutine.
net/responseproxy/pipe_writer.go:35
↓ 5 callersMethodCommit
Commit finishes the transaction. It logs the time taken, if a logger has been set with Info logging enabled.
sql/dml/connection.go:1085
↓ 5 callersMethodConfig
Config to configure the current instance
eav/attribute_data.go:49
↓ 5 callersMethodConfigByScopeID
ConfigByScopeID returns the correct configuration for a scope and may fall back to the next higher scope: store -> website -> default. If `current` Ty
net/geoip/service_generic.go:257
↓ 5 callersMethodConfigByScopeID
ConfigByScopeID returns the correct configuration for a scope and may fall back to the next higher scope: store -> website -> default. If `current` Ty
net/jwt/service_generic.go:257
↓ 5 callersMethodContains
Contains checks if the algorithm has already been added
util/csjwt/signing_method.go:122
↓ 5 callersMethodDomainName
DomainName generates random domain name
util/pseudo/internet.go:29
↓ 5 callersMethodFind
Find returns a Section pointer or -1 if section not found. Route must be a single part. E.g. if you have path "a/b/c" route would be in this case "a".
config/elements.go:199
↓ 5 callersMethodFindField
FindField searches for a field using all path segments. Route must have the format a/b/c. 2nd return parameter contains the position of the Field with
config/elements.go:230
↓ 5 callersMethodFloat64s
Float64s splits the converted data using the CSVComma and appends it to `ret`.
config/value.go:260
↓ 5 callersFunctionFromRegistryHMAC
FromRegisterHMAC returns a pool with a HMAC hash from a previously registered hash. Key aka. password. The newly generated hash pool will be internall
util/hashpool/register.go:144
↓ 5 callersMethodGetMulti
GetMulti allows a cache backend to retrieve several values at once. Same decoding logic applies as when calling `Get`.
storage/objcache/service.go:363
↓ 5 callersMethodGoString
GoString prints an optimized Go representation.
storage/null/bool.go:88
↓ 5 callersMethodGroupByID
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:379
↓ 5 callersMethodGroups
Groups returns a cached slice containing all Groups with its associated stores and websites. You shall not modify the returned slice.
store/service.go:594
↓ 5 callersMethodHash64ByLevel
Hash64ByLevel same as Level() but returns a HighwayHash-64 checksum of data. Usage as map key.
config/path.go:582
↓ 5 callersMethodInitialized
Initialized returns true if the type State has been initialized with the call to NewHashState().
sync/suspend/state.go:71
↓ 5 callersMethodInt64
Int64 converts the underlying uint64 to an int64. Very useful for creating a new 3rd party package type/object. If the Precision field overflows math.
storage/null/decimal.go:210
↓ 5 callersMethodIsBlobDataType
IsBlobDataType returns true if the columns data type is neither blob, text, binary nor json. It doesn't matter if tiny, long or small has been prefixe
sql/ddl/columns.go:588
↓ 5 callersFunctionMakeDecimalInt64
MakeDecimalInt64 converts an int64 with the scale to a Decimal.
storage/null/decimal.go:67
↓ 5 callersMethodMakeEventRoute
MakeEventRoute extracts a validated event and a route from the data.
config/observer/json.go:135
↓ 5 callersFunctionNewHead
NewHead creates a new minimum default header. Arguments alg can be optionally applied one time to define an algorithm but in all cases the algorithm g
util/csjwt/claims.go:89
↓ 5 callersFunctionNewSelectWithDerivedTable
NewSelectWithDerivedTable creates a new derived table (Subquery in the FROM Clause) using the provided sub-select in the FROM part together with an al
sql/dml/select.go:71
↓ 5 callersFunctionNewSigningMethodHS512
NewSigningMethodHS512 creates a new 512bit HMAC SHA instance and registers it.
util/csjwt/hmac_sha.go:35
↓ 5 callersFunctionNewVariables
NewVariables creates a new variable collection. If the argument names gets passed, the SQL query will load the all variables matching the names. Empty
sql/ddl/variables.go:34
↓ 5 callersMethodOrderByRandom
OrderByRandom sorts the table randomly by not using ORDER BY RAND() rather using a JOIN with the single primary key column. This function overwrites p
sql/dml/select.go:298
↓ 5 callersMethodParse
Parse takes a route or a fully qualified path and splits it into its parts with final validation. Input: stores/5/catalog/frontend/list_allow_all or j
config/path.go:349
↓ 5 callersMethodPingList
(ping *pb_testproto.PingRequest, stream pb_testproto.TestService_PingListServer)
net/csgrpc/auth/auth_test.go:61
↓ 5 callersFunctionRegisterFactory
RegisterFactory adds a custom observer factory to the global registry. A custom observer can be accessed via Configuration.MakeObserver or via Registe
config/observer/observer.go:41
↓ 5 callersMethodRename
Rename renames the current table to the new table name. Renaming is an atomic operation in the database. As long as two databases are on the same file
sql/ddl/table.go:313
↓ 5 callersMethodReset
Reset sets the value to Go's default value and Valid to false.
storage/null/decimal.go:182
↓ 5 callersMethodRightJoin
RightJoin creates a RIGHT join construct. By default, the onConditions are glued together with AND.
sql/dml/delete.go:99
↓ 5 callersMethodRouteHasPrefix
RouteHasPrefix returns true if the Paths' route starts with the argument route
config/path.go:742
↓ 5 callersMethodSchema
Schema returns the database name as provided in the DSN. Returns an empty string if no DSN has been set.
sql/dml/connection.go:699
↓ 5 callersMethodSelectByPK
SelectByPK creates a new `SELECT columns FROM table WHERE id = ?`. If "*" gets set as an argument, then all columns will be added to to list of column
sql/ddl/table.go:229
↓ 5 callersFunctionSetHeaderAuthorization
SetHeaderAuthorization convenience function to set the Authorization Bearer Header on a request for a given token.
net/jwt/service_mw_runmode.go:31
↓ 5 callersMethodShouldWait
ShouldWait checks atomically if the State has been set to run and if so the calling Goroutine waits until Done() has been called. You should use Shoul
sync/suspend/state.go:143
↓ 5 callersMethodSort
Sort sorts the collection by constraint name.
sql/ddl/foreign_key.go:94
↓ 5 callersMethodStoreByID
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:383
↓ 5 callersMethodText
Text allows to encode an object to its text representation when arguments are requested and to decode a byte slice into its object when data is retrie
sql/dml/mapper.go:1120
↓ 5 callersMethodTimes
(t ...time.Time)
sql/dml/interpolate.go:221
↓ 5 callersMethodURL
URL generates random URL standardised in urlFormats const
util/pseudo/internet.go:107
↓ 5 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Bool if the input is a blank or not an integer. It will return an error
storage/null/bool.go:139
← previousnext →601–700 of 7,620, ranked by callers