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
↓ 5 callers
Method
UnsafeFloat64
UnsafeFloat64 same as Float64 but ignores errors.
config/value.go:238
↓ 5 callers
Method
UnsafeStr
UnsafeStr same as Str but ignores errors.
config/value.go:107
↓ 5 callers
Method
UnsafeUint64
UnsafeUint64 same as Uint64 but ignores all errors.
config/value.go:405
↓ 5 callers
Method
Update
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:947
↓ 5 callers
Method
UpdateField
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 callers
Method
Value
Value implements the driver.Valuer interface.
sql/dml/now.go:33
↓ 5 callers
Method
WebsiteByID
(ctx context.Context, in *ProtoIDRequest, opts ...grpc.CallOption)
store/service.pb.go:375
↓ 5 callers
Method
WithDisabledForeignKeyChecks
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 callers
Method
WithResponseSignature
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 callers
Method
WithSortOrder
WithSortOrder sets the order/position while loading the data in config.Service.
config/options.go:84
↓ 5 callers
Function
WithTagFakeFunc
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 callers
Function
assertNullStr
(t *testing.T, s String, from string)
storage/null/string_test.go:278
↓ 5 callers
Function
benchmarkToStringF
(b *testing.B, s interface{})
util/conv/cast_bench_test.go:12
↓ 5 callers
Function
encodeVarintProto
(dAtA []byte, offset int, v uint64)
config/observer/proto.pb.go:298
↓ 5 callers
Function
fatalIfError
fatalIfError fails the tests if an unexpected error occurred. If the error is gift wrapped prints the location.
util/cstesting/helpers.go:52
↓ 5 callers
Method
findScopedConfig
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 callers
Function
formatZeroTime
(frac int, dec int)
sql/myreplicator/time.go:31
↓ 5 callers
Function
getJwts
(opts ...cfgmodel.Option)
net/jwt/backendjwt/integration_test.go:164
↓ 5 callers
Function
initLogger
()
config/service_pubsub_test.go:50
↓ 5 callers
Function
isDebug
()
sql/dmlgen/dmlgen.go:304
↓ 5 callers
Function
jsonDecEqual
( t *testing.T, jsonUnMarshalFn func(data []byte, v interface{}) error, data []byte, out interface{}, wan
storage/null/encoding_pub_test.go:177
↓ 5 callers
Function
makeScoped
makeScoped instantiates a ScopedGetter implementation. Getter specifies the root Getter which does not know about any scope.
config/service.go:504
↓ 5 callers
Method
match
(s string)
net/cors/utils.go:34
↓ 5 callers
Function
mustCheckErr
(err error)
sql/myreplicator/binlog_main.go:164
↓ 5 callers
Method
readMapAndSend
(p Path, level int)
config/service_pubsub.go:170
↓ 5 callers
Method
setRelationParent
()
sql/dmlgen/dmltestgenerated/output_gen.go:74
↓ 5 callers
Method
setRelationParent
()
sql/dmlgen/dmltestgenerated5/tables_gen.go:37
↓ 5 callers
Method
sortedTableNames
()
sql/dmlgen/dmlgen.go:141
↓ 5 callers
Function
sov
(x uint64)
sql/urlvalues/urlvaluesproto/values_vtproto.pb.go:166
↓ 5 callers
Function
sqlWriteLimitOffset
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 callers
Function
testAuth_WithRunMode
(t *testing.T, finalHandler http.Handler, opts ...jwt.Option)
net/jwt/service_mw_runmode_test.go:39
↓ 5 callers
Function
testAuth_WithToken
(t *testing.T, opts ...jwt.Option)
net/jwt/service_mw_token_test.go:32
↓ 5 callers
Function
testCompressReqRes
()
net/compress/compress_test.go:45
↓ 5 callers
Function
testHandler
(fa interface { Fatalf(format string, args ...interface{}) })
net/cors/bench_test.go:31
↓ 5 callers
Method
testSync
(tst *testing.T, s *BinlogStream)
sql/myreplicator/replication_test.go:78
↓ 5 callers
Method
updateScopedConfig
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 callers
Function
writeExpression
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 callers
Method
Bools
(b ...bool)
sql/dml/interpolate.go:213
↓ 4 callers
Method
Brand
Brand generates brand name
util/pseudo/products.go:4
↓ 4 callers
Method
CSV
CSV reads a multiline CSV data value and appends it to ret.
config/value.go:157
↓ 4 callers
Method
CalculateRunMode
(*http.Request)
net/runmode/context_runmode.go:53
↓ 4 callers
Method
ClearCache
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 callers
Method
ClearCache
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 callers
Method
Clone
Clone creates a clone of the current object, leaving fields DB and Log untouched.
sql/dml/insert.go:370
↓ 4 callers
Method
Compare
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 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/auth/service_generic.go:260
↓ 4 callers
Method
Contains
Contains returns true if the target string t is in the slice.
util/slices/string.go:80
↓ 4 callers
Method
DefaultStoreID
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 callers
Method
Deregister
(ctx context.Context, in *Configurations, opts ...grpc.CallOption)
config/observer/proto.pb.go:133
↓ 4 callers
Function
DeregisterWithJSON
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 callers
Method
Each
Each will run function f on all items in []* CoreConfiguration . Auto generated via dmlgen.
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:553
↓ 4 callers
Method
Empty
Empty checks if the map is empty or has an empty "" entry.
_codegen/database.go:69
↓ 4 callers
Method
EqualFold
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 callers
Method
Error
Error implements the error interface. Returns a string where each error has been separated by a line break.
email/daemon.go:89
↓ 4 callers
Method
EscapeString
(w *bytes.Buffer, s string)
sql/dml/dialect.go:39
↓ 4 callers
Method
EscapeTime
(w *bytes.Buffer, t time.Time)
sql/dml/dialect.go:40
↓ 4 callers
Function
ExecValidateOneAffectedRow
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 callers
Method
File
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 callers
Method
Filter
Filter filters the current slice by predicate f without memory allocation. Auto generated via dmlgen.
store/entities_gen.go:126
↓ 4 callers
Method
Float64
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 callers
Method
Float64
()
util/pseudo/general.go:117
↓ 4 callers
Method
FmtNumber
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 callers
Method
GenerateFile
(w io.Writer)
util/codegen/gogen.go:87
↓ 4 callers
Method
GetEvent
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 callers
Method
GetFormat
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 callers
Method
GoString
GoString returns the Go types representation. See interface fmt.GoStringer
sql/ddl/columns.go:431
↓ 4 callers
Method
Group
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 callers
Method
HTML
HTML formats according to a format specifier and sends HTML response with status code.
net/response/response.go:91
↓ 4 callers
Method
Has
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 callers
Method
HasColumn
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 callers
Method
Import
Import extracts the import path
_codegen/config.go:177
↓ 4 callers
Method
Insert
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 callers
Method
Int64
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 callers
Method
Invokes
Invokes returns statistics about invocations
config/fake.go:157
↓ 4 callers
Method
IsCacheEmpty
IsCacheEmpty returns true if the internal cache is empty.
store/service.go:669
↓ 4 callers
Method
IsChar
IsChar returns true if the column can contain a string or byte values.
sql/ddl/columns.go:581
↓ 4 callers
Method
IsGenerated
IsGenerated returns true if the column is a virtual generated column.
sql/ddl/columns.go:522
↓ 4 callers
Function
IsIP
IsIP checks if a string is either IP version 4 or 6.
util/validation/validator.go:812
↓ 4 callers
Method
IterateSerial
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 callers
Method
Key
(*http.Request)
net/ratelimit/varyby.go:29
↓ 4 callers
Method
Keys
Keys returns a list of all available keys
util/csjwt/claims.go:39
↓ 4 callers
Method
ListGroups
(ctx context.Context, in *types.Empty, opts ...grpc.CallOption)
store/service.pb.go:380
↓ 4 callers
Method
ListStores
(ctx context.Context, in *types.Empty, opts ...grpc.CallOption)
store/service.pb.go:384
↓ 4 callers
Method
ListWebsites
(ctx context.Context, in *types.Empty, opts ...grpc.CallOption)
store/service.pb.go:376
↓ 4 callers
Method
LoadNullFloat64
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 callers
Method
Map
Map changes itself containing the results of applying the function f to each int64 in itself.
util/slices/int64.go:122
↓ 4 callers
Method
MapColumns
MapColumns implements interface ColumnMapper only partially.
sql/dml/select_pub_test.go:49
↓ 4 callers
Method
Merge
Merge merges one Symbols into another ignoring empty values in the argument Symbols struct.
i18n/number_symbols.go:89
↓ 4 callers
Method
ModTime
()
util/pseudo/bindata.go:172
↓ 4 callers
Function
MustNewModifier
MustNewModifier same as NewModifier but panics on error.
config/observer/modifier.go:109
↓ 4 callers
Function
NewSigningMethodHS256
NewSigningMethodHS256 creates a new 256bit HMAC SHA instance and registers it.
util/csjwt/hmac_sha.go:23
↓ 4 callers
Function
NewSigningMethodPS256
NewSigningMethodPS256 creates a new 256bit RSAPSS SHA instance and registers it.
util/csjwt/rsa_pss.go:33
↓ 4 callers
Function
NewVerification
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 callers
Method
NullUint16
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 callers
Method
ParseScoped
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 callers
Method
Password
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 callers
Method
PrepareOptionFactory
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 callers
Method
PreviousError
PreviousError returns the previous error. Mostly used for testing.
sql/dml/dbr.go:196
↓ 4 callers
Method
Price
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 callers
Method
PutMeta
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
← previous
next →
701–800 of 7,620, ranked by callers