MCPcopy Create free account

hub / github.com/corestoreio/pkg / functions

Functions7,620 in github.com/corestoreio/pkg

↓ 3 callersMethodOptions
Options applies option at creation time or refreshes them.
net/cors/service_generic.go:96
↓ 3 callersMethodOptions
Options applies option at creation time or refreshes them.
net/geoip/service_generic.go:96
↓ 3 callersMethodOptions
Options applies option at creation time or refreshes them.
net/ratelimit/service_generic.go:96
↓ 3 callersMethodOptions
Options applies option at creation time or refreshes them.
net/jwt/service_generic.go:96
↓ 3 callersMethodParagraph
Paragraph generates paragraph
util/pseudo/lorem_ipsum.go:103
↓ 3 callersFunctionParseBool
ParseBool same as strconv.ParseBool but faster and no allocations. Use err == nil to check if a bool value is valid.
util/byteconv/bool.go:26
↓ 3 callersMethodParseFile
(name string, offset int64, onEvent OnEventFunc)
sql/myreplicator/parser.go:55
↓ 3 callersFunctionParseInt
ParseInt parses a byte-slice and returns the integer it represents. If an invalid character is encountered, it returns a syntax error.
util/byteconv/int.go:33
↓ 3 callersMethodPart
Part returns the route part on the desired position. The Route gets validated before extracting the part. Does not run Validate() Have Route: genera
config/path.go:646
↓ 3 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/signed/backendsigned/options.go:27
↓ 3 callersMethodProcessAllowed
ProcessAllowed deletes the store code cookie if found and stores are equal or sets a store code cookie if the stores differ. Implements interface stor
net/runmode/code.go:163
↓ 3 callersMethodPut
Put empties the buffer and returns it back to the pool. bp := New(320) buf := bp.Get() defer bp.Put(buf) // your code return buf.String()
util/bufferpool/bufpool.go:60
↓ 3 callersFunctionRegister
Register registers a new hash function in the global map. Returns an error behaviour of AlreadyExists if you try to register the same name twice. Safe
util/hashpool/register.go:92
↓ 3 callersMethodRegisterRowsEventHandler
RegisterRowsEventHandler adds a new event handler to the internal list. If a table name gets provided the event handler is bound to that exact table n
sql/mycanal/handler.go:41
↓ 3 callersMethodRender
Render renders a template with data and sends a text/html response with status code. Templates can be registered during `Print` creation.
net/response/response.go:77
↓ 3 callersMethodRequestsCount
RequestsCount counts the requests in the cache and compares it with your expected value.
util/cstesting/http_trip.go:97
↓ 3 callersMethodRequestsMatchAll
RequestsMatchAll checks if all requests in the cache matches the predicate function f.
util/cstesting/http_trip.go:82
↓ 3 callersMethodRollback
Rollback cancels the transaction. It logs the time taken, if a logger has been set with Info logging enabled.
sql/dml/connection.go:1094
↓ 3 callersMethodRowsAffected
()
sql/dml/dbr.go:1451
↓ 3 callersFunctionSQLDumpLoad
SQLDumpLoad reads all files recognized by `globPattern` argument into MySQL/MariaDB. The password will NOT be visible via process manager but gets tem
sql/dmltest/loader.go:110
↓ 3 callersMethodSQLNoCache
SQLNoCache tells the server that it does not use the query cache. It neither checks the query cache to see whether the result is already cached, nor d
sql/dml/select.go:107
↓ 3 callersMethodSentencesN
SentencesN generates n random sentences
util/pseudo/lorem_ipsum.go:89
↓ 3 callersMethodServeHTTPNewRequest
ServeHTTPNewRequest same as ServeHTTP() but creates for each iteration a new fresh request which will be passed to http.Handler. Does not trigger a ra
util/cstesting/http_users.go:139
↓ 3 callersMethodSession
Session displays with a SESSION modifier, the statement displays the system variable values that are in effect for the current connection. If a variab
sql/dml/show.go:61
↓ 3 callersMethodSetMulti
SetMulti allows a cache to write several entities at once. For example using Redis MSET. Same logic applies as when using `Set`.
storage/objcache/service.go:289
↓ 3 callersMethodShouldWaitBytes
ShouldWaitBytes same as ShouldWait.
sync/suspend/state.go:128
↓ 3 callersMethodSigningString
SigningString generates the signing string. This is the most expensive part of the whole deal. Unless you need this for something special, just go st
util/csjwt/token.go:140
↓ 3 callersMethodSizeVT
()
sql/urlvalues/urlvaluesproto/values_vtproto.pb.go:126
↓ 3 callersMethodStartSyncGTID
StartSyncGTID starts syncing from the `gset` mysql.GTIDSet.
sql/myreplicator/binlogsyncer.go:384
↓ 3 callersMethodStop
()
sql/myreplicator/parser.go:41
↓ 3 callersMethodStrBytes
StrBytes returns the TypeStr as byte slice from a Type. The returned byte slice is owned by the callee. You must copy it for further use.
store/scope/type.go:98
↓ 3 callersMethodString
()
sql/myreplicator/time.go:23
↓ 3 callersMethodString
String converts the file name and the position to a string, separated by a semi-colon.
sql/ddl/replication.go:92
↓ 3 callersMethodString
String implements fmt.Stringer and returns the textual representation and Go syntax escaped of the underlying data. It might print the error in the st
config/value.go:94
↓ 3 callersFunctionStringToDate
StringToDate casts an empty interface to a time.Time. Location can be nil, then time.Local is the default value.
util/conv/caste.go:741
↓ 3 callersMethodSum
Sum returns the total calls for the current method receiver type. E.g. All calls to String() with different or same paths.
config/fake.go:50
↓ 3 callersMethodSum64
Sum64 returns always zero.
util/hashpool/hashpool.go:34
↓ 3 callersMethodTemplateToken
TemplateToken returns the template token. Default Claim is a map. You can provide your own by setting the template token function. WithTemplateToken()
net/jwt/scopedConfig.go:88
↓ 3 callersMethodTimes
Times same as Time but parses the CSVComma separated list.
config/value.go:480
↓ 3 callersMethodToBool
()
util/conv/caste.go:83
↓ 3 callersFunctionToDurationE
ToDurationE casts an empty interface to time.Duration.
util/conv/caste.go:54
↓ 3 callersMethodToSQL
ToSQL serialized the Insert to a SQL string It returns the string with placeholders and a slice of query arguments.
sql/dml/insert.go:219
↓ 3 callersFunctionToStringE
ToStringE casts an empty interface to a string.
util/conv/caste.go:400
↓ 3 callersMethodTotalFields
TotalFields calculates the total amount of all fields
config/elements.go:135
↓ 3 callersMethodUint64
()
util/pseudo/locked_source.go:16
↓ 3 callersMethodUint64s
(i ...uint64)
sql/dml/interpolate.go:207
↓ 3 callersMethodUint8
Uint8 reads an uint8 value and appends it to the arguments slice or assigns the uint8 value stored in sql.RawBytes to the pointer. See the documentati
sql/dml/mapper.go:950
↓ 3 callersMethodUniqueColumns
UniqueColumns returns all columns which are either a single primary key or a single unique key. If a PK or UK consists of more than one column, then t
sql/ddl/columns.go:240
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Uint16 if the input is a blank or not an integer. It will return an err
storage/null/uint16.go:144
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Int64 if the input is a blank or not an integer. It will return an erro
storage/null/int64.go:139
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Float64 if the input is a blank or not an integer. It will return an er
storage/null/float64.go:147
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Uint64 if the input is a blank or not an integer. It will return an err
storage/null/uint64.go:139
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Uint32 if the input is a blank or not an integer. It will return an err
storage/null/uint32.go:144
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Uint8 if the input is a blank or not an integer. It will return an erro
storage/null/uint8.go:144
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Int32 if the input is a blank or not an integer. It will return an erro
storage/null/int32.go:142
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Int8 if the input is a blank or not an integer. It will return an error
storage/null/int8.go:145
↓ 3 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler. It will unmarshal to a null Int16 if the input is a blank or not an integer. It will return an erro
storage/null/int16.go:144
↓ 3 callersMethodUnsafeDuration
UnsafeDuration same as Duration but ignores all errors.
config/value.go:521
↓ 3 callersMethodUnsafeInt
UnsafeInt same as Int but ignores all errors.
config/value.go:298
↓ 3 callersMethodUnsafeInt64
UnsafeInt64 same as Int64 but ignores all errors
config/value.go:352
↓ 3 callersMethodUnsafeTime
UnsafeTime same as Time but ignores all errors.
config/value.go:457
↓ 3 callersMethodUpdate
Update sets the int64 s on index i. If index is not found returns an fatal error behaviour.
util/slices/int64.go:55
↓ 3 callersMethodValidate
Validate runs internal consistency tests on all items.
store/entities_gen.go:608
↓ 3 callersMethodWhen
When applies the function `fn` query changes if the given "test" is true. Providing the optional second function, uses it as the default value, if tes
sql/dml/select.go:207
↓ 3 callersMethodWhere
Where appends a WHERE clause to the statement for the given string and args or map of column/value pairs.
sql/dml/select.go:199
↓ 3 callersMethodWhereByPK
WhereByPK puts the primary keys as WHERE clauses into a condition.
sql/ddl/table.go:264
↓ 3 callersMethodWithCacheKey
WithCacheKey creates a DBR object from a cached query.
sql/dml/connection.go:857
↓ 3 callersFunctionWithDebugLog
WithDebugLog creates a new standard library based logger with debug mode enabled. The passed writer must be thread safe.
net/internal/scopedservice/options_generic.go:128
↓ 3 callersFunctionWithDefaultConfig
WithDefaultConfig DO NOT USE
net/internal/scopedservice/service_mock.go:59
↓ 3 callersFunctionWithDeniedHandler
WithDeniedHandler sets a custom denied handler for a specific scope. The default denied handler returns a simple: http.Error(w, http.StatusText(http
net/ratelimit/options.go:62
↓ 3 callersMethodWithEnvSuffix
WithEnvSuffix enables that this Path has environment awareness. An environment comes from the *Service type and defines for example PRODUCTION, TEST,
config/path.go:264
↓ 3 callersMethodWithPrepareCacheKey
WithPrepareCacheKey creates a DBR object from a prepared cached query. After use the query statement must be closed.
sql/dml/connection.go:1058
↓ 3 callersMethodWithQualifiedColumnsAliases
WithQualifiedColumnsAliases for documentation please see: DBR.QualifiedColumnsAliases.
sql/dml/dbr.go:359
↓ 3 callersFunctionWithRSAPublicKeyFromFile
WithRSAPublicKeyFromFile parses PEM encoded PKCS1 or PKCS8 public key found in a file.
util/csjwt/keys.go:146
↓ 3 callersFunctionWithVaryBy
WithVaryBy allows to set a custom key producer. VaryByer is called for each request to generate a key for the limiter. If it is nil, the middleware pa
net/ratelimit/options.go:41
↓ 3 callersMethodWrite
(p []byte)
sql/dml/mapper.go:1066
↓ 3 callersMethodWriteTo
WriteTo implements io.WriterTo and writes the field names and their values to w. This is especially useful for debugging or or generating a hash of th
store/entities_gen.go:54
↓ 3 callersFunction_filePath
(dir, name string)
util/pseudo/bindata.go:6556
↓ 3 callersFunction_filePath
(dir, name string)
util/naughtystrings/internal/resource.go:1408
↓ 3 callersMethodadd
(names ...string)
_codegen/tableToStruct/helper.go:58
↓ 3 callersFunctionaddBasicAuthToIncomingContext
(ctx context.Context, username, password string)
net/csgrpc/auth/service_test.go:41
↓ 3 callersFunctionbasicAuthHandler
(realm string)
net/auth/basic_auth.go:54
↓ 3 callersFunctionbenchmarkExtractNumber
(b *testing.B, input string, want float64)
locale/format_test.go:72
↓ 3 callersFunctionbenchmarkParseFromRequest
(b *testing.B, sm csjwt.Signer, key csjwt.Key, keyFunc csjwt.Keyfunc)
util/csjwt/parser_test.go:369
↓ 3 callersFunctionbenchmarkRouteLevelRun
(b *testing.B, level int, have, want string)
config/benchmarks_test.go:126
↓ 3 callersFunctionbenchmarkScopedServiceStringRun
(b *testing.B, websiteID, storeID uint32)
config/benchmarks_test.go:223
↓ 3 callersFunctionbenchmarkToFloat64F
(b *testing.B, s interface{})
util/conv/cast_bench_test.go:25
↓ 3 callersFunctionbmFmtCurrency_Singleton
(b *testing.B, format, want string, sign int, intgr int64, prec int, frac int64)
i18n/currency_bm_test.go:71
↓ 3 callersFunctionbmFmtNumber_Cached
(b *testing.B, format, want string, sign int, intgr int64, prec int, frac int64)
i18n/number_bm_test.go:69
↓ 3 callersFunctionbuildDummyAuthFunction
TODO(mwitkow): Add auth from metadata client dialer, which requires TLS.
net/csgrpc/auth/auth_test.go:34
↓ 3 callersMethodbyteToUint64
(key []byte)
sync/suspend/state.go:90
↓ 3 callersMethodcacheKeyExists
(cacheKey string)
sql/dml/connection.go:551
↓ 3 callersMethodcheckCapacity
()
storage/lru/lru_cache.go:274
↓ 3 callersMethodconfigByContext
configByContext extracts the scope (websiteID and storeID) from a context. The scoped configuration gets initialized by configFromScope() and returne
net/internal/scopedservice/service_generic.go:160
↓ 3 callersMethodcontains
(suffix string)
_codegen/database.go:54
↓ 3 callersMethodconvertType
(from, to *ddl.Column, fieldName string)
sql/dmlgen/typemap.go:473
↓ 3 callersMethodcountState
(state stateID)
sync/bgwork/auto_scaling.go:117
↓ 3 callersFunctiondecodeDecimal
(data []byte, precision int, decimals int)
sql/myreplicator/row_event.go:560
↓ 3 callersMethoddecodeInt64
(data []byte)
sql/myreplicator/json_binary.go:311
↓ 3 callersMethoddecodeUint16
(data []byte)
sql/myreplicator/json_binary.go:284
← previousnext →1,001–1,100 of 7,620, ranked by callers