Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MembershipService ¶
type MembershipService interface {
// Get returns if the user is a member of the organization.
Get(ctx context.Context, _forge forge.Forge, u *model.User, org string) (*model.OrgPerm, error)
}
MembershipService is a service to check for user membership.
func NewDistributedMembershipService ¶
func NewDistributedMembershipService(_store store.Store) MembershipService
NewDistributedMembershipService creates a new distributed membership service.
func NewMembershipService ¶
func NewMembershipService(_store store.Store) MembershipService
NewMembershipService creates a new membership service.
func NewMembershipServiceWithConfig ¶
func NewMembershipServiceWithConfig(config Config) MembershipService
NewMembershipServiceWithConfig creates a membership service based on configuration.
Click to show internal directories.
Click to hide internal directories.