MCPcopy Create free account

hub / github.com/corestoreio/pkg / functions

Functions7,620 in github.com/corestoreio/pkg

↓ 3 callersFunctionAsset
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
util/pseudo/bindata.go:6189
↓ 3 callersMethodBindDefault
BindDefault binds a path to the default scope. Returns a new Path pointer and does not apply the changes to the current Path. Convenience helper funct
config/path.go:254
↓ 3 callersMethodByCode
ByCode returns an index using the AttributeCode. This index identifies an attribute within an AttributeSlice.
eav/attribute.go:109
↓ 3 callersMethodByID
ByID returns an index using the AttributeID. This index identifies an attribute within an AttributeSlice.
eav/attribute.go:107
↓ 3 callersMethodBytes
()
sql/dmltype/strings.go:120
↓ 3 callersMethodBytesWritten
BytesWritten returns the total number of bytes sent to the client.
net/responseproxy/tee_writer.go:18
↓ 3 callersFunctionChain
Chain will iterate over all middleware functions, calling them one by one in a chained manner, returning the result of the final middleware.
net/mw/middleware.go:36
↓ 3 callersMethodCharacter
TODO(Cyrill) refactor and user everywhere strings.Builder Character generates random character in the given language
util/pseudo/lorem_ipsum.go:11
↓ 3 callersMethodCharactersN
CharactersN generates n random characters in the given language
util/pseudo/lorem_ipsum.go:16
↓ 3 callersMethodClear
Clear will reset the data slice or create a new type. Useful for reusing the underlying backing slice array. Auto generated via dmlgen.
sql/dmlgen/dmltestgenerated/output_gen.go:2160
↓ 3 callersMethodClear
Clear will clear the entire cache.
storage/lru/lru_cache.go:146
↓ 3 callersMethodClock
Clock formats DateTime to return e.g. 15:04, the clock time.
util/pseudo/dates.go:64
↓ 3 callersMethodClone
Clone creates a clone of the current object.
sql/dml/builder.go:89
↓ 3 callersMethodClone
Clone creates a new clone of the current object.
sql/dml/condition.go:206
↓ 3 callersMethodClone
Clone creates a clone of the current object, leaving fields DB and Log untouched.
sql/dml/with.go:191
↓ 3 callersMethodCompany
Company generates company name
util/pseudo/jobs.go:10
↓ 3 callersMethodConfigByScope
ConfigByScope creates a new scoped configuration depending on the Service.useWebsite flag. If useWebsite==true the scoped configuration contains only
net/jwt/service_generic.go:146
↓ 3 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/signed/service_generic.go:257
↓ 3 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/cors/service_generic.go:257
↓ 3 callersMethodConfigByScopedGetter
ConfigByScopedGetter returns the internal configuration depending on the ScopedGetter. Mainly used within the middleware. If you have applied the opt
net/cors/service_generic.go:179
↓ 3 callersMethodConfigByScopedGetter
ConfigByScopedGetter returns the internal configuration depending on the ScopedGetter. Mainly used within the middleware. If you have applied the opt
net/geoip/service_generic.go:179
↓ 3 callersMethodContainsReverse
ContainsReverse checks if the StringSlice has at least one occurrence in the string s.
util/slices/string.go:152
↓ 3 callersMethodContainsValBool
ContainsValBool checks if value k exists.
config/_cfgsource/slice.go:168
↓ 3 callersMethodContainsValFloat64
ContainsValFloat64 checks if value k exists.
config/_cfgsource/slice.go:151
↓ 3 callersMethodContainsValInt
ContainsValInt checks if value k exists.
config/_cfgsource/slice.go:135
↓ 3 callersMethodContainsValString
ContainsValString checks if value k exists.
config/_cfgsource/slice.go:119
↓ 3 callersMethodCopySecondToFirst
CopySecondToFirst resets the first buffer and copies the content from the second buffer to the first buffer. Second buffer gets eventually reset.
util/bufferpool/twin.go:63
↓ 3 callersMethodCountry
Country generates random country
util/pseudo/addresses.go:11
↓ 3 callersMethodCountryByIP
CountryByIP searches a country by an IP address and returns the found country. It only needs the functional options WithGeoIP*().
net/geoip/service_mw.go:29
↓ 3 callersMethodCreditCardNum
CreditCardNum generated credit card number according to the card number rules
util/pseudo/credit_cards.go:37
↓ 3 callersMethodCurrencyCode
CurrencyCode generates currency code.
util/pseudo/currencies.go:11
↓ 3 callersMethodDBInsert
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:1144
↓ 3 callersMethodDBLoad
(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:450
↓ 3 callersMethodDBUpdate
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:1122
↓ 3 callersMethodDebug
Debug writes the internal map in a sorted list to w.
sql/ddl/foreign_key.go:367
↓ 3 callersMethodDefault
Default returns the default website. The returned pointer is owned by StoreWebsites.
store/entities_extended.go:116
↓ 3 callersMethodDefaultStore
DefaultStore returns the first default active store.
store/entities_extended.go:138
↓ 3 callersMethodDelete
Delete removes index i from slice
util/slices/string.go:61
↓ 3 callersMethodDeleteGroup
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:378
↓ 3 callersMethodDeleteStore
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:382
↓ 3 callersMethodDeleteWebsite
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:374
↓ 3 callersMethodDob18
Dob18 returns a date of birth in the format 2006-01-02 00:00:00 with a minimum age of 18 years.
util/pseudo/dates.go:81
↓ 3 callersMethodDone
()
net/accesslog/access_log_test.go:48
↓ 3 callersMethodEnvName
EnvName returns the environment name to which this service is bound to.
config/service.go:218
↓ 3 callersFunctionEqual
Equal asserts that two objects are equal. assert.Equal(t, 123, 123) Pointer variable equality is determined based on the equality of the referenced
util/assert/assertions.go:309
↓ 3 callersMethodEqualPairs
EqualPairs compares data pairs for equality via constant time. Returns true only if all pairs are equal and one data item length is at least greater t
util/hashpool/hashpool.go:93
↓ 3 callersMethodError
()
net/geoip/maxmindwebservice/webservice.go:165
↓ 3 callersMethodEscapeBool
(w *bytes.Buffer, b bool)
sql/dml/dialect.go:38
↓ 3 callersMethodExpires
Expires declares when a token expires. A duration smaller or equal to zero means that the token has already expired. Useful when adding a token to a b
util/csjwt/claims.go:33
↓ 3 callersMethodFilters
Filters builds the SQL conditions by appending to slice `cond` and returning it.
sql/urlvalues/url_filter.go:63
↓ 3 callersMethodFindTable
FindTable tries to find a table by its ID. If the table cannot be found by the first search, it will add the table to the internal map and performs a
sql/mycanal/canal.go:512
↓ 3 callersMethodFloat64
Float64 returns for a given key its float64 value. If the key does not exists or string parsing into float fails, it returns false.
sql/ddl/variables.go:49
↓ 3 callersMethodFmtFloat64
FmtFloat64 formats a float value, does internal maybe incorrect rounding. Thread safe deprecated AFAIK. rounding is flawed
i18n/number.go:352
↓ 3 callersMethodFmtNumber
FmtNumber formats a number according to the number format of the locale. i and frac represents a floating point number splitted in their integer parts
i18n/number.go:64
↓ 3 callersFunctionFromRegistry
FromRegistry returns a hash pool for the given name, otherwise a NotFound error behaviour. Safe for concurrent use.
util/hashpool/register.go:121
↓ 3 callersMethodFromRequest
FromRequest returns from a GET request with a query string the value of the store code. If no code can be found in the query string, this function fal
net/runmode/code.go:69
↓ 3 callersMethodGet
Get looks up a configuration value for a given path.
config/fake.go:127
↓ 3 callersMethodGet
Get performs a read operation from the database and returns a value from the table. The `ok` return argument can be true even if byte slice `v` is nil
config/storage/db_client.go:279
↓ 3 callersMethodGetByCode
(code string)
eav/entity_type.go:58
↓ 3 callersMethodGetDefault
GetDefault returns the default currency without considering the scope.
directory/config_models.go:38
↓ 3 callersMethodGoComment
GoComment creates a comment from a database column to be used in Go code
sql/ddl/columns.go:416
↓ 3 callersMethodInStr
InStr checks if the test IP address string lies within the range.
net/ranges.go:62
↓ 3 callersMethodInStr
InStr checks if the test IP address string lies within the ranges.
net/ranges.go:77
↓ 3 callersMethodIndex
Index returns -1 if not found or the current index for target t.
util/slices/int64.go:73
↓ 3 callersMethodIndex
Index returns -1 if not found or the current index for target t.
util/slices/string.go:70
↓ 3 callersMethodInt32s
(values ...int32)
sql/dml/mapper.go:1352
↓ 3 callersMethodInt63n
(n int64)
util/cstime/locked_source.go:17
↓ 3 callersMethodInt64
(name string)
sql/urlvalues/values.go:63
↓ 3 callersMethodIsAllowed
IsAllowed checks if the country is allowed. An empty AllowedCountries fields allows all countries.
net/geoip/scopedConfig.go:73
↓ 3 callersMethodIsBool
IsBool returns true if column is of type `int` and its name starts with a special string like: `used_`, `is_`, `has_`.
sql/ddl/columns.go:570
↓ 3 callersFunctionIsDNSName
IsDNSName will validate the given string as a DNS name
util/validation/validator.go:750
↓ 3 callersMethodIsFieldPublic
(dbColumnName string)
sql/dmlgen/table.go:69
↓ 3 callersFunctionIsISBN
IsISBN check if the string is an ISBN (version 10 or 13). If version value is not equal to 10 or 13, it will be check both variants.
util/validation/validator.go:563
↓ 3 callersFunctionIsLocale
IsLocale checks case-insensitive if the provided string is a locale.
util/validation/validator.go:737
↓ 3 callersFunctionIsTime
IsTime check if string is valid according to given format
util/validation/validator.go:917
↓ 3 callersMethodIsTime
IsTime returns true if the column is a date, datetime, time or timestamp.
sql/ddl/columns.go:543
↓ 3 callersMethodIsUnique
()
eav/attribute.go:67
↓ 3 callersMethodIterateParallel
IterateParallel starts a number of workers as defined by variable concurrencyLevel and executes the query. Each database row gets evenly distributed t
sql/dml/dbr.go:1033
↓ 3 callersMethodJoinFields
JoinFields joins the field names into a string, separated by the provided separator.
sql/ddl/columns.go:343
↓ 3 callersMethodLen
Len returns the length
util/slices/string.go:33
↓ 3 callersMethodLoad
Load creates the configuration models for each PkgBackend field. Internal mutex will protect the fields during loading. The argument Sections will be
catalog/catconfig/backend.go:208
↓ 3 callersFunctionLoadColumns
LoadColumns returns all columns from a list of table names in the current database. Map key contains the table name. Returns a NotFound error if the t
sql/ddl/columns.go:95
↓ 3 callersFunctionMakeTypeID
MakeTypeID creates a new merged value of a Type and its ID. An error is equal to returning 0. An error occurs when id is greater than MaxStoreID or sm
store/scope/typeid.go:234
↓ 3 callersMethodMapSQLToGoDBRType
func (c column) updateGoPrimitive(useSQL bool) column { c.GoName = util.UnderscoreCamelize(c.Field.String) c.GoType = c.GoPrimitive(useSQL) return
_codegen/database.go:205
↓ 3 callersMethodMarshalBinary
MarshalBinary implements interface encoding.BinaryMarshaler.
config/path.go:514
↓ 3 callersMethodMarshalTo
(dAtA []byte)
config/observer/proto.pb.go:266
↓ 3 callersMethodMarshalToSizedBufferVT
(dAtA []byte)
sql/urlvalues/urlvaluesproto/values_vtproto.pb.go:39
↓ 3 callersMethodMerge
Merge integrates the argument Slice into the receiver slice and overwrites the existing values of the receiver slice.
config/_cfgsource/slice.go:201
↓ 3 callersFunctionNewAttributeBackend
NewAttributeBackend creates a pointer to a new attribute source
eav/attribute_backend.go:63
↓ 3 callersFunctionNewBinlogParser
()
sql/myreplicator/parser.go:33
↓ 3 callersFunctionNewSigningMethodRS256
NewSigningMethodRS256 creates a new 256bit RSA SHA instance and registers it.
util/csjwt/rsa.go:22
↓ 3 callersFunctionNewSymbols
NewSymbols creates a new non-pointer Symbols type with the pre-filled default symbol table. Use arguments to override the default symbols.
i18n/number_symbols.go:61
↓ 3 callersFunctionNewValidator
NewValidator creates a new type specific validator.
config/observer/validator.go:127
↓ 3 callersFunctionNewWith
NewWith creates a new WITH statement with multiple common table expressions (CTE).
sql/dml/with.go:78
↓ 3 callersMethodNextInterval
NextInterval returns a random duration between max and min in the provided durationKind.
util/cstime/time.go:136
↓ 3 callersMethodNullStrings
(nv ...null.String)
sql/dml/interpolate.go:223
↓ 3 callersMethodOption
Options applies optional arguments to the daemon struct. It returns the last set option. More info about the returned function: http://commandcenter.b
email/service.go:62
↓ 3 callersMethodOptions
Options applies option at creation time or refreshes them.
net/auth/service_generic.go:99
↓ 3 callersMethodOptions
Options applies option at creation time or refreshes them.
net/signed/service_generic.go:96
↓ 3 callersMethodOptions
Options applies option at creation time or refreshes them.
net/internal/scopedservice/service_generic.go:99
← previousnext →901–1,000 of 7,620, ranked by callers