Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatedAtField ¶
type EmailField ¶
type EmailField struct {
Email sharedTypes.Email `json:"email"`
}
type ExpiresAtField ¶
type ForListing ¶
type ForListing struct { EmailField IdField PrivilegeLevelField }
type IdField ¶
type IdField struct {
Id sharedTypes.UUID `json:"_id"`
}
type Manager ¶
type Manager interface { Accept(ctx context.Context, projectId, userId sharedTypes.UUID, token Token) error Delete(ctx context.Context, projectId, inviteId sharedTypes.UUID) error CheckExists(ctx context.Context, projectId sharedTypes.UUID, token Token) error Create(ctx context.Context, pi *WithToken) error GetById(ctx context.Context, projectId, inviteId, actorId sharedTypes.UUID) (*WithToken, error) GetAllForProject(ctx context.Context, projectId, userId sharedTypes.UUID) ([]ForListing, error) }
type PrivilegeLevelField ¶
type PrivilegeLevelField struct {
PrivilegeLevel sharedTypes.PrivilegeLevel `json:"privileges"`
}
type ProjectField ¶
type ProjectField struct {
ProjectId sharedTypes.UUID `json:"-"`
}
type SendingUserField ¶
type SendingUserField struct {
SendingUser user.WithPublicInfo `json:"-"`
}
type TokenField ¶
type TokenField struct {
Token Token `json:"-"`
}
type WithToken ¶
type WithToken struct { WithoutToken TokenField }
type WithoutToken ¶
type WithoutToken struct { CreatedAtField EmailField ExpiresAtField IdField PrivilegeLevelField ProjectField SendingUserField }
Click to show internal directories.
Click to hide internal directories.