MCPcopy Create free account

hub / github.com/corestoreio/pkg / functions

Functions7,620 in github.com/corestoreio/pkg

↓ 4 callersMethodReduceContains
ReduceContains reduces itself if the parts of the in slice are contained within itself.
util/slices/string.go:132
↓ 4 callersMethodReplaceEnvName
ReplaceEnvName replaces the occurrence of the value of constant EnvNamePlaceHolder with the current configured environment name. If no environment nam
config/service.go:225
↓ 4 callersMethodScan
Scan implements the Scanner interface. Approx. >2x times faster than database/sql.convertAssign.
storage/null/string.go:54
↓ 4 callersMethodScan
Scan implements the Scanner interface. Approx. >3x times faster than database/sql.convertAssign.
storage/null/decimal.go:163
↓ 4 callersMethodSentence
Sentence generates random sentence. If maxLen > 0, it will be considered as the total length of one sentence. The sentence gets cut after maxLen bytes
util/pseudo/lorem_ipsum.go:63
↓ 4 callersMethodSort
Sort convenience helper. Not thread safe.
config/elements.go:449
↓ 4 callersMethodSortByLabel
SortByLabel sorts by label in asc = 0 or desc != 0 direction
config/_cfgsource/slice.go:37
↓ 4 callersMethodStartSync
StartSync starts syncing from the `pos` position.
sql/myreplicator/binlogsyncer.go:364
↓ 4 callersMethodStop
Stop closes the channel stops the daemon
email/daemon.go:176
↓ 4 callersMethodStoreIDs
StoreIDs returns a slice with the data or appends it to a slice. Auto generated.
store/entities_gen.go:167
↓ 4 callersMethodString
String returns a fully qualified path. Errors get logged if debug mode is enabled. String starts with `[config] Error:` on error. Error behaviour: Not
config/path.go:293
↓ 4 callersMethodSwap
Swap swaps the current table with the other table of the same structure. Renaming is an atomic operation in the database. Note: indexes won't get swap
sql/ddl/table.go:339
↓ 4 callersMethodTitle
Title generates from 2 to 5 titleized words
util/pseudo/lorem_ipsum.go:57
↓ 4 callersFunctionToIntSlice
(i interface{})
util/conv/cast.go:90
↓ 4 callersMethodToIntString
ToIntString converts the TypeID to a stringyfied number representation.
store/scope/typeid.go:80
↓ 4 callersFunctionToStringMapString
(i interface{})
util/conv/cast.go:55
↓ 4 callersFunctionToTimeE
ToTimeE casts an empty interface to time.Time. Supported types: time.Time, string, int64 and float64. float64 fractals gets applied as nsec.
util/conv/caste.go:25
↓ 4 callersMethodUint64
Uint64 returns for a given key its uint64 value. If the key does not exists or string parsing into uint fails, it returns false.
sql/ddl/variables.go:71
↓ 4 callersMethodUnmarshalBinary
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
storage/null/bool.go:204
↓ 4 callersMethodUnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
config/observer/json_easyjson.go:233
↓ 4 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null String if the input is a blank string.
storage/null/string.go:162
↓ 4 callersMethodUnmarshalText
UnmarshalText parses the byte slice to create a time type.
storage/null/time.go:112
↓ 4 callersMethodUnsafeBool
UnsafeBool same as Bool but ignores errors.
config/value.go:224
↓ 4 callersMethodUserName
UserName generates user name in one of the following forms first name + last name, letter + last names or concatenation of from 1 to 3 lowercased word
util/pseudo/internet.go:11
↓ 4 callersMethodWebsite
Website returns the cached Website from an ID including all of its groups and all related stores. The returned pointer is owned by the Service. You mu
store/service.go:546
↓ 4 callersMethodWithCountryByIP
WithCountryByIP is a simple middleware which detects the country via an IP address. With the detected country a new tree context.Context gets created.
net/geoip/service_mw.go:65
↓ 4 callersMethodWithDBR
(db QueryExecPreparer)
sql/dml/dbr.go:259
↓ 4 callersFunctionWithGCRAStore
WithGCRAStore creates a new GCRA rate limiter with a custom storage backend. Duration: (s second,i minute,h hour,d day) GCRA => https://en.wikipedia.o
net/ratelimit/options.go:73
↓ 4 callersFunctionWithPassword
WithPassword uses the byte slice as the password for the HMAC-SHA signing method.
util/csjwt/keys.go:101
↓ 4 callersFunctionWithRateLimiter
WithRateLimiter creates a rate limiter for a specific scope with its ID. The rate limiter is already warmed up.
net/ratelimit/options.go:51
↓ 4 callersMethodWord
Word generates random word
util/pseudo/lorem_ipsum.go:30
↓ 4 callersMethodWordsN
WordsN generates n random words
util/pseudo/lorem_ipsum.go:39
↓ 4 callersMethodWriteTo
WriteTo implements io.WriterTo and writes the current position and file name to w.
sql/ddl/replication.go:107
↓ 4 callersMethodYear
Year generates year using the given boundaries
util/pseudo/dates.go:41
↓ 4 callersMethodappendBools
(args ...bool)
sql/dml/argument_encoder.go:190
↓ 4 callersMethodappendNullBool
(args ...null.Bool)
sql/dml/argument_encoder.go:252
↓ 4 callersMethodappendNullFloat64
(args ...null.Float64)
sql/dml/argument_encoder.go:228
↓ 4 callersMethodappendNullInt64
(args ...null.Int64)
sql/dml/argument_encoder.go:240
↓ 4 callersMethodappendNullString
(args ...null.String)
sql/dml/argument_encoder.go:216
↓ 4 callersMethodappendNullTime
(args ...null.Time)
sql/dml/argument_encoder.go:268
↓ 4 callersMethodappendString
(s string)
sql/dml/argument_encoder.go:166
↓ 4 callersMethodappendStrings
(args ...string)
sql/dml/argument_encoder.go:172
↓ 4 callersMethodappendTime
(t time.Time)
sql/dml/argument_encoder.go:202
↓ 4 callersMethodappendTimes
(args ...time.Time)
sql/dml/argument_encoder.go:208
↓ 4 callersMethodappendToFile
(tpl string, data interface{}, addFM template.FuncMap)
_codegen/tableToStruct/generator.go:128
↓ 4 callersFunctionauthFromMD
(ctx context.Context, expectedScheme string)
net/csgrpc/auth/metadata.go:46
↓ 4 callersFunctionbenchmarkTank_Hash64
(wantHash uint64, h func() hash.Hash64)
util/hashpool/hashpool_test.go:165
↓ 4 callersFunctioncheckPersonWasFilled
(b *testing.B, p fakePerson)
sql/dml/benchmark_integration_test.go:298
↓ 4 callersFunctioncleanIdentifier
cleanIdentifier removes all invalid characters https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
sql/ddl/identifier.go:55
↓ 4 callersFunctioncloneStringSlice
(sl []string)
sql/dml/naming.go:475
↓ 4 callersFunctioncompareExecContext
(t testing.TB, ex StmtExecer, args []any, lastInsertID, rowsAffected int64)
sql/dml/dml_test.go:344
↓ 4 callersFunctionconvert
convert converts a list of string using the passed converter function
net/cors/utils.go:39
↓ 4 callersMethodcountSep
()
config/value.go:251
↓ 4 callersFunctioncreateRealSession
TEST HELPERS
sql/dml/dml_test.go:36
↓ 4 callersMethoddecodeCount
(data []byte, isSmall bool)
sql/myreplicator/json_binary.go:445
↓ 4 callersMethoddecodeObjectOrArray
(data []byte, isSmall bool, isObject bool)
sql/myreplicator/json_binary.go:137
↓ 4 callersFunctiondidPanic
didPanic returns true if the function passed to it panics. Otherwise, it returns false.
util/assert/assertions.go:970
↓ 4 callersFunctiondriverValue
(appendTo []any, dvs ...driver.Valuer)
sql/dml/argument.go:652
↓ 4 callersMethodeventSalesOrderStatusStateFunc
(ctx context.Context, ef dml.EventFlag, skipEvents bool, ec *SalesOrderStatusStates, e *SalesOrderStatusState)
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:165
↓ 4 callersMethodeventViewCustomerAutoIncrementFunc
(ctx context.Context, ef dml.EventFlag, skipEvents bool, ec *ViewCustomerAutoIncrements, e *ViewCustomerAutoIn
sql/dmlgen/dmltestgenerated/output_gen.go:723
↓ 4 callersMethodeventViewCustomerAutoIncrementFunc
(ctx context.Context, ef dml.EventFlag, skipEvents bool, ec *ViewCustomerAutoIncrements, e *ViewCustomerAutoIn
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:177
↓ 4 callersFunctionfinalHandler
(t *testing.T, wantRunMode scope.TypeID, wantStoreID, wantWebsiteID int64, wantStoreCtx bool)
net/runmode/middleware_test.go:42
↓ 4 callersFunctionforAllValues
( b dml.Conditions, field string, values []string, singleOpValue, multiOpValue dml.Op, )
sql/urlvalues/url_filter.go:160
↓ 4 callersMethodgetMethod
(t *Token)
util/csjwt/parser.go:178
↓ 4 callersFunctionincludeElement
containsElement try loop over the list check if the list includes the element. return (false, false) if impossible. return (true, false) if element wa
util/assert/assertions.go:742
↓ 4 callersFunctionisEmpty
isEmpty gets whether the specified object is considered empty or not.
util/assert/assertions.go:567
↓ 4 callersFunctionisUUIDvX
(str, version string)
util/validation/validator.go:452
↓ 4 callersMethodisValid
IsValid check if the scoped configuration is valid when: - Key - SigningMethod - Verifier has been set and no other previous error has occurred.
net/jwt/scopedConfig.go:73
↓ 4 callersFunctionjsonEncDecEqual
( t *testing.T, jsonMarshalFn func(v interface{}) ([]byte, error), jsonUnMarshalFn func(data []byte, v inte
storage/null/encoding_pub_test.go:161
↓ 4 callersFunctionloadData
Helper func: Read input from specified file or stdin
util/csjwt/cmd/jwt/app.go:67
↓ 4 callersFunctionmustCheckErr
(err error)
sql/mycanal/canal_main.go:186
↓ 4 callersFunctionmustCheckErr
(err error)
config/storage/db_client_main.go:78
↓ 4 callersFunctionnewScopedConfig
newScopedConfig creates a new object with the minimum needed configuration.
net/ratelimit/scopedConfig.go:49
↓ 4 callersFunctionnewService
(cfg config.Scoper, opts ...Option)
net/internal/scopedservice/service_generic.go:71
↓ 4 callersFunctionpanicIfErr
(errs ...error)
config/example_test.go:25
↓ 4 callersMethodparseFracTime
(t any)
sql/myreplicator/row_event.go:350
↓ 4 callersMethodprocess
process runs on each tree level and dispatches the events and checks for scope permission and default value.
config/route_trie.go:187
↓ 4 callersMethodreset
reset gets called when returning into the pool
sql/dml/mapper.go:89
↓ 4 callersMethodset
(wrkr uint, state stateID)
sync/bgwork/auto_scaling.go:96
↓ 4 callersMethodsetDataWithTag
(v reflect.Value, tag string, maxLen uint64, tagIsFieldName bool)
util/pseudo/fake.go:694
↓ 4 callersFunctionshortenEntityName
TODO: micro optimize later 8-) to reduce allocations
sql/ddl/identifier.go:164
↓ 4 callersFunctionsliceLen
(arg any)
sql/dml/argument.go:62
↓ 4 callersMethodsort
()
net/auth/scopedConfig.go:144
↓ 4 callersFunctionsyntaxError
(fn, str string)
util/byteconv/stdlib.go:23
↓ 4 callersFunctiontoFloat
(x interface{})
util/assert/assertions.go:1067
↓ 4 callersFunctiontotalSliceLenSimple
Len returns the total length of all arguments.
sql/dml/argument.go:399
↓ 4 callersMethodunQuote
(s string)
sql/dml/naming.go:272
↓ 4 callersMethodunmarshal
(src []byte, dst interface{})
util/csjwt/parser.go:43
↓ 4 callersFunctionvalidateNotFoundGet
(t *testing.T, s config.Storager, scp scope.TypeID, route string)
config/storage/common_test.go:39
↓ 4 callersFunctionverifyConstantTime
(aud, cmp []byte, required bool)
util/csjwt/jwtclaim/common.go:45
↓ 4 callersFunctionwrapDriver
wrapDriver is used to create a new instrumented driver, it takes a vendor specific driver, and a call back instance to produce a new driver instance.
sql/dml/connection_callback.go:28
↓ 4 callersFunctionwriteInt64
(w *bytes.Buffer, i int64)
storage/null/doc.go:56
↓ 4 callersFunctionwriteInterpolate
writeInterpolate merges `args` into `sql` and writes the result into `buf`. `sql` stays unchanged.
sql/dml/interpolate.go:274
↓ 4 callersFunctionwriteUint64
(w *bytes.Buffer, i uint64)
storage/null/doc.go:63
↓ 3 callersMethodAddColumns
AddColumns appends columns and increases the `RecordPlaceHolderCount` variable.
sql/dml/insert.go:149
↓ 3 callersMethodAddColumns
AddColumns appends more columns to the Columns slice. If a column name is not valid identifier that column gets switched into an expression. AddColu
sql/dml/select.go:172
↓ 3 callersMethodAddImport
AddImport adds a new import path. importPath required and packageName optional.
util/codegen/common.go:46
↓ 3 callersMethodAddImports
AddImports adds multiple import paths at once. They all must have unique base names.
util/codegen/common.go:52
↓ 3 callersMethodAppend
Append will add a new item at the end of * Stores . Auto generated via dmlgen.
store/entities_gen.go:83
↓ 3 callersMethodAppend
Append adds s (variadic) to the Int64Slice
util/slices/int64.go:48
← previousnext →801–900 of 7,620, ranked by callers