MCPcopy Create free account

hub / github.com/corestoreio/pkg / functions

Functions7,620 in github.com/corestoreio/pkg

↓ 5 callersMethodUnsafeFloat64
UnsafeFloat64 same as Float64 but ignores errors.
config/value.go:238
↓ 5 callersMethodUnsafeStr
UnsafeStr same as Str but ignores errors.
config/value.go:107
↓ 5 callersMethodUnsafeUint64
UnsafeUint64 same as Uint64 but ignores all errors.
config/value.go:405
↓ 5 callersMethodUpdate
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:947
↓ 5 callersMethodUpdateField
UpdateField searches for a field using all three path segments and updates the found field with the new field data. Returns the field position within
config/elements.go:252
↓ 5 callersMethodValue
Value implements the driver.Valuer interface.
sql/dml/now.go:33
↓ 5 callersMethodWebsiteByID
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:375
↓ 5 callersMethodWithDisabledForeignKeyChecks
WithDisabledForeignKeyChecks runs the callBack with disabled foreign key checks in a dedicated connection session. Foreign key checks are getting auto
sql/dml/connection.go:919
↓ 5 callersMethodWithResponseSignature
WithResponseSignature hashes the data written to http.ResponseWriter and adds the hash to the HTTP header. For large data sets use the option InTraile
net/signed/service_mw.go:29
↓ 5 callersMethodWithSortOrder
WithSortOrder sets the order/position while loading the data in config.Service.
config/options.go:84
↓ 5 callersFunctionWithTagFakeFunc
WithTagFakeFunc extends faker with a new tag (or field name) to generate fake data with a specified custom algorithm. It will overwrite a previous set
util/pseudo/fake.go:114
↓ 5 callersFunctionassertNullStr
(t *testing.T, s String, from string)
storage/null/string_test.go:278
↓ 5 callersFunctionbenchmarkToStringF
(b *testing.B, s interface{})
util/conv/cast_bench_test.go:12
↓ 5 callersFunctionencodeVarintProto
(dAtA []byte, offset int, v uint64)
config/observer/proto.pb.go:298
↓ 5 callersFunctionfatalIfError
fatalIfError fails the tests if an unexpected error occurred. If the error is gift wrapped prints the location.
util/cstesting/helpers.go:52
↓ 5 callersMethodfindScopedConfig
findScopedConfig used in functional options to look up if a parent configuration exists and if not creates a newScopedConfig(). The scope.DefaultTypeI
net/cors/service_generic.go:327
↓ 5 callersFunctionformatZeroTime
(frac int, dec int)
sql/myreplicator/time.go:31
↓ 5 callersFunctiongetJwts
(opts ...cfgmodel.Option)
net/jwt/backendjwt/integration_test.go:164
↓ 5 callersFunctioninitLogger
()
config/service_pubsub_test.go:50
↓ 5 callersFunctionisDebug
()
sql/dmlgen/dmlgen.go:304
↓ 5 callersFunctionjsonDecEqual
( t *testing.T, jsonUnMarshalFn func(data []byte, v interface{}) error, data []byte, out interface{}, wan
storage/null/encoding_pub_test.go:177
↓ 5 callersFunctionmakeScoped
makeScoped instantiates a ScopedGetter implementation. Getter specifies the root Getter which does not know about any scope.
config/service.go:504
↓ 5 callersMethodmatch
(s string)
net/cors/utils.go:34
↓ 5 callersFunctionmustCheckErr
(err error)
sql/myreplicator/binlog_main.go:164
↓ 5 callersMethodreadMapAndSend
(p Path, level int)
config/service_pubsub.go:170
↓ 5 callersMethodsetRelationParent
()
sql/dmlgen/dmltestgenerated/output_gen.go:74
↓ 5 callersMethodsetRelationParent
()
sql/dmlgen/dmltestgenerated5/tables_gen.go:37
↓ 5 callersMethodsortedTableNames
()
sql/dmlgen/dmlgen.go:141
↓ 5 callersFunctionsov
(x uint64)
sql/urlvalues/urlvaluesproto/values_vtproto.pb.go:166
↓ 5 callersFunctionsqlWriteLimitOffset
LIMIT 0,0 quickly returns an empty set. This can be useful for checking the validity of a query. When using one of the MySQL APIs, it can also be empl
sql/dml/builder.go:240
↓ 5 callersFunctiontestAuth_WithRunMode
(t *testing.T, finalHandler http.Handler, opts ...jwt.Option)
net/jwt/service_mw_runmode_test.go:39
↓ 5 callersFunctiontestAuth_WithToken
(t *testing.T, opts ...jwt.Option)
net/jwt/service_mw_token_test.go:32
↓ 5 callersFunctiontestCompressReqRes
()
net/compress/compress_test.go:45
↓ 5 callersFunctiontestHandler
(fa interface { Fatalf(format string, args ...interface{}) })
net/cors/bench_test.go:31
↓ 5 callersMethodtestSync
(tst *testing.T, s *BinlogStream)
sql/myreplicator/replication_test.go:78
↓ 5 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/cors/service_generic.go:359
↓ 5 callersFunctionwriteExpression
writeExpression writes the strings into `w` and correctly handles the place holder repetition depending on the number of arguments.
sql/dml/expression.go:27
↓ 4 callersMethodBools
(b ...bool)
sql/dml/interpolate.go:213
↓ 4 callersMethodBrand
Brand generates brand name
util/pseudo/products.go:4
↓ 4 callersMethodCSV
CSV reads a multiline CSV data value and appends it to ret.
config/value.go:157
↓ 4 callersMethodCalculateRunMode
(*http.Request)
net/runmode/context_runmode.go:53
↓ 4 callersMethodClearCache
ClearCache resets the internal caches which stores the pointers to Websites, Groups or Stores. The ReInit() also uses this method to clear caches befo
store/service.go:631
↓ 4 callersMethodClearCache
ClearCache clears the internal map storing all scoped configurations. You must reapply all functional options. TODO(CyS) all previously applied option
net/geoip/service_generic.go:115
↓ 4 callersMethodClone
Clone creates a clone of the current object, leaving fields DB and Log untouched.
sql/dml/insert.go:370
↓ 4 callersMethodCompare
Compare compares with another MasterStatus. Returns 1 if left hand side is bigger, 0 if both are equal and -1 if right hand side is bigger.
sql/ddl/replication.go:74
↓ 4 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/auth/service_generic.go:260
↓ 4 callersMethodContains
Contains returns true if the target string t is in the slice.
util/slices/string.go:80
↓ 4 callersMethodDefaultStoreID
DefaultStoreID returns the default active store ID and its website ID depending on the run mode. Error behaviour is mostly of type NotValid.
net/jwt/store_finder.go:28
↓ 4 callersMethodDeregister
(ctx context.Context, in *Configurations, opts ...grpc.CallOption)
config/observer/proto.pb.go:133
↓ 4 callersFunctionDeregisterWithJSON
DeregisterWithJSON reads all JSON byte data from r into memory, parses it, removes the appropriate observers which matches the route and the event. Th
config/observer/json.go:195
↓ 4 callersMethodEach
Each will run function f on all items in []* CoreConfiguration . Auto generated via dmlgen.
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:553
↓ 4 callersMethodEmpty
Empty checks if the map is empty or has an empty "" entry.
_codegen/database.go:69
↓ 4 callersMethodEqualFold
EqualFold reports whether the value of key and `expected`, interpreted as UTF-8 strings, are equal under Unicode case-folding.
sql/ddl/variables.go:108
↓ 4 callersMethodError
Error implements the error interface. Returns a string where each error has been separated by a line break.
email/daemon.go:89
↓ 4 callersMethodEscapeString
(w *bytes.Buffer, s string)
sql/dml/dialect.go:39
↓ 4 callersMethodEscapeTime
(w *bytes.Buffer, t time.Time)
sql/dml/dialect.go:40
↓ 4 callersFunctionExecValidateOneAffectedRow
ExecValidateOneAffectedRow checks the sql.Result.RowsAffected if it returns one. If not returns an error of type NotValid. This function is useful for
sql/dml/dbr.go:1391
↓ 4 callersMethodFile
File sends a response with the content of the file. If `attachment` is set to true, the client is prompted to save the file with provided `name`, name
net/response/response.go:238
↓ 4 callersMethodFilter
Filter filters the current slice by predicate f without memory allocation. Auto generated via dmlgen.
store/entities_gen.go:126
↓ 4 callersMethodFloat64
Float64 converts the precision and the scale to a float64 value including the usual float behaviour. Overflow will result in an undefined float64.
storage/null/decimal.go:224
↓ 4 callersMethodFloat64
()
util/pseudo/general.go:117
↓ 4 callersMethodFmtNumber
FmtNumber formats a number according to the currency format. Internal rounding will be applied. Returns the number bytes written or an error. Thread s
i18n/currency.go:234
↓ 4 callersMethodGenerateFile
(w io.Writer)
util/codegen/gogen.go:87
↓ 4 callersMethodGetEvent
GetEvent gets the binlog event one by one, it will block until Syncer receives any events from MySQL or meets a sync error. You can pass a context (li
sql/myreplicator/binlogstreamer.go:23
↓ 4 callersMethodGetFormat
GetFormat parses the pattern depended if we have a negative value or not. Use this function only for debugging purposes. NOT Thread safe.
i18n/number.go:198
↓ 4 callersMethodGoString
GoString returns the Go types representation. See interface fmt.GoStringer
sql/ddl/columns.go:431
↓ 4 callersMethodGroup
Group returns a cached Group which contains all related stores and its website. The returned pointer is owned by the Service. You must copy it for fur
store/service.go:574
↓ 4 callersMethodHTML
HTML formats according to a format specifier and sends HTML response with status code.
net/response/response.go:91
↓ 4 callersMethodHas
Has checks if a given scope.Type exists within a Perm. Only the first argument is supported. Providing no argument assumes the scope.DefaultID.
store/scope/perm.go:93
↓ 4 callersMethodHasColumn
HasColumn uses the internal cache to check if a column exists in a table and if so returns true. Case sensitive.
sql/ddl/table.go:408
↓ 4 callersMethodImport
Import extracts the import path
_codegen/config.go:177
↓ 4 callersMethodInsert
Insert creates a new INSERT statement with all non primary key columns. If OnDuplicateKey() gets called, the INSERT can be used as an update or create
sql/ddl/table.go:213
↓ 4 callersMethodInt64
Int64 returns for a given key its int64 value. If the key does not exists or string parsing into int fails, it returns false.
sql/ddl/variables.go:60
↓ 4 callersMethodInvokes
Invokes returns statistics about invocations
config/fake.go:157
↓ 4 callersMethodIsCacheEmpty
IsCacheEmpty returns true if the internal cache is empty.
store/service.go:669
↓ 4 callersMethodIsChar
IsChar returns true if the column can contain a string or byte values.
sql/ddl/columns.go:581
↓ 4 callersMethodIsGenerated
IsGenerated returns true if the column is a virtual generated column.
sql/ddl/columns.go:522
↓ 4 callersFunctionIsIP
IsIP checks if a string is either IP version 4 or 6.
util/validation/validator.go:812
↓ 4 callersMethodIterateSerial
IterateSerial iterates in serial order over the result set by loading one row each iteration and then discarding it. Handles records one by one. The c
sql/dml/dbr.go:962
↓ 4 callersMethodKey
(*http.Request)
net/ratelimit/varyby.go:29
↓ 4 callersMethodKeys
Keys returns a list of all available keys
util/csjwt/claims.go:39
↓ 4 callersMethodListGroups
(ctx context.Context, in *types.Empty, opts ...grpc.CallOption)
store/service.pb.go:380
↓ 4 callersMethodListStores
(ctx context.Context, in *types.Empty, opts ...grpc.CallOption)
store/service.pb.go:384
↓ 4 callersMethodListWebsites
(ctx context.Context, in *types.Empty, opts ...grpc.CallOption)
store/service.pb.go:376
↓ 4 callersMethodLoadNullFloat64
LoadNullFloat64 executes the query and returns the first row parsed into the current type. `Found` might be false if there are no matching rows.
sql/dml/dbr.go:1133
↓ 4 callersMethodMap
Map changes itself containing the results of applying the function f to each int64 in itself.
util/slices/int64.go:122
↓ 4 callersMethodMapColumns
MapColumns implements interface ColumnMapper only partially.
sql/dml/select_pub_test.go:49
↓ 4 callersMethodMerge
Merge merges one Symbols into another ignoring empty values in the argument Symbols struct.
i18n/number_symbols.go:89
↓ 4 callersMethodModTime
()
util/pseudo/bindata.go:172
↓ 4 callersFunctionMustNewModifier
MustNewModifier same as NewModifier but panics on error.
config/observer/modifier.go:109
↓ 4 callersFunctionNewSigningMethodHS256
NewSigningMethodHS256 creates a new 256bit HMAC SHA instance and registers it.
util/csjwt/hmac_sha.go:23
↓ 4 callersFunctionNewSigningMethodPS256
NewSigningMethodPS256 creates a new 256bit RSAPSS SHA instance and registers it.
util/csjwt/rsa_pss.go:33
↓ 4 callersFunctionNewVerification
NewVerification creates new verification parser with the default signing method HS256, if availableSigners slice argument is empty. Nil arguments are
util/csjwt/parser.go:37
↓ 4 callersMethodNullUint16
NullInt16 reads an int16 value and appends it to the arguments slice or assigns the int16 value stored in sql.RawBytes to the pointer. See the documen
sql/dml/mapper.go:768
↓ 4 callersMethodParseScoped
ParseScoped parses a token based on the applied scope and the scope ID. Different configurations are passed to the token parsing function. The black l
net/jwt/service.go:145
↓ 4 callersMethodPassword
Password generates password with the length from atLeast to atMOst charachers, allow* parameters specify whether corresponding symbols can be used
util/pseudo/general.go:42
↓ 4 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/cors/backendcors/options.go:29
↓ 4 callersMethodPreviousError
PreviousError returns the previous error. Mostly used for testing.
sql/dml/dbr.go:196
↓ 4 callersMethodPrice
Amount returns a random floating price amount with a random precision of [1,2] up to (10**8 - 1)
util/pseudo/currencies.go:17
↓ 4 callersMethodPutMeta
PutMeta inserts the `fm` into the trie at the given key, replacing any existing items, except the Events which will be appended to `fm`. It returns tr
config/route_trie.go:257
← previousnext →701–800 of 7,620, ranked by callers