invites

package
v1.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptHandler

func AcceptHandler(c echo.Context) error

func AddRoutes

func AddRoutes(sg *echo.Group)

func SendHandler

func SendHandler(c echo.Context) error

--- Flow --- 1. Fetch the organisation's symmetric key using the organisation ID. 2. Decrypt the organisation's symmetric key using user's received password. 3. Pull the public key of the invitee. 4. Create a new copy of the organisation's symmetric key encrypted with the invitee's public key. 5. Save the new encrypted copy in the database and send the invite.

Types

type AcceptOptions

type AcceptOptions struct {
	ID string `json:"id,omitempty"`
}

type SendOptions

type SendOptions struct {
	OrgID           string `json:"org_id,omitempty"`
	RoleID          string `json:"role_id,omitempty"`
	InviteeEmail    string `json:"invitee_email,omitempty"`
	InviterPassword string `json:"inviter_password,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL