Documentation
¶
Index ¶
- func InstallationFrom(ctx context.Context) (*core.Installation, bool)
- func MembershipFrom(ctx context.Context) (*core.Membership, bool)
- func UserFrom(ctx context.Context) (*core.User, bool)
- func WithInstallation(parent context.Context, installation *core.Installation) context.Context
- func WithMembership(parent context.Context, membership *core.Membership) context.Context
- func WithUser(parent context.Context, user *core.User) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallationFrom ¶
func InstallationFrom(ctx context.Context) (*core.Installation, bool)
InstallationFrom returns the value of the installation key on the ctx
func MembershipFrom ¶
func MembershipFrom(ctx context.Context) (*core.Membership, bool)
MembershipFrom returns the value of the perm key on the ctx
func WithInstallation ¶
WithInstallation returns a copy of parent in which the installation value is set
func WithMembership ¶
WithMemberWithMembership returns a copy of parent in which the membership value is set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.