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
↓ 1 callers
Method
UnmarshalEasyJSON
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
config/observer/json_easyjson.go:240
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements the Unmarshaler interface
store/scope/type.go:91
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Bool. It also supports unmarshalling a s
storage/null/bool.go:98
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Uint16. It also supports unmarshalling a
storage/null/uint16.go:102
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Int64. It also supports unmarshalling a
storage/null/int64.go:98
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Float64. It also supports unmarshalling
storage/null/float64.go:106
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Uint64. It also supports unmarshalling a
storage/null/uint64.go:98
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports string and null input. Blank string input does not produce a null String. It also supports unma
storage/null/string.go:107
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports string, object (e.g. pq.Time and friends) and null input.
storage/null/time.go:70
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Uint32. It also supports unmarshalling a
storage/null/uint32.go:102
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Uint8. It also supports unmarshalling a
storage/null/uint8.go:102
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Int32. It also supports unmarshalling a
storage/null/int32.go:101
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Int8. It also supports unmarshalling a s
storage/null/int8.go:103
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. It supports number and null input. 0 will not be considered a null Int16. It also supports unmarshalling a
storage/null/int16.go:103
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
net/problem/detail_easyjson.go:173
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
util/csjwt/csjwt_easyjson.go:95
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
config/observer/modifier_easyjson.go:110
↓ 1 callers
Method
UnmarshalText
(text []byte)
sql/dmltype/strings.go:111
↓ 1 callers
Method
UnmarshalText
(text []byte)
storage/objcache/service_test.go:57
↓ 1 callers
Method
UnmarshalTextTo
UnmarshalTextTo wrapper to use encoding.TextUnmarshaler for decoding the textual bytes. Useful for custom types.
config/value.go:193
↓ 1 callers
Method
UnmarshalTo
UnmarshalTo decodes the value into the final type. vPtr must be a pointer. The function signature for `fn` matches e.g. json.Unmarshal, xml.Unmarshal
config/value.go:184
↓ 1 callers
Method
UnmarshalVT
(dAtA []byte)
sql/urlvalues/urlvaluesproto/values_vtproto.pb.go:172
↓ 1 callers
Method
Unsubscribe
Unsubscribe removes a subscriber with a specific ID.
config/service.go:464
↓ 1 callers
Method
Unsubscribe
Unsubscribe removes a subscriber with a specific ID.
config/service_pubsub.go:111
↓ 1 callers
Method
Update
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:333
↓ 1 callers
Method
UpdateAll
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:861
↓ 1 callers
Method
UpdateAthleteTeamMembers
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgeneratedMToM/fkm2n_gen.go:340
↓ 1 callers
Method
UpdateAthleteTeams
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgeneratedMToM/fkm2n_gen.go:382
↓ 1 callers
Method
UpdateAthletes
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgeneratedMToM/fkm2n_gen.go:567
↓ 1 callers
Method
UpdateByPK
UpdateByPK creates a new `UPDATE table SET ... WHERE id = ?`. The SET clause contains all non primary columns.
sql/ddl/table.go:252
↓ 1 callers
Method
UpdateCatalogCategoryEntity
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated3/rev_fk_gen.go:420
↓ 1 callers
Method
UpdateCustomerAddressEntities
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated/output_gen.go:2464
↓ 1 callers
Method
UpdateCustomerEntityInts
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:771
↓ 1 callers
Method
UpdateCustomerEntityVarchars
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated5/tables_gen.go:813
↓ 1 callers
Method
UpdateCustomeraddressentities
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgeneratedMToM/fkm2n_gen.go:969
↓ 1 callers
Method
UpdateCustomeraddressentities
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated3/rev_fk_gen.go:336
↓ 1 callers
Method
UpdateSequenceCatalogCategory
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated3/rev_fk_gen.go:235
↓ 1 callers
Method
UpdateStoreGroup
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated3/rev_fk_gen.go:505
↓ 1 callers
Method
UpdateStoreGroups
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated3/rev_fk_gen.go:822
↓ 1 callers
Method
Upsert
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated/output_gen.go:3861
↓ 1 callers
Method
Upsert
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:367
↓ 1 callers
Function
Valid
Valid checks if s is a valid StrScope of either StrDefault, StrWebsites or StrStores. Case-sensitive. Input should all be lowercase.
store/scope/type.go:196
↓ 1 callers
Method
Valid
Valid validates time based claims "exp, iat, nbf". There is no accounting for clock skew. As well, if any of the above claims are not in the token, it
util/csjwt/jwtclaim/standard.go:74
↓ 1 callers
Function
ValidBytes
ValidBytes checks if b is a valid byte Type of either StrDefault, StrWebsites or StrStores. Case-sensitive.
store/scope/type.go:232
↓ 1 callers
Function
ValidParent
ValidParent validates if the parent scope is within the hierarchical chain: default -> website -> store.
store/scope/type.go:238
↓ 1 callers
Method
Validate
Validate returns an error if the title is empty, or type is not an URI or Extension field is imbalanced.
net/problem/detail.go:114
↓ 1 callers
Method
Validate
Validate checks for duplicated configuration paths in all three hierarchy levels. Error behaviour: NotValid
config/elements.go:310
↓ 1 callers
Method
Validate
Validate checks if the data is confirm to the business logic. Returns nil on success. Also used by github.com/grpc-ecosystem/go-grpc-middleware/valida
config/observer/json.go:113
↓ 1 callers
Method
ValidateBody
ValidateBody uses the HTTPParser to extract the hash signature. It then hashes the body and compares the hash of the body with the hash value found in
net/signed/scopedConfig.go:198
↓ 1 callers
Method
ValueIDs
ValueIDs returns a slice with the data or appends it to a slice. Auto generated.
sql/dmlgen/dmltestgenerated5/tables_gen.go:1637
↓ 1 callers
Method
ValueIDs
ValueIDs returns a slice with the data or appends it to a slice. Auto generated.
sql/dmlgen/dmltestgenerated5/tables_gen.go:2113
↓ 1 callers
Function
ValuesToProto
ValuesToProto converts a Values map to a proto message.
sql/urlvalues/urlvaluesproto/values_proto.go:18
↓ 1 callers
Method
VerifyExpiresAt
Compares the exp claim against cmp. If required is false, this method will return true if the value matches or is unset
util/csjwt/jwtclaim/map.go:59
↓ 1 callers
Method
VerifyExpiresAt
VerifyExpiresAt compares the exp claim against cmp. If required is false, this method will return true if the value matches or is unset.
util/csjwt/jwtclaim/standard.go:179
↓ 1 callers
Method
VerifyIssuedAt
Compares the iat claim against cmp. If required is false, this method will return true if the value matches or is unset.
util/csjwt/jwtclaim/map.go:65
↓ 1 callers
Method
VerifyIssuedAt
VerifyIssuedAt compares the iat claim against cmp. If required is false, this method will return true if the value matches or is unset.
util/csjwt/jwtclaim/standard.go:185
↓ 1 callers
Method
VerifyNotBefore
Compares the nbf claim against cmp. If required is false, this method will return true if the value matches or is unset.
util/csjwt/jwtclaim/map.go:78
↓ 1 callers
Method
VerifyNotBefore
VerifyNotBefore compares the nbf claim against cmp. If required is false, this method will return true if the value matches or is unset.
util/csjwt/jwtclaim/standard.go:197
↓ 1 callers
Method
WaitUntilPos
WaitUntilPos flushes the binary logs until we've reached the desired position.
sql/mycanal/sync.go:276
↓ 1 callers
Method
Walk
Walk iterates over each key/value stored in the trie and calls the given walker function with the key and fm. If the walker function returns an error,
config/route_trie.go:335
↓ 1 callers
Method
WebsiteIDs
WebsiteIDs returns a slice with the data or appends it to a slice. Auto generated.
store/entities_gen.go:579
↓ 1 callers
Method
WeekDayShort
WeekDayShort generates abbreviated name of the week day
util/pseudo/dates.go:16
↓ 1 callers
Method
WeekdayNum
WeekdayNum generates number of the day of the week
util/pseudo/dates.go:21
↓ 1 callers
Method
Where
Where appends a WHERE clause to the statement whereSQLOrMap can be a string or map. If it'ab a string, args wil replaces any places holders.
sql/dml/delete.go:133
↓ 1 callers
Function
WithAlternativeHandler
WithAlternativeHandler sets for a scope the alternative handler if an IP address has been access denied. Only to be used with function WithIsCountryAl
net/geoip/options.go:46
↓ 1 callers
Function
WithConnPool
WithConnPool sets the connection pool to the Tables and each of it Table type. This function has precedence over WithDB.
sql/ddl/tables.go:146
↓ 1 callers
Function
WithContextQueryOptions
WithContextQueryOptions adds options for executing queries, mostly in generated code.
sql/dml/events.go:34
↓ 1 callers
Function
WithContextRunMode
TODO(CYS) remove context function as the scope.TypeID does not belong into a context. See also Merovious WithContextRunMode sets the main run mode for
net/runmode/context_runmode.go:72
↓ 1 callers
Function
WithCountryFinder
WithCountryFinder creates a new GeoIP2.Reader which reads the geo information from a file stored on the server.
net/geoip/maxmindfile/options.go:28
↓ 1 callers
Function
WithCreateDatabase
WithCreateDatabase creates the database and sets the utf8mb4 option. It does not drop the database. If databaseName is empty, the DB name gets derived
sql/dml/connection.go:191
↓ 1 callers
Function
WithDB
WithDB sets the DB value to an existing connection. Mainly used for testing. Does not support DriverCallBack.
sql/dml/connection.go:296
↓ 1 callers
Function
WithDB
WithDB sets the DB object to the Tables and all sub Table types to handle the database connections. It must be set if other options get used to access
sql/ddl/tables.go:131
↓ 1 callers
Method
WithDBR
(db QueryExecPreparer)
sql/dml/dbr.go:215
↓ 1 callers
Method
WithDBR
(db QueryExecPreparer)
sql/dml/dbr.go:226
↓ 1 callers
Function
WithDefaultConfig
WithDefaultConfig applies the default configuration settings for a specific scope. Default values are: - authentication returns always access denie
net/auth/options.go:33
↓ 1 callers
Function
WithDefaultConfig
WithDefaultConfig applies the default signed configuration settings based for a specific scope. This function overwrites any previous set options. De
net/signed/options.go:31
↓ 1 callers
Function
WithDefaultConfig
WithDefaultConfig applies the default CORS configuration settings based for a specific scope. This function overwrites any previous set options. Defau
net/cors/options.go:81
↓ 1 callers
Function
WithDefaultConfig
WithDefaultConfig applies the default GeoIP configuration settings based for a specific scope. This function overwrites any previous set options. Def
net/geoip/options.go:39
↓ 1 callers
Function
WithDefaultConfig
WithDefaultConfig applies the default JWT configuration settings based for a specific scope. Default values are: - constant DefaultExpire - HMAC
net/jwt/options.go:35
↓ 1 callers
Function
WithECPrivateKey
WithECPrivateKey sets the ECDSA private key. Public key will be derived from the private key.
util/csjwt/keys.go:256
↓ 1 callers
Function
WithECPublicKey
WithECPublicKey sets the ECDSA public key
util/csjwt/keys.go:225
↓ 1 callers
Function
WithECPublicKeyFromPEM
WithECPublicKeyFromPEM parses PEM encoded Elliptic Curve Public Key Structure
util/csjwt/keys.go:207
↓ 1 callers
Function
WithExecSQLOnConnClose
WithExecSQLOnConnClose runs the sqlQuery arguments before closing a DB connection. More than one queries are running in a transaction, a single query
sql/dml/connection.go:249
↓ 1 callers
Function
WithGCRA
WithGCRA creates a new Redis-based store, using the provided pool to get its connections. The keys will have the specified keyPrefix, which may be an
net/ratelimit/redigostore/redigostore.go:91
↓ 1 callers
Function
WithGCRA
WithGCRA creates a memory based GCRA rate limiter. Duration: (s second,i minute,h hour,d day). GCRA => https://en.wikipedia.org/wiki/Generic_cell_rate
net/ratelimit/memstore/memstore.go:71
↓ 1 callers
Function
WithLogger
WithLogger convenient helper function to apply a logger to the Service type.
net/internal/scopedservice/options_generic.go:138
↓ 1 callers
Function
WithRSAGenerated
WithRSAGenerated creates an in-memory private key to be used for signing and verifying. Bit size see constant: PrivateKeyBits Public key will be deriv
util/csjwt/keys.go:195
↓ 1 callers
Function
WithRSAPrivateKey
WithRSAPrivateKey sets the private key. Public key will be derived from the private key.
util/csjwt/keys.go:186
↓ 1 callers
Function
WithRSAPublicKey
WithRSAPublicKey sets the public key
util/csjwt/keys.go:156
↓ 1 callers
Function
WithServiceErrorHandler
WithServiceErrorHandler sets the error handler on the Service object. Convenient helper function.
net/internal/scopedservice/options_generic.go:117
↓ 1 callers
Function
WithSetNamesUTF8MB4
WithSetNamesUTF8MB4 sets the utf8mb4 charset and collation.
sql/dml/connection.go:282
↓ 1 callers
Function
WithTable
WithTable upserts a new table to the Tables struct. You can optionally specify the columns. Without columns the call to load the columns from the INFO
sql/ddl/tables.go:164
↓ 1 callers
Function
WithTagFakeFuncAlias
WithTagFakeFuncAlias sets a new alias. E.g. when WithTagFakeFunc("http",...) adds a function to generate HTTP links, then calling WithTagFakeFuncAlias
util/pseudo/fake.go:130
↓ 1 callers
Function
WithVerifyConnection
WithVerifyConnection checks if the connection to the server is valid and can be established.
sql/dml/connection.go:164
↓ 1 callers
Method
Words
Words generates from 1 to 5 random words
util/pseudo/lorem_ipsum.go:52
↓ 1 callers
Method
Write
Write writes an int value and checks if the int value is within the allowed Options.
_backend/config_models.go:48
↓ 1 callers
Method
WriteTo
WriteTo implements io.WriterTo and writes the field names and their values to w. This is especially useful for debugging or or generating a hash of th
config/storage/db_client_schema_gen.go:49
↓ 1 callers
Method
Xor
()
sql/dml/condition.go:466
↓ 1 callers
Method
_lookup
(lang, cat string, fallback bool)
util/pseudo/fake.go:345
↓ 1 callers
Function
addOperator
(b dml.Conditions, sortOrder []string, field, op string, values []string)
sql/urlvalues/url_filter.go:106
← previous
next →
2,501–2,600 of 7,620, ranked by callers