package
5.0.2+incompatible
Repository: https://github.com/meateam/api-gateway.git
Documentation: pkg.go.dev
# Functions
ExtractRequestUser gets a context.Context and extracts the user's details from c.
IsExternalUser gets a userID and returns true if user is from an external source.
NewRouter creates a new Router, and initializes clients of User Service with the given connections.
SetApmUser adds a user to the current apm transaction.
# Constants
ConfigBucketPostfix is the name of the environment variable containing the postfix for the bucket.
ConfigCtsDest is the name of the environment variable containing the cts dest name.
No description provided by the author
ConfigTomcalDest is the name of the environment variable containing the tomcal dest name.
ContextUserKey is the context key used to get and set the user's data in the context.
ExternalUserSource is the value of the source field of user that indicated that the user is external.
FindByMail is an enum key for finding by mail.
FindByT is an enum key for finding by user T.
HeaderDestionation is the header used to get and set the external destination.
InternalUserSource is the value of the source field of user that indicated that the user is internal.
ParamApproverID is the name of the approver id param in the URL.
ParamRequestContent is the name of the partial user name param in URL.
ParamSearchType is the name of the flag that determines which search to execute.
ParamUserID is the name of the user id param in URL.
SearchByName is an enum key for searching by name.
TransactionUserLabel is the label of the custom transaction field : user.