Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseUUID ¶
ParseUUID avoids doing the logging and error handling for protobuf every f*cking time a uuid is being passed as a string. - str is the string formatted uuid - subject is what the uuid represents (ex: user_id, task_id, jwt_id) - critical helps define how to handle errors around the token.
- user can f*ck up -> !critical as the error might not be our fault -> warning
- DBs shouldn't fuck up -> critical as this implies a greater internal issue -> error
- implications define what an error implies for the user (which protobuf status code response)
Types ¶
type ConfigStore ¶
type ContextKey ¶
type ContextKey uint8
const ( DBKey ContextKey = iota ReqIDKey ProtoMethodKey ProtoServerKey CredsKey // Generated from Bearer tokens CredentialsKey // Generated from Basic tokens )
Click to show internal directories.
Click to hide internal directories.