Versions in this module Expand all Collapse all v1 v1.1.0 Oct 18, 2024 v1.0.0 Sep 28, 2024 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