Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppClient ¶
type AppClient interface { CreateMembership(ctx context.Context, data *CreateMembershipData) error CreateOrganization(ctx context.Context, data *CreateOrgData) (*Organization, error) CreateUser(ctx context.Context, data *CreateUserData) (*User, error) DeleteMembership(ctx context.Context, orgID pulid.ID, userID pulid.ID) error GetUser(ctx context.Context, userID pulid.ID) (*User, error) GetUserByAccountID(ctx context.Context, accountID string) (*User, error) MembershipExists(ctx context.Context, orgID pulid.ID, userID pulid.ID) (bool, error) SetOrgDetails(ctx context.Context, orgID pulid.ID, data *OrgInputData) error SetUserProfileDetails(ctx context.Context, userID pulid.ID, data *UserInputData) error UpdateMembership( ctx context.Context, data *CreateMembershipData, ) error }
type ClerkHook ¶
type ClerkHook struct {
// contains filtered or unexported fields
}
func (*ClerkHook) GetUserByAccountID ¶
func (*ClerkHook) HandleHooks ¶
func (c *ClerkHook) HandleHooks( ctx context.Context, w http.ResponseWriter, r *http.Request, secretKey string, opts ...ClerkHookOption, ) error
type ClerkHookOption ¶
type ClerkHookOption func(*clerkHookOptions)
func WithPersonalOrgs ¶
func WithPersonalOrgs(shouldCreatePersonalOrg bool) ClerkHookOption
type CreateMembershipData ¶
type CreateMembershipData struct { OrgID pulid.ID UserID pulid.ID Role membershiprole.MembershipRole }
type CreateOrgData ¶
type CreateOrgData struct { UserID pulid.ID OrgAccountID string OrgInputData }
type CreateUserData ¶
type CreateUserData struct { AccountID string IsEmployee bool ShouldCreatePersonalOrg bool UserInputData }
type OrgInputData ¶
type Organization ¶
Click to show internal directories.
Click to hide internal directories.