user

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(dp *depot.Depot, id uint64) error

Types

type InvitePayload

type InvitePayload struct {
	Email *string `json:"email"`
	Name  *string `json:"name"`
}

type MakeOwnerPayload

type MakeOwnerPayload struct {
	Id *uint64 `json:"id"`
}

type UpdatePayload

type UpdatePayload struct {
	IsOrganizationOwner *bool   `json:"isOrganizationOwner"`
	Name                *string `json:"name"`
}

type User

type User struct {
	Email               string `json:"email"`
	Id                  uint64 `json:"id"`
	IsActive            bool   `json:"isActive"`
	IsOrganizationOwner bool   `json:"isOrganizationOwner"`
	Name                string `json:"name"`
}

func Invite

func Invite(dp *depot.Depot, organizationId uint64, payload *InvitePayload) (*User, error)

func List

func List(dp *depot.Depot, organizationId uint64) ([]*User, error)

func MakeOwner

func MakeOwner(dp *depot.Depot, payload *MakeOwnerPayload) (*User, error)

func Read

func Read(dp *depot.Depot, id uint64) (*User, error)

func Update

func Update(dp *depot.Depot, id uint64, payload *UpdatePayload) (*User, error)

Jump to

Keyboard shortcuts

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