invites

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 16 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.

func SetService

func SetService(svc Service)

Types

type DefaultInviteService

type DefaultInviteService struct{}

func (*DefaultInviteService) Accept

--- Flow --- 1. Fetch the invite row from database using it's ID. 2. Copy the encrypted key copy from the invite row. 3. Insert new membership in the organisation for the invitee, their key copy and the assigned role from invite row. 4. Mark the invite accepted.

func (*DefaultInviteService) Get

func (*DefaultInviteService) Send

func (*DefaultInviteService) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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