Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corestoreio/pkg
/ functions
Functions
7,620 in github.com/corestoreio/pkg
⨍
Functions
7,620
◇
Types & classes
965
↓ 4 callers
Method
ReduceContains
ReduceContains reduces itself if the parts of the in slice are contained within itself.
util/slices/string.go:132
↓ 4 callers
Method
ReplaceEnvName
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 callers
Method
Scan
Scan implements the Scanner interface. Approx. >2x times faster than database/sql.convertAssign.
storage/null/string.go:54
↓ 4 callers
Method
Scan
Scan implements the Scanner interface. Approx. >3x times faster than database/sql.convertAssign.
storage/null/decimal.go:163
↓ 4 callers
Method
Sentence
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 callers
Method
Sort
Sort convenience helper. Not thread safe.
config/elements.go:449
↓ 4 callers
Method
SortByLabel
SortByLabel sorts by label in asc = 0 or desc != 0 direction
config/_cfgsource/slice.go:37
↓ 4 callers
Method
StartSync
StartSync starts syncing from the `pos` position.
sql/myreplicator/binlogsyncer.go:364
↓ 4 callers
Method
Stop
Stop closes the channel stops the daemon
email/daemon.go:176
↓ 4 callers
Method
StoreIDs
StoreIDs returns a slice with the data or appends it to a slice. Auto generated.
store/entities_gen.go:167
↓ 4 callers
Method
String
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 callers
Method
Swap
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 callers
Method
Title
Title generates from 2 to 5 titleized words
util/pseudo/lorem_ipsum.go:57
↓ 4 callers
Function
ToIntSlice
(i interface{})
util/conv/cast.go:90
↓ 4 callers
Method
ToIntString
ToIntString converts the TypeID to a stringyfied number representation.
store/scope/typeid.go:80
↓ 4 callers
Function
ToStringMapString
(i interface{})
util/conv/cast.go:55
↓ 4 callers
Function
ToTimeE
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 callers
Method
Uint64
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 callers
Method
UnmarshalBinary
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
storage/null/bool.go:204
↓ 4 callers
Method
UnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
config/observer/json_easyjson.go:233
↓ 4 callers
Method
UnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null String if the input is a blank string.
storage/null/string.go:162
↓ 4 callers
Method
UnmarshalText
UnmarshalText parses the byte slice to create a time type.
storage/null/time.go:112
↓ 4 callers
Method
UnsafeBool
UnsafeBool same as Bool but ignores errors.
config/value.go:224
↓ 4 callers
Method
UserName
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 callers
Method
Website
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 callers
Method
WithCountryByIP
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 callers
Method
WithDBR
(db QueryExecPreparer)
sql/dml/dbr.go:259
↓ 4 callers
Function
WithGCRAStore
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 callers
Function
WithPassword
WithPassword uses the byte slice as the password for the HMAC-SHA signing method.
util/csjwt/keys.go:101
↓ 4 callers
Function
WithRateLimiter
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 callers
Method
Word
Word generates random word
util/pseudo/lorem_ipsum.go:30
↓ 4 callers
Method
WordsN
WordsN generates n random words
util/pseudo/lorem_ipsum.go:39
↓ 4 callers
Method
WriteTo
WriteTo implements io.WriterTo and writes the current position and file name to w.
sql/ddl/replication.go:107
↓ 4 callers
Method
Year
Year generates year using the given boundaries
util/pseudo/dates.go:41
↓ 4 callers
Method
appendBools
(args ...bool)
sql/dml/argument_encoder.go:190
↓ 4 callers
Method
appendNullBool
(args ...null.Bool)
sql/dml/argument_encoder.go:252
↓ 4 callers
Method
appendNullFloat64
(args ...null.Float64)
sql/dml/argument_encoder.go:228
↓ 4 callers
Method
appendNullInt64
(args ...null.Int64)
sql/dml/argument_encoder.go:240
↓ 4 callers
Method
appendNullString
(args ...null.String)
sql/dml/argument_encoder.go:216
↓ 4 callers
Method
appendNullTime
(args ...null.Time)
sql/dml/argument_encoder.go:268
↓ 4 callers
Method
appendString
(s string)
sql/dml/argument_encoder.go:166
↓ 4 callers
Method
appendStrings
(args ...string)
sql/dml/argument_encoder.go:172
↓ 4 callers
Method
appendTime
(t time.Time)
sql/dml/argument_encoder.go:202
↓ 4 callers
Method
appendTimes
(args ...time.Time)
sql/dml/argument_encoder.go:208
↓ 4 callers
Method
appendToFile
(tpl string, data interface{}, addFM template.FuncMap)
_codegen/tableToStruct/generator.go:128
↓ 4 callers
Function
authFromMD
(ctx context.Context, expectedScheme string)
net/csgrpc/auth/metadata.go:46
↓ 4 callers
Function
benchmarkTank_Hash64
(wantHash uint64, h func() hash.Hash64)
util/hashpool/hashpool_test.go:165
↓ 4 callers
Function
checkPersonWasFilled
(b *testing.B, p fakePerson)
sql/dml/benchmark_integration_test.go:298
↓ 4 callers
Function
cleanIdentifier
cleanIdentifier removes all invalid characters https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
sql/ddl/identifier.go:55
↓ 4 callers
Function
cloneStringSlice
(sl []string)
sql/dml/naming.go:475
↓ 4 callers
Function
compareExecContext
(t testing.TB, ex StmtExecer, args []any, lastInsertID, rowsAffected int64)
sql/dml/dml_test.go:344
↓ 4 callers
Function
convert
convert converts a list of string using the passed converter function
net/cors/utils.go:39
↓ 4 callers
Method
countSep
()
config/value.go:251
↓ 4 callers
Function
createRealSession
TEST HELPERS
sql/dml/dml_test.go:36
↓ 4 callers
Method
decodeCount
(data []byte, isSmall bool)
sql/myreplicator/json_binary.go:445
↓ 4 callers
Method
decodeObjectOrArray
(data []byte, isSmall bool, isObject bool)
sql/myreplicator/json_binary.go:137
↓ 4 callers
Function
didPanic
didPanic returns true if the function passed to it panics. Otherwise, it returns false.
util/assert/assertions.go:970
↓ 4 callers
Function
driverValue
(appendTo []any, dvs ...driver.Valuer)
sql/dml/argument.go:652
↓ 4 callers
Method
eventSalesOrderStatusStateFunc
(ctx context.Context, ef dml.EventFlag, skipEvents bool, ec *SalesOrderStatusStates, e *SalesOrderStatusState)
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:165
↓ 4 callers
Method
eventViewCustomerAutoIncrementFunc
(ctx context.Context, ef dml.EventFlag, skipEvents bool, ec *ViewCustomerAutoIncrements, e *ViewCustomerAutoIn
sql/dmlgen/dmltestgenerated/output_gen.go:723
↓ 4 callers
Method
eventViewCustomerAutoIncrementFunc
(ctx context.Context, ef dml.EventFlag, skipEvents bool, ec *ViewCustomerAutoIncrements, e *ViewCustomerAutoIn
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:177
↓ 4 callers
Function
finalHandler
(t *testing.T, wantRunMode scope.TypeID, wantStoreID, wantWebsiteID int64, wantStoreCtx bool)
net/runmode/middleware_test.go:42
↓ 4 callers
Function
forAllValues
( b dml.Conditions, field string, values []string, singleOpValue, multiOpValue dml.Op, )
sql/urlvalues/url_filter.go:160
↓ 4 callers
Method
getMethod
(t *Token)
util/csjwt/parser.go:178
↓ 4 callers
Function
includeElement
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 callers
Function
isEmpty
isEmpty gets whether the specified object is considered empty or not.
util/assert/assertions.go:567
↓ 4 callers
Function
isUUIDvX
(str, version string)
util/validation/validator.go:452
↓ 4 callers
Method
isValid
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 callers
Function
jsonEncDecEqual
( t *testing.T, jsonMarshalFn func(v interface{}) ([]byte, error), jsonUnMarshalFn func(data []byte, v inte
storage/null/encoding_pub_test.go:161
↓ 4 callers
Function
loadData
Helper func: Read input from specified file or stdin
util/csjwt/cmd/jwt/app.go:67
↓ 4 callers
Function
mustCheckErr
(err error)
sql/mycanal/canal_main.go:186
↓ 4 callers
Function
mustCheckErr
(err error)
config/storage/db_client_main.go:78
↓ 4 callers
Function
newScopedConfig
newScopedConfig creates a new object with the minimum needed configuration.
net/ratelimit/scopedConfig.go:49
↓ 4 callers
Function
newService
(cfg config.Scoper, opts ...Option)
net/internal/scopedservice/service_generic.go:71
↓ 4 callers
Function
panicIfErr
(errs ...error)
config/example_test.go:25
↓ 4 callers
Method
parseFracTime
(t any)
sql/myreplicator/row_event.go:350
↓ 4 callers
Method
process
process runs on each tree level and dispatches the events and checks for scope permission and default value.
config/route_trie.go:187
↓ 4 callers
Method
reset
reset gets called when returning into the pool
sql/dml/mapper.go:89
↓ 4 callers
Method
set
(wrkr uint, state stateID)
sync/bgwork/auto_scaling.go:96
↓ 4 callers
Method
setDataWithTag
(v reflect.Value, tag string, maxLen uint64, tagIsFieldName bool)
util/pseudo/fake.go:694
↓ 4 callers
Function
shortenEntityName
TODO: micro optimize later 8-) to reduce allocations
sql/ddl/identifier.go:164
↓ 4 callers
Function
sliceLen
(arg any)
sql/dml/argument.go:62
↓ 4 callers
Method
sort
()
net/auth/scopedConfig.go:144
↓ 4 callers
Function
syntaxError
(fn, str string)
util/byteconv/stdlib.go:23
↓ 4 callers
Function
toFloat
(x interface{})
util/assert/assertions.go:1067
↓ 4 callers
Function
totalSliceLenSimple
Len returns the total length of all arguments.
sql/dml/argument.go:399
↓ 4 callers
Method
unQuote
(s string)
sql/dml/naming.go:272
↓ 4 callers
Method
unmarshal
(src []byte, dst interface{})
util/csjwt/parser.go:43
↓ 4 callers
Function
validateNotFoundGet
(t *testing.T, s config.Storager, scp scope.TypeID, route string)
config/storage/common_test.go:39
↓ 4 callers
Function
verifyConstantTime
(aud, cmp []byte, required bool)
util/csjwt/jwtclaim/common.go:45
↓ 4 callers
Function
wrapDriver
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 callers
Function
writeInt64
(w *bytes.Buffer, i int64)
storage/null/doc.go:56
↓ 4 callers
Function
writeInterpolate
writeInterpolate merges `args` into `sql` and writes the result into `buf`. `sql` stays unchanged.
sql/dml/interpolate.go:274
↓ 4 callers
Function
writeUint64
(w *bytes.Buffer, i uint64)
storage/null/doc.go:63
↓ 3 callers
Method
AddColumns
AddColumns appends columns and increases the `RecordPlaceHolderCount` variable.
sql/dml/insert.go:149
↓ 3 callers
Method
AddColumns
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 callers
Method
AddImport
AddImport adds a new import path. importPath required and packageName optional.
util/codegen/common.go:46
↓ 3 callers
Method
AddImports
AddImports adds multiple import paths at once. They all must have unique base names.
util/codegen/common.go:52
↓ 3 callers
Method
Append
Append will add a new item at the end of * Stores . Auto generated via dmlgen.
store/entities_gen.go:83
↓ 3 callers
Method
Append
Append adds s (variadic) to the Int64Slice
util/slices/int64.go:48
← previous
next →
801–900 of 7,620, ranked by callers