// Package profiles: user profiles and their capabilities. package profiles import ( "context" "atlas9.dev/c/core" "atlas9.dev/c/core/iam" ) type Profile struct { UserID core.ID Bio string Location string Website string PictureURL string } type Store interface { Get(ctx context.Context, userID core.ID) (*Profile, error) Create(ctx context.Context, p *Profile) error Update(ctx context.Context, p *Profile) error } var ( Cap_Profiles_Get = iam.NewCap("Profiles_Get") Cap_Profiles_Write = iam.NewCap("Profiles_Write") )