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
↓ 3 callers
Function
Asset
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 callers
Method
BindDefault
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 callers
Method
ByCode
ByCode returns an index using the AttributeCode. This index identifies an attribute within an AttributeSlice.
eav/attribute.go:109
↓ 3 callers
Method
ByID
ByID returns an index using the AttributeID. This index identifies an attribute within an AttributeSlice.
eav/attribute.go:107
↓ 3 callers
Method
Bytes
()
sql/dmltype/strings.go:120
↓ 3 callers
Method
BytesWritten
BytesWritten returns the total number of bytes sent to the client.
net/responseproxy/tee_writer.go:18
↓ 3 callers
Function
Chain
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 callers
Method
Character
TODO(Cyrill) refactor and user everywhere strings.Builder Character generates random character in the given language
util/pseudo/lorem_ipsum.go:11
↓ 3 callers
Method
CharactersN
CharactersN generates n random characters in the given language
util/pseudo/lorem_ipsum.go:16
↓ 3 callers
Method
Clear
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 callers
Method
Clear
Clear will clear the entire cache.
storage/lru/lru_cache.go:146
↓ 3 callers
Method
Clock
Clock formats DateTime to return e.g. 15:04, the clock time.
util/pseudo/dates.go:64
↓ 3 callers
Method
Clone
Clone creates a clone of the current object.
sql/dml/builder.go:89
↓ 3 callers
Method
Clone
Clone creates a new clone of the current object.
sql/dml/condition.go:206
↓ 3 callers
Method
Clone
Clone creates a clone of the current object, leaving fields DB and Log untouched.
sql/dml/with.go:191
↓ 3 callers
Method
Company
Company generates company name
util/pseudo/jobs.go:10
↓ 3 callers
Method
ConfigByScope
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 callers
Method
ConfigByScopeID
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 callers
Method
ConfigByScopeID
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 callers
Method
ConfigByScopedGetter
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 callers
Method
ConfigByScopedGetter
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 callers
Method
ContainsReverse
ContainsReverse checks if the StringSlice has at least one occurrence in the string s.
util/slices/string.go:152
↓ 3 callers
Method
ContainsValBool
ContainsValBool checks if value k exists.
config/_cfgsource/slice.go:168
↓ 3 callers
Method
ContainsValFloat64
ContainsValFloat64 checks if value k exists.
config/_cfgsource/slice.go:151
↓ 3 callers
Method
ContainsValInt
ContainsValInt checks if value k exists.
config/_cfgsource/slice.go:135
↓ 3 callers
Method
ContainsValString
ContainsValString checks if value k exists.
config/_cfgsource/slice.go:119
↓ 3 callers
Method
CopySecondToFirst
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 callers
Method
Country
Country generates random country
util/pseudo/addresses.go:11
↓ 3 callers
Method
CountryByIP
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 callers
Method
CreditCardNum
CreditCardNum generated credit card number according to the card number rules
util/pseudo/credit_cards.go:37
↓ 3 callers
Method
CurrencyCode
CurrencyCode generates currency code.
util/pseudo/currencies.go:11
↓ 3 callers
Method
DBInsert
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:1144
↓ 3 callers
Method
DBLoad
(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:450
↓ 3 callers
Method
DBUpdate
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:1122
↓ 3 callers
Method
Debug
Debug writes the internal map in a sorted list to w.
sql/ddl/foreign_key.go:367
↓ 3 callers
Method
Default
Default returns the default website. The returned pointer is owned by StoreWebsites.
store/entities_extended.go:116
↓ 3 callers
Method
DefaultStore
DefaultStore returns the first default active store.
store/entities_extended.go:138
↓ 3 callers
Method
Delete
Delete removes index i from slice
util/slices/string.go:61
↓ 3 callers
Method
DeleteGroup
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:378
↓ 3 callers
Method
DeleteStore
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:382
↓ 3 callers
Method
DeleteWebsite
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:374
↓ 3 callers
Method
Dob18
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 callers
Method
Done
()
net/accesslog/access_log_test.go:48
↓ 3 callers
Method
EnvName
EnvName returns the environment name to which this service is bound to.
config/service.go:218
↓ 3 callers
Function
Equal
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 callers
Method
EqualPairs
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 callers
Method
Error
()
net/geoip/maxmindwebservice/webservice.go:165
↓ 3 callers
Method
EscapeBool
(w *bytes.Buffer, b bool)
sql/dml/dialect.go:38
↓ 3 callers
Method
Expires
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 callers
Method
Filters
Filters builds the SQL conditions by appending to slice `cond` and returning it.
sql/urlvalues/url_filter.go:63
↓ 3 callers
Method
FindTable
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 callers
Method
Float64
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 callers
Method
FmtFloat64
FmtFloat64 formats a float value, does internal maybe incorrect rounding. Thread safe deprecated AFAIK. rounding is flawed
i18n/number.go:352
↓ 3 callers
Method
FmtNumber
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 callers
Function
FromRegistry
FromRegistry returns a hash pool for the given name, otherwise a NotFound error behaviour. Safe for concurrent use.
util/hashpool/register.go:121
↓ 3 callers
Method
FromRequest
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 callers
Method
Get
Get looks up a configuration value for a given path.
config/fake.go:127
↓ 3 callers
Method
Get
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 callers
Method
GetByCode
(code string)
eav/entity_type.go:58
↓ 3 callers
Method
GetDefault
GetDefault returns the default currency without considering the scope.
directory/config_models.go:38
↓ 3 callers
Method
GoComment
GoComment creates a comment from a database column to be used in Go code
sql/ddl/columns.go:416
↓ 3 callers
Method
InStr
InStr checks if the test IP address string lies within the range.
net/ranges.go:62
↓ 3 callers
Method
InStr
InStr checks if the test IP address string lies within the ranges.
net/ranges.go:77
↓ 3 callers
Method
Index
Index returns -1 if not found or the current index for target t.
util/slices/int64.go:73
↓ 3 callers
Method
Index
Index returns -1 if not found or the current index for target t.
util/slices/string.go:70
↓ 3 callers
Method
Int32s
(values ...int32)
sql/dml/mapper.go:1352
↓ 3 callers
Method
Int63n
(n int64)
util/cstime/locked_source.go:17
↓ 3 callers
Method
Int64
(name string)
sql/urlvalues/values.go:63
↓ 3 callers
Method
IsAllowed
IsAllowed checks if the country is allowed. An empty AllowedCountries fields allows all countries.
net/geoip/scopedConfig.go:73
↓ 3 callers
Method
IsBool
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 callers
Function
IsDNSName
IsDNSName will validate the given string as a DNS name
util/validation/validator.go:750
↓ 3 callers
Method
IsFieldPublic
(dbColumnName string)
sql/dmlgen/table.go:69
↓ 3 callers
Function
IsISBN
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 callers
Function
IsLocale
IsLocale checks case-insensitive if the provided string is a locale.
util/validation/validator.go:737
↓ 3 callers
Function
IsTime
IsTime check if string is valid according to given format
util/validation/validator.go:917
↓ 3 callers
Method
IsTime
IsTime returns true if the column is a date, datetime, time or timestamp.
sql/ddl/columns.go:543
↓ 3 callers
Method
IsUnique
()
eav/attribute.go:67
↓ 3 callers
Method
IterateParallel
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 callers
Method
JoinFields
JoinFields joins the field names into a string, separated by the provided separator.
sql/ddl/columns.go:343
↓ 3 callers
Method
Len
Len returns the length
util/slices/string.go:33
↓ 3 callers
Method
Load
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 callers
Function
LoadColumns
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 callers
Function
MakeTypeID
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 callers
Method
MapSQLToGoDBRType
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 callers
Method
MarshalBinary
MarshalBinary implements interface encoding.BinaryMarshaler.
config/path.go:514
↓ 3 callers
Method
MarshalTo
(dAtA []byte)
config/observer/proto.pb.go:266
↓ 3 callers
Method
MarshalToSizedBufferVT
(dAtA []byte)
sql/urlvalues/urlvaluesproto/values_vtproto.pb.go:39
↓ 3 callers
Method
Merge
Merge integrates the argument Slice into the receiver slice and overwrites the existing values of the receiver slice.
config/_cfgsource/slice.go:201
↓ 3 callers
Function
NewAttributeBackend
NewAttributeBackend creates a pointer to a new attribute source
eav/attribute_backend.go:63
↓ 3 callers
Function
NewBinlogParser
()
sql/myreplicator/parser.go:33
↓ 3 callers
Function
NewSigningMethodRS256
NewSigningMethodRS256 creates a new 256bit RSA SHA instance and registers it.
util/csjwt/rsa.go:22
↓ 3 callers
Function
NewSymbols
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 callers
Function
NewValidator
NewValidator creates a new type specific validator.
config/observer/validator.go:127
↓ 3 callers
Function
NewWith
NewWith creates a new WITH statement with multiple common table expressions (CTE).
sql/dml/with.go:78
↓ 3 callers
Method
NextInterval
NextInterval returns a random duration between max and min in the provided durationKind.
util/cstime/time.go:136
↓ 3 callers
Method
NullStrings
(nv ...null.String)
sql/dml/interpolate.go:223
↓ 3 callers
Method
Option
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 callers
Method
Options
Options applies option at creation time or refreshes them.
net/auth/service_generic.go:99
↓ 3 callers
Method
Options
Options applies option at creation time or refreshes them.
net/signed/service_generic.go:96
↓ 3 callers
Method
Options
Options applies option at creation time or refreshes them.
net/internal/scopedservice/service_generic.go:99
← previous
next →
901–1,000 of 7,620, ranked by callers