user

package
v0.0.0-...-e00347c Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewInstance

func CreateNewInstance(app *firebase.App) fiber.Handler

CreateNewInstance creates a new instance, which is a group of users with a shared set of permissions and resources. The user who creates the instance is automatically assigned the role of instance admin. Instance admins can add and remove members, assign roles, and perform other administrative tasks. The data is stored in Firestore. The FireStore structure is as follows: /instances/{instanceId}

/metadata { name, createdBy, ...}
/members/{userId} { role, joinedDate, ...}

func CreateNewUser

func CreateNewUser(app *firebase.App) fiber.Handler

CreateNewUser creates a new user account. The user's data is stored in Firestore. The Firestore structure is as follows: /users/{userId}

func MigrateUserToTenant

func MigrateUserToTenant(app *firebase.App) fiber.Handler

func RemoveMember

func RemoveMember(app *firebase.App) fiber.Handler

func SetMemberRole

func SetMemberRole(app *firebase.App) fiber.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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