Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ctx ¶ added in v1.0.11
type Ctx struct { RequestID primitive.ObjectID Profile *models.Profile Auth *auth.Helper Key *models.APIKey // The key used to make the request APIKeyFromParam *models.APIKey Logger *log.Entry DBConn db.Connection MatcherProfilesCache *MatcherProfilesCache OnMatchHook *models.OnMatchHook }
Ctx contains the request context
func (*Ctx) GetOrGenMatcherProfilesCache ¶ added in v1.0.19
func (c *Ctx) GetOrGenMatcherProfilesCache() (*MatcherProfilesCache, error)
GetOrGenMatcherProfilesCache returns the cached profiles or creates a new cache content
func (*Ctx) ResetMatcherProfilesCache ¶ added in v1.0.11
func (c *Ctx) ResetMatcherProfilesCache()
ResetMatcherProfilesCache sets the profiles cache to an empty object
Click to show internal directories.
Click to hide internal directories.