Versions in this module Expand all Collapse all v1 v1.1.1 Feb 16, 2025 v1.1.0 Feb 16, 2025 v1.0.0 Feb 16, 2025 Changes in this version + func AddToContext(ctx context.Context, u *User) context.Context + type User struct + ID string + Roles map[string]struct{} + func FromContext(ctx context.Context) (*User, bool) + func (u *User) AddRole(r string) + func (u *User) HasRole(r string) bool