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
↓ 15 callers
Method
Store
Store returns the cached Store view containing its group and its website. The returned pointer is owned by the Service. You must copy it for further m
store/service.go:602
↓ 15 callers
Method
StringReplace
StringReplace is only applicable when using *Union as a template. StringReplace replaces the `key` with one of the `values`. Each value defines a gene
sql/dml/union.go:151
↓ 15 callers
Method
ToJSON
ToJSON returns a JSON string, convenience function.
config/_cfgsource/slice.go:100
↓ 15 callers
Method
Valid
Valid method that determines if the token is invalid for any supported reason. Returns nil on success. Error behaviour: NotValid
util/csjwt/claims.go:29
↓ 15 callers
Function
constTableName
(tableName string)
sql/dmlgen/dbm.go:11
↓ 15 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/auth/service_generic.go:330
↓ 15 callers
Method
testExecute
(tst *testing.T, query string)
sql/myreplicator/replication_test.go:73
↓ 15 callers
Method
toSQL
(w *bytes.Buffer, placeHolders []string)
sql/dml/builder.go:72
↓ 15 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/auth/service_generic.go:362
↓ 15 callers
Function
withString
(val string, ids ...scope.TypeID)
net/internal/scopedservice/service_mock.go:65
↓ 14 callers
Method
DBInsert
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated/output_gen.go:2903
↓ 14 callers
Method
DBUpdate
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated/output_gen.go:2879
↓ 14 callers
Method
FQ
FQ returns the fully qualified route. Safe for further processing of the returned byte slice. If scope is equal to scope.DefaultID and ID is not zero
config/path.go:306
↓ 14 callers
Method
Float64s
(f ...float64)
sql/dml/interpolate.go:209
↓ 14 callers
Function
MustMakePathWithScope
MustMakePathWithScope creates a new validate Path with a custom scope but panics on error. E.g. invalid path.
config/path.go:209
↓ 14 callers
Method
PreserveResultSet
PreserveResultSet enables the correct ordering of the result set from the Select statements. UNION by default produces an unordered set of rows. To ca
sql/dml/union.go:84
↓ 14 callers
Method
RegisterByQueryBuilder
RegisterByQueryBuilder adds the SQL queries to the local internal cache. The cacheKeyQB map gets iterated in alphabetical order.
sql/dml/connection.go:823
↓ 14 callers
Method
Split
Split uses string s and a separator and appends the parts to the slice.
util/slices/string.go:204
↓ 14 callers
Method
Uint
Uint reads an uint value and appends it to the arguments slice or assigns the uint value stored in sql.RawBytes to the pointer. See the documentation
sql/dml/mapper.go:920
↓ 14 callers
Function
benchmarkCountry
(iterationsSetGet int, level2 objcache.NewStorageFn, opts *objcache.ServiceOptions)
storage/objcache/bench_pub_test.go:31
↓ 14 callers
Function
benchmarkMethodVerify
(b *testing.B, method csjwt.Signer, signingString []byte, signature []byte, key csjwt.Key)
util/csjwt/parser_test.go:291
↓ 14 callers
Function
benchmarkSigning
(b *testing.B, method csjwt.Signer, key csjwt.Key)
util/csjwt/parser_test.go:278
↓ 14 callers
Function
benchmarkStores
(iterationsSetGet int, level2 objcache.NewStorageFn, opts *objcache.ServiceOptions)
storage/objcache/bench_pub_test.go:70
↓ 14 callers
Method
buildToSQL
buildToSQL builds the raw SQL string and caches it as a byte slice. It gets called by toSQL. buildArgsAndSQL generates the SQL string and its place ho
sql/dml/builder.go:100
↓ 14 callers
Function
writeInterfaces
Write writes all arguments into buf and separates by a comma.
sql/dml/argument.go:419
↓ 13 callers
Method
Between
()
sql/dml/condition.go:386
↓ 13 callers
Method
Each
Each will run function f on all items in []* CustomerEntity . Auto generated via dmlgen.
sql/dmlgen/dmltestgenerated/output_gen.go:2953
↓ 13 callers
Method
GetLangs
GetLangs returns a slice of available languages
util/pseudo/fake.go:294
↓ 13 callers
Method
Load
(ctx context.Context, dbm *DBM, primaryKey uint32, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:298
↓ 13 callers
Method
LoadInt64s
LoadInt64s executes the query and returns the values appended to slice dest. It ignores and skips NULL values.
sql/dml/dbr.go:1189
↓ 13 callers
Method
MarshalBinary
MarshalBinary implements the encoding.BinaryMarshaler interface.
storage/null/bool.go:209
↓ 13 callers
Method
NullBool
(nv null.Bool)
sql/dml/interpolate.go:228
↓ 13 callers
Method
Observe
Observe must always return the rawData argument or an error. Observer can transform and modify the raw data in any case.
config/route_trie.go:82
↓ 13 callers
Function
ParenthesisClose
ParenthesisClose sets a closing parenthesis ")". Mostly used for OR conditions in combination with AND conditions.
sql/dml/condition.go:350
↓ 13 callers
Function
ParenthesisOpen
ParenthesisOpen sets an open parenthesis "(". Mostly used for OR conditions in combination with AND conditions.
sql/dml/condition.go:342
↓ 13 callers
Method
PrimaryKeys
PrimaryKeys returns all primary key columns. It may append the columns to the provided argument slice.
sql/ddl/columns.go:218
↓ 13 callers
Method
Ptr
Ptr returns a pointer to this Bool's value, or a nil pointer if this Bool is null.
storage/null/bool.go:181
↓ 13 callers
Method
ScopeID
ScopeID tells you the current underlying scope and its ID to which this configuration has been bound to.
config/service.go:530
↓ 13 callers
Method
Truncate
(ctx context.Context)
storage/objcache/service.go:44
↓ 13 callers
Method
With
With is a middleware that injects a request ID into the response header of each request. Retrieve it using: w.Header().Get(HeaderIDKeyName) If the i
net/request/request_id.go:81
↓ 13 callers
Method
relationStructName
()
sql/dmlgen/table.go:188
↓ 13 callers
Function
segmentRoute
segmentRoute segments string key paths by slash separators. For example, "/a/b/c" -> ("/a", 2), ("/b", 4), ("/c", -1) in successive calls. It does not
config/route_trie.go:106
↓ 13 callers
Function
sovNull
(x uint64)
storage/null/null.enc.go:684
↓ 12 callers
Method
Decimal
Decimal reads a Decimal value and appends it to the arguments slice or assigns the numeric value stored in sql.RawBytes to the pointer. See the docume
sql/dml/mapper.go:860
↓ 12 callers
Method
DriverValues
DriverValues adds each Valuer as its own argument.
sql/dml/interpolate.go:234
↓ 12 callers
Function
FatalIfError
FatalIfError fails the tests if an unexpected error occurred. If the error is gift wrapped, it prints the location. If `t` is nil, this function panic
sql/dmltest/connect.go:123
↓ 12 callers
Method
Flush
()
config/storage/common_test.go:28
↓ 12 callers
Function
NewShow
NewShow creates a new Truman SHOW.
sql/dml/show.go:46
↓ 12 callers
Method
NullUint32
NullInt32 reads an int32 value and appends it to the arguments slice or assigns the int32 value stored in sql.RawBytes to the pointer. See the documen
sql/dml/mapper.go:736
↓ 12 callers
Method
RecordError
RecordError records an error if WithErrorMetrics has been applied.
net/csgrpc/server.go:92
↓ 12 callers
Method
Subscribe
Subscribe subscribes a MessageReceiver to a fully qualified path. Path allows you to filter to which path or part of a path you would like to listen.
config/service_pubsub.go:50
↓ 12 callers
Method
WithRunMode
WithRunMode sets the initial runMode, loads the token configuration, parses and validates a token and if the token contains a new store code it change
net/jwt/service_mw_runmode.go:45
↓ 12 callers
Function
encodeVarintNull
(dAtA []byte, offset int, v uint64)
storage/null/null.enc.go:514
↓ 12 callers
Function
errCheck
(t *testing.T)
config/observer/modifier_test.go:33
↓ 12 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/jwt/service_generic.go:327
↓ 12 callers
Function
skipNull
(dAtA []byte)
storage/null/null.enc.go:1914
↓ 12 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/jwt/service_generic.go:359
↓ 11 callers
Method
ChainFunc
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:58
↓ 11 callers
Method
Conn
Conn returns a single connection by either opening a new connection or returning an existing connection from the connection pool. Conn will block unti
sql/dml/connection.go:887
↓ 11 callers
Method
Float64
Float64 converts the underlying converted data into the final type.
config/value.go:244
↓ 11 callers
Method
Has
Has checks if an ID (jti) has been stored in the blockList and may delete the ID if the expiration time is up.
net/jwt/blacklist.go:31
↓ 11 callers
Method
IsSystemVersioned
IsSystemVersioned returns true if the column gets used for system versioning. https://mariadb.com/kb/en/library/system-versioned-tables/
sql/ddl/columns.go:528
↓ 11 callers
Method
IsUnsigned
IsUnsigned checks if field TypeRaw contains the word unsigned.
sql/ddl/columns.go:512
↓ 11 callers
Method
LoadNullInt64
LoadNullInt64 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:1117
↓ 11 callers
Function
MakeBinary
MakeBinary creates a binary type for using in Set/Get functions when the code needs a `set` algorithm. For example checking if a JWT exists in the blo
storage/objcache/options.go:148
↓ 11 callers
Method
ManyToManyTarget
ManyToManyTarget figures out if a table has M:N relationships and returns the target table and its column or empty strings if not found.
sql/ddl/foreign_key.go:353
↓ 11 callers
Method
NullUint64
NullInt64 reads an int64 value and appends it to the arguments slice or assigns the int64 value stored in sql.RawBytes to the pointer. See the documen
sql/dml/mapper.go:704
↓ 11 callers
Method
Scan
(src any)
sql/dml/mapper.go:217
↓ 11 callers
Method
Values
Values only usable in case for ON DUPLICATE KEY to generate a statement like: column=VALUES(column)
sql/dml/condition.go:826
↓ 11 callers
Method
addSlice
(fnName string, slice any)
sql/dml/mapper.go:1323
↓ 11 callers
Function
assertStrErr
(t *testing.T, want string, msgAndArgs ...interface{})
config/path_test.go:95
↓ 11 callers
Function
buildTrieKey
(key string, scp scope.TypeID)
config/route_trie.go:137
↓ 10 callers
Method
Close
()
store/service.go:293
↓ 10 callers
Function
Columns
Columns add syntactic sugar to a JOIN or ON DUPLICATE KEY statement: In case of JOIN: The USING(column_list) clause names a list of columns that must
sql/dml/condition.go:317
↓ 10 callers
Method
DSN
DSN returns the formatted DSN. Will leak the password.
sql/dml/connection.go:707
↓ 10 callers
Method
Error
()
sql/mycanal/canal.go:503
↓ 10 callers
Method
FindCountry
Country todo add context for cancelling
net/geoip/country.go:37
↓ 10 callers
Method
Label
Label returns the label and if empty the Value().
config/_cfgsource/pair.go:48
↓ 10 callers
Function
MakeTime
TODO(cys): Remove GobEncoder, GobDecoder, MarshalJSON, UnmarshalJSON in Go 2. The same semantics will be provided by the generic MarshalBinary, Marsha
storage/null/time.go:36
↓ 10 callers
Method
Name
()
util/pseudo/bindata.go:160
↓ 10 callers
Method
Observe
Observe runs the validation process.
config/observer/validator.go:275
↓ 10 callers
Method
P
P same as Pln but without the line break at the end.
util/codegen/common.go:131
↓ 10 callers
Method
Parse
Parse parses a rawToken into the destination token and may return an error. You must make sure to set the correct expected headers and claims in the t
util/csjwt/parser.go:88
↓ 10 callers
Method
QualifierName
QualifierName quotes securely a qualifier and its name. QualifierName("dbName", "tableName") => `dbName`.`tableName` QualifierName("db`Name", "`ta
sql/dml/naming.go:303
↓ 10 callers
Method
Regexp
()
sql/dml/condition.go:456
↓ 10 callers
Method
RegisterObserver
(event uint8, route string, eo Observer)
config/service.go:64
↓ 10 callers
Method
Reset
please upgrade the proto package
store/entities_gen.pb.go:26
↓ 10 callers
Method
SQLCase
FUNCTIONS / EXPRESSIONS SQLCase see description at function SQLCase.
sql/dml/condition.go:860
↓ 10 callers
Method
Scoped
Scoped creates a new ScopedReader which uses the underlying mocked paths and values.
config/fake.go:170
↓ 10 callers
Method
Stats
Stats returns a few stats on the cache.
storage/lru/lru_cache.go:167
↓ 10 callers
Function
ToByte
(i interface{})
util/conv/cast.go:50
↓ 10 callers
Function
ToStringMapStringSlice
(i interface{})
util/conv/cast.go:60
↓ 10 callers
Method
Validate
()
customer/custattr/attribute.go:36
↓ 10 callers
Method
Variable
Variable shows the values of MySQL|MariaDB system variables (“Server System Variables”). This statement does not require any privilege. It requires on
sql/dml/show.go:69
↓ 10 callers
Method
Websites
Websites returns a cached slice containing all Websites with its associated groups and stores. You shall not modify the returned slice.
store/service.go:566
↓ 10 callers
Function
WithDefaultConfig
WithDefaultConfig applies the default ratelimit configuration settings based for a specific scope. This function overwrites any previous set options.
net/ratelimit/options.go:33
↓ 10 callers
Method
WithQueryBuilder
WithQueryBuilder creates a new DBR for handling the arguments with the assigned connection and builds the SQL string. The returned arguments and error
sql/dml/connection.go:876
↓ 10 callers
Method
appendFloat64
(i float64)
sql/dml/argument_encoder.go:152
↓ 10 callers
Method
appendInt
(i int)
sql/dml/argument_encoder.go:110
↓ 10 callers
Method
appendInt64s
(args ...int64)
sql/dml/argument_encoder.go:130
← previous
next →
301–400 of 7,620, ranked by callers