Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddValue ¶
AddValue wrapps the context.WithValue function using a unified ctxKey to store the passed value. Returns a new context.Context with the value
func GetAuthedUser ¶
func GetAuthedUser(ctx context.Context) *common.AuthedUser
GetAuthedUser is a special case where the API middleware adds the authed user coming from the TokenService to the context. Claims of user might be needed afterwards. GetAuthedUser is tide to the grpc_def of TokenService.AuthenticatedUser and if not found will return nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.